:root {
    --bg-primary: #0B0E14;
    --bg-secondary: #151A23;
    --bg-card: rgba(21, 26, 35, 0.7);
    --text-primary: #FFFFFF;
    --text-secondary: #8B94A5;
    --accent-gold: #FFD700;
    --accent-gold-glow: rgba(255, 215, 0, 0.2);
    --accent-gold-dark: #B8860B;
    --accent-neon: #00F0FF;
    --accent-pink: #FF396F;
    --accent-green: #00E676;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
#loader.hidden {
    opacity: 0;
    pointer-events: none;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-gold);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--text-primary); }
a { text-decoration: none; color: var(--text-primary); transition: all 0.3s ease; }
p { color: var(--text-secondary); }

/* Layouts */
.appHeader {
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}
.appHeader .left, .appHeader .right { width: 40px; display: flex; align-items: center; }
.appHeader .right { justify-content: flex-end; }
.appHeader .pageTitle {
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.headerButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-primary);
    font-size: 24px;
}
.imaged { border-radius: 50%; }
.w32 { width: 32px; height: 32px; }

#appCapsule {
    padding: 70px 16px 80px 16px;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

/* Bottom Nav */
.appBottomMenu {
    height: 65px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(21, 26, 35, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    border-top: 1px solid var(--border-color);
    padding-bottom: env(safe-area-inset-bottom);
}
.appBottomMenu .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 20%;
    color: var(--text-secondary);
    position: relative;
}
.appBottomMenu .item .col { display: flex; flex-direction: column; align-items: center; }
.appBottomMenu .item i { font-size: 22px; margin-bottom: 4px; transition: all 0.3s ease; }
.appBottomMenu .item strong { font-size: 10px; font-weight: 500; }
.appBottomMenu .item.active { color: var(--accent-gold); }
.appBottomMenu .item.active i {
    transform: translateY(-2px);
    text-shadow: 0 0 10px var(--accent-gold-glow);
}
.appBottomMenu .item .action-button {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    margin-top: -20px;
    margin-bottom: 4px;
    box-shadow: 0 4px 15px var(--accent-gold-glow);
    border: 3px solid var(--bg-primary);
    transition: transform 0.3s ease;
}
.appBottomMenu .item.active .action-button {
    transform: scale(1.1);
}
.appBottomMenu .item .action-button i { color: var(--bg-primary); font-size: 24px; margin: 0; }

/* Utilities & Glassmorphism */
.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    margin-bottom: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}
.glass-panel {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
}

.text-gold { color: var(--accent-gold); }
.text-pink { color: var(--accent-pink); }
.text-green { color: var(--accent-green); }
.text-neon { color: var(--accent-neon); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--accent-gold-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}
.btn-outline:hover {
    background: var(--accent-gold-glow);
}
.btn-danger {
    background: rgba(255, 57, 111, 0.1);
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
}

/* Inputs */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}
.form-control {
    width: 100%;
    height: 48px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 16px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px var(--accent-gold-glow);
}

/* Spacing */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; }

/* Banners Slider */
.banner-container {
    position: relative;
    width: 100%;
}
.banner-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 5px; /* Reduced to make room for dots */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
    padding-left: 5px;
    padding-right: 5px;
}
.banner-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}
.banner-slider .banner-item {
    scroll-snap-align: center;
    flex: 0 0 85%; /* Show 85% so next banner is clearly visible */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    display: block;
    border: 1px solid var(--glass-border);
}
.banner-slider .banner-item img {
    width: 100%;
    height: 115px; /* Slightly increased height */
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none; /* Helps with mouse swiping on some devices */
}

/* Banner Pagination */
.banner-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}
.banner-pagination .dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}
.banner-pagination .dot.active {
    background: var(--accent-gold);
    width: 16px;
    border-radius: 4px;
}

/* --- Responsive Media Queries --- */

/* Desktop Nav (hidden on mobile) */
.desktop-nav {
    display: none;
}
.desktop-nav .nav-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 5px 15px;
    gap: 15px;
}
.desktop-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}
.desktop-nav a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.desktop-nav a.active {
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

@media (min-width: 768px) {
    /* Adjust grids for larger screens */
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    
    /* Make banners look better on desktop */
    .banner-slider .banner-item {
        flex: 0 0 48%; /* Show 2 banners side by side on desktop */
    }
    .banner-slider .banner-item img {
        height: 140px; /* Slightly taller on desktop */
    }
}

@media (min-width: 1024px) {
    .grid-2 { grid-template-columns: repeat(4, 1fr); } /* 4 columns on large screens */
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .banner-slider .banner-item {
        flex: 0 0 32%; /* Show 3 banners on large screens */
    }
    .responsive-list { grid-template-columns: repeat(3, 1fr); }
}

/* Responsive List for Desktop (Tasks, Plans, Team History) */
.responsive-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
@media (min-width: 768px) {
    .responsive-list { grid-template-columns: repeat(2, 1fr); }
}
