/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #0F172A;
    background-color: #F8FAFC;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVIGATION BAR ===== */
.navbar-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    color: #0F172A;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.nav-item:hover {
    transform: translateY(-3px);
    background: rgba(0, 198, 255, 0.1);
}

.nav-item.active {
    color: #0072FF;
    background: rgba(0, 198, 255, 0.15);
}

.nav-button {
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 114, 255, 0.3);
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.4);
    background: linear-gradient(135deg, #00D4FF 0%, #0080FF 100%);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 7rem 2rem;
    text-align: center;
    color: white;
}

.hero-cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.85rem 2.2rem;
    background: white;
    color: #0072FF;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
    animation: fadeInUp 0.8s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    background: #F0F9FF;
}

.pixel-sky-bg {
    position: absolute;
    inset: -60px;
    background-image: url('../orig.png');
    background-size: cover;
    background-position: center;
    image-rendering: pixelated;
    z-index: 0;
    animation: cloudSway 13s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.45) 0%, rgba(0, 114, 255, 0.35) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    animation: fadeInDown 0.8s ease;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.98;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    animation: fadeInUp 0.8s ease;
}

/* ===== SECTIONS ===== */
.features-section,
.faq-section,
.page-section {
    padding: 5rem 2rem;
}

.section-container,
.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header,
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title,
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 1rem;
}

.section-subtitle,
.page-subtitle {
    font-size: 1.1rem;
    color: #64748B;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #F8FAFC;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 114, 255, 0.15);
    background: white;
    border-color: rgba(0, 198, 255, 0.3);
}

.feature-icon {
    color: #0072FF;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 1rem;
}

.feature-description {
    color: #64748B;
    line-height: 1.7;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 0.75rem;
}

.faq-answer {
    color: #64748B;
    line-height: 1.8;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: white;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-button {
    background: white;
    color: #0072FF;
    padding: 1rem 3rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ===== FORMS ===== */
.future-form-card,
.support-form-card,
.login-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: 0 auto;
}

.form-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 2rem;
}

.future-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: #0F172A;
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0072FF;
    box-shadow: 0 0 0 3px rgba(0, 114, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-button {
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);box-shadow: 0 6px 20px rgba(0, 114, 255, 0.3);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== AI RESPONSE CARD ===== */
.ai-response-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
    animation: fadeInUp 0.5s ease;
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;padding-bottom: 1rem;
    border-bottom: 2px solid #F1F5F9;
}

.response-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0F172A;
}

.clear-button {
    background: #F1F5F9;
    color: #64748B;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.clear-button:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.response-content {
    color: #334155;
    line-height: 1.8;
}

/* ===== CHAT INTERFACE ===== */
.safe-space-section {
    background: #F8FAFC;
    min-height: calc(100vh - 80px);
}

.safe-space-container {
    max-width: 900px;
    margin: 0 auto;
}

.safe-space-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.delete-chat-button {
    background: #FEE2E2;
    color: #DC2626;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.delete-chat-button:hover {
    background: #FECACA;
    transform: translateY(-2px);
}

.chat-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ai-message,
.user-message {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.4s ease;
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    color: white;
}

.user-message .message-avatar {
    background: #F1F5F9;
    color: #64748B;
}

.message-content {
    background: #F8FAFC;
    padding: 1rem1.25rem;
    border-radius: 12px;
    max-width: 70%;
    line-height: 1.7;
    color: #334155;
}

.user-message .message-content {
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    color: white;
}

.chat-input-container {
    border-top: 2px solid #F1F5F9;
    padding: 1.5rem;
    background: #FAFBFC;
}

.chat-form {
    display: flex;
    gap: 1rem;align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    resize: none;
    max-height: 150px;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: #0072FF;
    box-shadow: 0 0 0 3px rgba(0, 114, 255, 0.1);
}

.send-button {
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.send-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.3);
}

.send-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== SUPPORT PAGE STYLES ===== */
.privacy-notice {
    background: #EFF6FF;
    padding: 1rem1.25rem;
    border-radius: 10px;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: #1E40AF;
    font-size: 0.9rem;
    line-height: 1.6;
}

.privacy-notice svg {
    flex-shrink: 0;margin-top: 0.1rem;
}

.login-divider {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #F1F5F9;
}

.text-link {
    background: none;
    border: none;
    color: #0072FF;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

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

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.school-badge {
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.logout-button {
    background: #F1F5F9;
    color: #64748B;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.logout-button:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.alerts-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.alert-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #0072FF;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.alert-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.alert-priority.high {
    background: #FEE2E2;
    color: #DC2626;
}

.alert-priority.medium {
    background: #FEF3C7;
    color: #D97706;
}

.alert-priority.low {
    background: #DBEAFE;
    color: #2563EB;
}

.alert-date {
    color: #64748B;
    font-size: 0.9rem;
}

.alert-content h3 {
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.alert-content p {
    color: #64748B;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-state {
    text-align: center;
    padding: 3rem;
    color: #64748B;
}

.loading-state .loader {
    border-color: rgba(0, 114, 255, 0.3);
    border-top-color: #0072FF;
    margin: 0 auto 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #94A3B8;
    font-size: 1.1rem;
}

.error-message {
    background: #FEE2E2;
    color: #DC2626;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-top: 1rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes cloudSway {
    0%   { transform: translateX(-32px) translateY(0px); }
    100% { transform: translateX(32px) translateY(-10px); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Mobile menu would require JavaScript toggle */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title,
    .page-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .safe-space-header {
        flex-direction: column;
    }
    
    .chat-container {
        height: 500px;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .future-form-card,
    .support-form-card,
    .login-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 01rem;
    }
    
    .hero-section {
        padding: 4rem 1.5rem;
    }
    
    .features-section,
    .faq-section,
    .page-section {
        padding: 3rem 1.5rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .chat-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .send-button {
        width: 100%;
        justify-content: center;
    }
}
