/* Custom styles that can't be easily achieved with Tailwind */

/* Button styles */
.btn {
    transition: all 0.3s ease;
}

/* Chat styles */
#chat-messages {
    height: 400px;
    overflow-y: auto;
}

.message {
    border-radius: 18px;
    max-width: 80%;
}

.user-message {
    background-color: #E6DFFE;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.ai-message {
    background-color: #F0F0F0;
    border-bottom-left-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #chat-messages {
        height: 300px;
    }

    .message {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    #user-input {
        flex-direction: column;
    }

    #user-message {
        margin-right: 0;
        margin-bottom: 0.625rem;
    }

    #send-button {
        width: 100%;
    }
}

/* Ensure smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Ensure consistent font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom focus styles for better accessibility */
.focus-visible:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Timeline category styles */
.btn-preparation {
    background-color: #10B981;
}
.btn-preparation:hover {
    background-color: #059669;
}
.box-preparation {
    background-color: #D1FAE5;
}

.btn-testing {
    background-color: #3B82F6;
}
.btn-testing:hover {
    background-color: #2563EB;
}
.box-testing {
    background-color: #DBEAFE;
}

.btn-financial-aid {
    background-color: #F59E0B;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-financial-aid:hover {
    background-color: #D97706;
}
.btn-financial-aid:disabled {
    background-color: #FDE68A;
    cursor: not-allowed;
}
.box-financial-aid {
    background-color: #FEF3C7;
}

.btn-college {
    background-color: #8B5CF6;
}
.btn-college:hover {
    background-color: #7C3AED;
}
.box-college {
    background-color: #EDE9FE;
}

.btn-extracurricular {
    background-color: #EC4899;
}
.btn-extracurricular:hover {
    background-color: #DB2777;
}
.box-extracurricular {
    background-color: #FCE7F3;
}

/* Mobile hamburger menu and sidebar styles */
#hamburger-menu {
    display: none;
}

#sidebar {
    transition: transform 0.3s ease-in-out;
}

#dimmer-overlay {
    transition: opacity 0.3s ease-in-out;
}

@media (max-width: 1023px) {
    #hamburger-menu {
        display: block !important;
    }

    #sidebar {
        transform: translateX(-100%);
    }

    #sidebar.sidebar-open {
        transform: translateX(0);
    }

    #dimmer-overlay.active {
        display: block;
    }

    body.sidebar-open {
        overflow: hidden;
    }
}

/* Ensure main content doesn't overlap with the sidebar on larger screens */
@media (min-width: 1024px) {
    #main-content {
        margin-left: 16rem; /* 256px, which is the width of the sidebar */
    }

    #sidebar {
        transform: translateX(0);
    }
}

/* Ensure the hamburger menu is visible on mobile */
@media (max-width: 1023px) {
    #hamburger-menu {
        display: block !important;
    }
}

/* Financial Aid Information page styles */
.financial-aid-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.financial-aid-section {
    margin-bottom: 30px;
}

.financial-aid-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.financial-aid-item h3 {
    color: #2c3e50;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.financial-aid-item p {
    color: #4a5568;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .financial-aid-container {
        padding: 10px;
    }

    .financial-aid-item {
        padding: 15px;
    }
}

/* Responsive Table Styles */
@media screen and (max-width: 600px) {
    table {
        border: 0;
    }
    
    table caption {
        font-size: 1.3em;
    }
    
    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    
    table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: .625em;
    }
    
    table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: .8em;
        text-align: right;
    }
    
    table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }
    
    table td:last-child {
        border-bottom: 0;
    }
}