/* Aura AI Assistant - Modern Light Theme */

:root {
    --primary-color: #1a73e8;
    --primary-hover: #1557b0;
    --secondary-color: #34a853;
    --accent-color: #fbbc04;
    --error-color: #ea4335;
    --surface-color: #ffffff;
    --background-color: #fafafa;
    --on-surface: #202124;
    --on-surface-variant: #5f6368;
    --outline: #dadce0;
    --outline-variant: #e8eaed;
    --shadow: rgba(60, 64, 67, 0.3);
    --shadow-light: rgba(60, 64, 67, 0.15);
}

body {
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--on-surface);
    background-color: var(--background-color);
    padding-top: 70px;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.03) 0%, rgba(52, 168, 83, 0.03) 100%);
    display: flex;
    align-items: center;
}

.hero-section h1 {
    color: var(--on-surface);
    font-weight: 400;
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-section .lead {
    color: var(--on-surface-variant);
    font-size: 1.25rem;
    font-weight: 400;
}

/* Feature Cards */
.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
    border: 1px solid var(--outline-variant);
    box-shadow: none;
    background-color: var(--surface-color);
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-light);
    border-color: var(--outline);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Modern Google-style buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 24px;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.25px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px var(--shadow-light);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 2px 8px var(--shadow);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 1px solid var(--outline);
    color: var(--primary-color);
    background-color: transparent;
    border-radius: 24px;
    padding: 11px 24px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.25px;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: rgba(26, 115, 232, 0.04);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-secondary {
    border: 1px solid var(--outline);
    color: var(--on-surface-variant);
    background-color: transparent;
    border-radius: 24px;
    padding: 11px 24px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.25px;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--outline-variant);
    border-color: var(--outline);
    color: var(--on-surface);
}

/* Navbar */
.navbar-light {
    background-color: var(--surface-color) !important;
    border-bottom: 1px solid var(--outline-variant);
    box-shadow: 0 1px 6px var(--shadow-light);
}

.navbar-brand {
    font-weight: 500;
    color: var(--on-surface) !important;
    font-size: 1.25rem;
}

.nav-link {
    color: var(--on-surface-variant) !important;
    font-weight: 400;
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--on-surface) !important;
    background-color: var(--outline-variant);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 500;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 0;
}

.timeline:before {
    content: '';
    position: absolute;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    left: 50px;
    top: 0;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 120px;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: 38px;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
}

.timeline-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Section headers and content */
section {
    padding: 80px 0;
}

section h2 {
    color: var(--on-surface);
    font-weight: 400;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

section .lead {
    color: var(--on-surface-variant);
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 48px;
}

/* Chat Interface */
.web-chat-card {
    box-shadow: 0 2px 12px var(--shadow-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--outline-variant);
    background-color: var(--surface-color);
}

.chat-container {
    height: 400px;
    overflow-y: auto;
    padding: 24px;
    background-color: var(--background-color);
}

.message {
    margin-bottom: 16px;
    max-width: 80%;
    display: flex;
    flex-direction: column;
}

.message.user {
    margin-left: auto;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.4;
}

.assistant .message-content {
    background-color: var(--surface-color);
    border: 1px solid var(--outline-variant);
    border-bottom-left-radius: 4px;
    color: var(--on-surface);
}

.user .message-content {
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 12px;
    color: var(--on-surface-variant);
    margin-top: 4px;
    margin-left: 8px;
}

/* Form Styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.25);
    outline: none;
}

/* Chat Interface Styling */
.web-chat-card {
    border: 1px solid var(--outline-variant);
    border-radius: 16px;
    box-shadow: var(--shadow-1);
    overflow: hidden;
    background: var(--surface-color);
}

.web-chat-card .card-header {
    background: var(--surface-container-low);
    border-bottom: 1px solid var(--outline-variant);
    padding: 16px 20px;
}

.web-chat-card .card-header h5 {
    color: var(--on-surface);
    font-weight: 500;
    margin: 0;
}

.chat-container {
    height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: var(--surface-color);
    scroll-behavior: smooth;
}

.message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.message.user {
    align-items: flex-end;
}

.message.assistant {
    align-items: flex-start;
}

.message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
}

.message.user .message-content {
    background: var(--primary-color);
    color: var(--on-primary);
    border-bottom-right-radius: 4px;
}

.message.assistant .message-content {
    background: var(--surface-container-high);
    color: var(--on-surface);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--outline-variant);
}

.message-content p {
    margin: 0;
    line-height: 1.4;
}

.message-time {
    font-size: 12px;
    color: var(--on-surface-variant);
    margin-top: 4px;
    padding: 0 8px;
}

.typing-indicator .message-content {
    background: var(--surface-container-high);
    color: var(--on-surface-variant);
    font-style: italic;
}

.dot-animation {
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { opacity: 0; }
    40% { opacity: 1; }
    60%, 100% { opacity: 0; }
}

.web-chat-card .card-footer {
    background: var(--surface-container-low);
    border-top: 1px solid var(--outline-variant);
    padding: 16px 20px;
}

.web-chat-card .form-control {
    border: 1px solid var(--outline);
    border-radius: 24px;
    padding: 12px 16px;
    background: var(--surface-color);
    color: var(--on-surface);
}

.web-chat-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
    background: var(--surface-color);
    color: var(--on-surface);
}

.web-chat-card .form-control:disabled {
    background: var(--surface-variant);
    color: var(--on-surface-variant);
    border-color: var(--outline-variant);
}

.web-chat-card .btn-primary {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Responsive Chat Adjustments */
@media (max-width: 768px) {
    .chat-container {
        height: 320px;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .web-chat-card .card-footer {
        padding: 12px 16px;
    }
}

/* Remove old conflicting styles - using new modern styles */

/* Footer */
footer {
    background-color: var(--surface-color) !important;
    border-top: 1px solid var(--outline-variant);
    color: var(--on-surface-variant) !important;
}

footer h5 {
    color: var(--on-surface) !important;
    font-weight: 500;
}

footer a {
    color: var(--on-surface-variant) !important;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Login and Signup Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 48px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header img {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--on-surface);
    margin-bottom: 8px;
}

.auth-method {
    padding: 16px;
    border: 2px solid var(--outline-variant);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-method:hover {
    border-color: var(--primary-color);
    background-color: rgba(26, 115, 232, 0.04);
}

.auth-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.auth-method h6 {
    font-weight: 500;
    color: var(--on-surface);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.google-signin-btn {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--outline-variant);
    border-radius: 8px;
    background: white;
    color: var(--on-surface);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.google-signin-btn:hover {
    border-color: var(--primary-color);
    background-color: rgba(26, 115, 232, 0.04);
}

.google-signin-btn i {
    color: #4285f4;
    font-size: 1.25rem;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--outline-variant);
}

.divider span {
    background: white;
    padding: 0 16px;
    color: var(--on-surface-variant);
    font-size: 0.875rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        text-align: center;
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 80px;
    }
    
    .timeline-number {
        left: 18px;
    }
    
    .login-card, .signup-card {
        padding: 32px 24px;
        margin: 16px;
    }
}

@media (max-width: 576px) {
    .timeline:before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-number {
        left: 8px;
    }
    
    .message {
        max-width: 90%;
    }
}