/* Base Styles */
:root {
    /* Light Mode Colors */
    --primary-color: #4a6cf7;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --card-bg-color: #ffffff;
    --text-color: #212529;
    --border-color: #dee2e6;
    --hover-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --sidebar-bg: #ffffff;
    --sidebar-active: #f0f4ff;
    --progress-bar-bg: #e9ecef;
    --progress-bar-fill: #4a6cf7;
    --fab-bg: #4a6cf7;
    --fab-color: #ffffff;
    --fab-shadow: rgba(74, 108, 247, 0.3);
}

.dark-mode {
    /* Dark Mode Colors */
    --primary-color: #5d7bf9;
    --secondary-color: #adb5bd;
    --background-color: #121212;
    --card-bg-color: #1e1e1e;
    --text-color: #f8f9fa;
    --border-color: #343a40;
    --hover-color: #2d3238;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --sidebar-bg: #1e1e1e;
    --sidebar-active: #2d3238;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.hidden {
    display: none !important;
}



/* Floating Action Button (FAB) for sidebar */
/* FAB Button */
.fab-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #fff;
    border: 2px solid #4f46e5;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    padding: 6px;
    z-index: 2000;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

.fab-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.fab-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 50%;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1500;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Responsive fallback */
@media (min-width: 1024px) {
    .sidebar {
        max-width: 280px;
    }
}



