/* HappyMonday Static Frontend Styles */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e1e8ed;
    margin-bottom: 40px;
}

header h1 {
    color: #1a73e8;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

header p {
    color: #5f6368;
    font-size: 1.1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.back-link {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Main content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: #1a73e8;
    color: white;
}

.btn-primary:hover {
    background: #1557b0;
}

.btn-secondary {
    background: #f8f9fa;
    color: #1a73e8;
    border: 2px solid #1a73e8;
}

.btn-secondary:hover {
    background: #1a73e8;
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-danger {
    background: #ea4335;
    color: white;
}

.btn-danger:hover {
    background: #d33b2c;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Welcome section */
.welcome-section {
    text-align: center;
    padding: 60px 0;
}

.welcome-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #202124;
}

.welcome-section > p {
    font-size: 1.2rem;
    color: #5f6368;
    margin-bottom: 40px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #202124;
}

.feature p {
    color: #5f6368;
    line-height: 1.6;
}

/* Forms */
.auth-form, .settings {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.auth-form h2, .settings h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #202124;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #202124;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dadce0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #5f6368;
    font-size: 0.9rem;
}

.form-group small a {
    color: #1a73e8;
}

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.add-event-section, .events-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.add-event-section h2, .events-section h2 {
    margin-bottom: 25px;
    color: #202124;
}

.add-event-section input {
    font-size: 1.1rem;
    padding: 15px;
}

/* Events */
.events-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.event-card {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.event-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-card.completed {
    background: #f8f9fa;
    opacity: 0.8;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.event-header h3 {
    color: #202124;
    font-size: 1.2rem;
    margin: 0;
}

.event-actions {
    display: flex;
    gap: 8px;
}

.event-details p {
    margin-bottom: 8px;
    color: #5f6368;
    font-size: 0.9rem;
}

.event-details p strong {
    color: #202124;
}

/* Settings */
.settings {
    max-width: 800px;
}

.settings-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e1e8ed;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    color: #202124;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Messages */
.error-message {
    background: #fce8e6;
    color: #d93025;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9rem;
}

.success-message {
    background: #e6f4ea;
    color: #137333;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9rem;
}

.loading {
    text-align: center;
    color: #5f6368;
    font-style: italic;
    padding: 20px;
}

.parse-result {
    background: #e6f4ea;
    border: 1px solid #c8e6c9;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.parse-success {
    color: #137333;
    font-size: 0.9rem;
}

.no-events {
    text-align: center;
    padding: 40px 20px;
    color: #5f6368;
}

.no-events p {
    font-size: 1.1rem;
}

/* Auth links */
.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #1a73e8;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 40px 0;
    text-align: center;
    color: #5f6368;
    border-top: 1px solid #e1e8ed;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    max-width: 300px;
}

.toast-success {
    background: #137333;
}

.toast-error {
    background: #d93025;
}

.toast-info {
    background: #1a73e8;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 60px;
    }
    
    .auth-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-form, .settings {
        padding: 30px 20px;
    }
    
    .event-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .event-actions {
        align-self: stretch;
    }
}