/* Install Button */
#install-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
    padding: 12px 20px;
    background-color: var(--primary-color, #000);
    /* fallback if no custom variable */
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

#install-btn:hover {
    background-color: var(--primary-hover, #222);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

#install-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive position adjustment (optional) */
@media (max-width: 600px) {
    #install-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 14px;
    }
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
/* Sidebar Base */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: var(--sidebar-bg, #fff);
    border-right: 1px solid var(--border-color, #ddd);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 1500;
    transform: translateX(-100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    border-radius: 0 10px 10px 0;
}

/* Show Sidebar when Active */
.sidebar.active {
    transform: translateX(0);
}

/* Collapsed state (desktop if needed) */
.sidebar.collapsed {
    width: 70px;
}

/* Hide text/icon labels in collapsed state */
.sidebar.collapsed .logo-name,
.sidebar.collapsed .sidebar-nav ul li a span,
.sidebar.collapsed .user-profile span,
.sidebar.collapsed .login-button span,
.sidebar.collapsed .logout-button span {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-nav ul li a {
    justify-content: center;
    padding: 12px 15px;
}

.sidebar.collapsed .sidebar-nav ul li a i {
    margin-right: 0;
    font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .fab-btn {
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
    }

    .install-button {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(74, 108, 247, 0.05);
}

.sidebar-logo-menu {
    display: flex;
    align-items: center;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

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

.mascot {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle-btn:hover {
    background-color: var(--hover-color);
    transform: rotate(180deg);
}

.sidebar-toggle-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.menu-icon,
.close-icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hidden {
    opacity: 0;
    position: absolute;
    pointer-events: none;
    transform: scale(0.8);
}

.logo-name {
    margin-left: 10px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    transform: rotate(90deg);
    color: var(--primary-color);
    background-color: var(--hover-color);
}

.logo {
    height: 40px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 10px;
    font-weight: 500;
}

.sidebar-nav ul li a:hover {
    background-color: var(--hover-color);
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sidebar-nav ul li a.active {
    background-color: var(--sidebar-active);
    color: var(--primary-color);
    font-weight: 500;
    border-left: 3px solid var(--primary-color);
}

.sidebar-nav ul li a i {
    margin-right: 12px;
    width: 24px;
    height: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.sidebar-nav ul li a:hover i {
    transform: scale(1.1);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(74, 108, 247, 0.05);
}

.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.user-profile img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.user-profile:hover img {
    transform: scale(1.05);
}

.login-button,
.logout-button {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.login-button i,
.logout-button i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.logout-button {
    background-color: var(--secondary-color);
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 20px;
    transition: all 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content.collapsed {
    margin-left: 70px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .main-content.sidebar-active {
        opacity: 0.7;
        pointer-events: none;
    }
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--card-bg-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 30px;
    margin-left: 15px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 99;
}

.sidebar-toggle.open {
    transform: rotate(90deg);
}

.sidebar-toggle i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.sidebar-toggle.open i {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.nav-menu ul {
    display: flex;
}

.nav-menu ul li {
    margin: 0 15px;
}

.nav-menu ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-menu ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    margin-right: 15px;
}

.nav-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
}


/* logo name and image section */

.logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.search-title {
    font-size: 2rem;
    color: var(--primary-color, #333);
    margin: 0;
}



/* Search Section */
.search-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.search-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -1px;
}

.search-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



.search-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 8px 20px var(--shadow-color);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--card-bg-color);
    border: 2px solid transparent;
    padding: 4px 10px;
    gap: 10px;
}

.search-box:focus-within {
    box-shadow: 0 10px 25px rgba(74, 108, 247, 0.3);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

/* Circular Mic & Send Button Base */
.circle-button,
.search-button {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color, #4f5bd5);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Button Hover / Active States */
.circle-button:hover,
.search-button:hover {
    background-color: #3a5ce5;
    transform: scale(1.05);
}

.circle-button:active,
.search-button:active {
    transform: scale(0.95);
}

.search-button i,
.circle-button i {
    font-size: 18px;
    margin: 0;
}

/* Auto-growing Textarea */
.search-box textarea {
    flex: 1;
    resize: none;
    overflow: hidden;
    border: none;
    border-radius: 0;
    font-size: 16px;
    outline: none;
    background-color: transparent;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1.4;
    max-height: 120px;
}

.search-box textarea::placeholder {
    color: var(--secondary-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.search-box textarea:focus::placeholder {
    opacity: 0.4;
}


/* SEND BUTTON WRAPPER: for outer ring glow */
.send-button-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Make sure the button is centered and above the ring */
.search-button {

    border: 0.5px solid transparent;
    /* For thin invisible border */
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--primary-color, #4f5bd5);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Icon inside the button */
.search-button i {
    font-size: 18px;
    margin: 0;
}

/* Ring rotation animation */
@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}





/* result section  */

.results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
    padding: 0 16px;
}

/* --- Card Section Styles --- */
.web-results,
.youtube-results,
.wolfram-results,
.ai-answer {
    background-color: var(--card-bg-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease-in-out;
    transition: transform 0.3s;
}

.web-results:hover,
.youtube-results:hover,
.wolfram-results:hover,
.ai-answer:hover {
    transform: translateY(-4px);
}

/* --- Section Headings --- */
.search-results-header {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 5px solid var(--primary-color);
    padding-left: 14px;
}

/* --- AI Answer Styling --- */
#ai-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 14px;
    color: var(--text-color);
}

#ai-content strong {
    color: var(--primary-color);
    font-weight: bold;
}

/* --- Link Section --- */
.links-container a,
.videos-container a {
    display: block;
    padding: 12px;
    border-radius: 8px;
    background-color: var(--hover-color);
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

.links-container a:hover,
.videos-container a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Link & Video Items --- */
.link-item,
.video-item {
    margin-bottom: 16px;
}

.video-item iframe {
    border-radius: 10px;
    width: 100%;
    height: 220px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.video-item p {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

/* --- Wolfram Answer Styling --- */
#wolframAnswer {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* --- Fade In Animation --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Layout --- */
@media (max-width: 1024px) {
    .results-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .results-container {
        padding: 0 12px;
    }

    .ai-answer,
    .web-results,
    .youtube-results,
    .wolfram-results {
        padding: 20px;
    }

    .search-results-header {
        font-size: 1.2rem;
    }

    .video-item iframe {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .video-item iframe {
        height: 160px;
    }

    #ai-content p {
        font-size: 0.95rem;
    }

    .search-results-header {
        font-size: 1.1rem;
    }
}



/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
}

.modal-content h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modal-content p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.google-signin,
.anonymous-signin {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-signin {
    background-color: #4285F4;
    color: white;
}

.anonymous-signin {
    background-color: var(--secondary-color);
    color: white;
}

.google-signin i,
.anonymous-signin i {
    margin-right: 10px;
}


/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
}

/* Progress Bar Styles */
.progress-container {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.progress-bar {
    height: 8px;
    background-color: var(--progress-bar-bg);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background-color: var(--progress-bar-fill);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.streak-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

.streak-counter i {
    font-size: 1.2em;
}


/* Recent Chats Preview */
.recent-chats {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.recent-chats h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.chat-preview-item {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-preview-item:last-child {
    border-bottom: none;
}

.chat-preview-item:hover {
    background-color: var(--hover-color);
}

.chat-preview-icon {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .results-container {
        grid-template-columns: 1fr;
    }

    .ai-answer,
    .web-results,
    .youtube-results {
        grid-column: 1 / 2;
    }

    .youtube-results {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        z-index: 1050;
        /* Increased z-index to ensure sidebar appears above all elements */
    }

    .sidebar-logo-menu {
        cursor: pointer;
        /* Make the logo clickable */
    }

    .sidebar-close {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background-color: var(--hover-color);
        transition: all 0.2s ease;
    }

    .sidebar-close:hover {
        background-color: var(--border-color);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        transition: all 0.3s ease;
    }

    .sidebar-toggle {
        display: block;
    }

    .sidebar-close {
        display: block;
    }

    .nav-logo {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .results-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        transition: all 0.3s ease;
    }

    .web-results,
    .youtube-results,
    .ai-answer {
        grid-column: 1;
    }

    .web-results {
        grid-row: 1;
    }

    .youtube-results {
        grid-row: 2;
    }

    .ai-answer {
        grid-row: 3;
    }
}

@media (max-width: 576px) {
    .search-title {
        font-size: 1.5rem;
    }

    .search-box {
        flex-direction: row;
        width: 100%;
    }

    .search-box input {
        font-size: 14px;
        padding: 12px 15px;
    }

    .search-button {
        padding: 0 15px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-button {
        width: 100%;
    }

    .sidebar {
        width: 100%;
        max-width: 300px;
    }
}

/* API Connection Status */
.connecting-message {
    padding: 15px;
    margin-bottom: 20px;
    background-color: var(--hover-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    animation: pulse 1.5s infinite;
    font-style: italic;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}


/* Additional styles for about page */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

.about-section {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.about-section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.about-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

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

.feature-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.feature-description {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.team-section {
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-color);
}

.team-name {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.team-role {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.cta-section {
    text-align: center;
    padding: 40px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: var(--primary-color-dark);
}

@media (max-width: 768px) {
    .about-title {
        font-size: 2rem;
    }

    .about-subtitle {
        font-size: 1rem;
    }

    .feature-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}



/* Additional styles for terms page */
.terms-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.terms-header {
    margin-bottom: 30px;
}

.terms-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.terms-description {
    color: var(--secondary-color);
}

.terms-section {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.terms-section-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.terms-section h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.terms-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.terms-section ul,
.terms-section ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.terms-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.terms-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-section a:hover {
    text-decoration: underline;
}

.terms-date {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.terms-nav {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
}

.terms-nav-item {
    padding: 10px 15px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.terms-nav-item:hover {
    background-color: var(--hover-color);
}

.terms-nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .terms-section {
        padding: 20px;
    }

    .terms-title {
        font-size: 1.5rem;
    }

    .terms-section-title {
        font-size: 1.2rem;
    }
}


/* next page code */

.next-features-list {
    padding-left: 1.2rem;
    margin-top: 1rem;
    line-height: 1.7;
}

.next-features-list li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}


/* footer css code */
.sidebar-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #eee;
    background-color: #fafafa;
}

.app-info {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #777;
}

.version-text {
    margin-bottom: 0.2rem;
    font-weight: bold;
    color: #555;
}

.powered-by strong {
    color: #222;
    font-weight: 600;
}