/* CSS Variables & Reset */
/* --- CAROUSEL DRAGGING FIX --- */
.trending-carousel.dragging,
.partners-carousel.active,
.cards-carousel.dragging,
.cat-selector.dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
    user-select: none !important;
}

.trending-card,
.partner-card,
.cat-item,
.hero-slide {
    user-drag: none;
    -webkit-user-drag: none;
}

/* --- SMART DASHBOARD STYLES --- */
.smart-dashboard {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
    border-left: 4px solid transparent;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.kpi-card.success {
    border-left-color: #10B981;
}

.kpi-card.warning {
    border-left-color: #F59E0B;
}

.kpi-card.info {
    border-left-color: #3B82F6;
}

.kpi-card.primary {
    border-left-color: var(--primary-color);
}

.kpi-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.kpi-card.success .kpi-icon {
    background: #D1FAE5;
    color: #10B981;
}

.kpi-card.warning .kpi-icon {
    background: #FEF3C7;
    color: #F59E0B;
}

.kpi-card.info .kpi-icon {
    background: #DBEAFE;
    color: #3B82F6;
}

.kpi-card.primary .kpi-icon {
    background: #E0E7FF;
    color: var(--primary-color);
}

.kpi-info h3 {
    font-size: 0.85rem;
    color: #64748B;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
}

.kpi-trend {
    font-size: 0.75rem;
    color: #10B981;
    margin-top: 5px;
    display: block;
}

.kpi-sub {
    font-size: 0.75rem;
    color: #94A3B8;
}

.kpi-progress {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    margin-top: 5px;
}

/* Analytics Row */
.analytics-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
}

@media(max-width: 768px) {
    .analytics-row {
        grid-template-columns: 1fr;
    }
}

.chart-container,
.action-plan-container,
.search-filters {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.chart-container h3,
.action-plan-container h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Action Plan List */
.action-list {
    list-style: none;
    padding: 0;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
}

.action-item:last-child {
    border-bottom: none;
}

.action-check {
    color: #CBD5E1;
    cursor: pointer;
    font-size: 1.2rem;
}

.action-item.normal .action-check {
    color: #10B981;
}

.action-details {
    flex: 1;
}

.action-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.action-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-status.critical {
    background: #FEE2E2;
    color: #EF4444;
}

.badge-status.warning {
    background: #FEF3C7;
    color: #F59E0B;
}

.badge-status.success {
    background: #D1FAE5;
    color: #10B981;
}

:root {
    --primary-color: #003366;
    /* Deep Corporate Blue */
    --accent-color: #0D8ABC;
    /* Vibrant Blue */
    --bg-color: #F4F7FA;
    --card-bg: #FFFFFF;
    --text-main: #1F2937;
    --text-secondary: #6B7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-family: 'Inter', sans-serif;
}

[data-theme="dark"] {
    --primary-color: #38bdf8;
    /* Vibrant cyan-blue for contrast */
    --accent-color: #0ea5e9;
    --bg-color: #020617;
    /* Very deep slate black */
    --card-bg: #0f172a;
    /* Deep slate blue-black */
    --text-main: #f8fafc;
    /* Near white */
    --text-secondary: #94a3b8;
    /* Balanced slate gray */
    --bg-secondary: #1e293b;
    --bg-hover: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.7);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.8), 0 2px 4px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.9);
}

.theme-toggle-btn,
.lang-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 5px;
    /* Slight gap before notification */
    position: relative;
    overflow: hidden;
    font-weight: 700;
    font-size: 0.75rem;
}

/* Subtle glass effect on hover */
.theme-toggle-btn:hover,
.lang-toggle-btn:hover {
    background: rgba(13, 138, 188, 0.1);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(13, 138, 188, 0.3);
}

.theme-toggle-btn:hover {
    transform: rotate(15deg);
}

.theme-toggle-btn:active,
.lang-toggle-btn:active {
    transform: scale(0.9);
}

/* Dropdown Language Menu */
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 140px;
    display: none;
    flex-direction: column;
    padding: 8px;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

[data-theme="dark"] .lang-dropdown-menu {
    border-color: rgba(255, 255, 255, 0.1);
}

.lang-dropdown-menu.active {
    display: flex;
}

.lang-option {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.lang-option:hover {
    background: var(--bg-color);
    color: var(--accent-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    /* Ensure footer stays at bottom if content is short */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    /* Pushes footer down */
    width: 100%;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

/* Footer Styles */


.footer {
    background-color: var(--primary-color);
    color: white;
    padding-top: 0;
    margin-top: 2rem;
    /* Reduced margin */
    position: relative;
    font-size: 0.85rem;
    /* Slightly smaller text */
    margin-top: auto;
}

/* Professionalized Divider */
.footer-divider,
.listra {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    display: block;
    opacity: 0.5;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.footer-column.brand-column {
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo-symbol {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    /* Improved visibility on dark backgrounds */
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

/* Ensure symbol is above the signature with proper vertical grouping */
.footer-logos {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    /* Tightened for closer symbol/signature relationship */
    align-items: flex-start;
}

.footer-logo-capacitar {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.assinatura {
    max-width: 220px;
    height: auto;
    object-fit: contain;
    opacity: 1;
    /* Full visibility for the signature */
}

.footer-qrcode {
    margin-top: 1rem;
    width: 90px;
    height: 90px;
    background: white;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.footer-qrcode:hover {
    transform: scale(1.05);
}

.footer-cnpj {
    color: #94A3B8;
    font-size: 0.8rem;
    margin: 0;
    font-weight: 500;
}

.footer-social-left {
    display: flex;
    gap: 12px;
    margin-top: 0.5rem;
}

.footer-social-left .social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-left .social-icon:hover {
    background: #0078d4;
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.4);
    border-color: #0078d4;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: white;
}

.logo-img {
    height: 50px;
    /* Reverted to original 50px */
    width: auto;
    object-fit: contain;
}

/* New Logo Styles */
.tdb-logo-img {
    height: 60px;
    /* Adjusted to fit navbar */
    width: auto;
}

.tdb-logo-a {
    text-decoration: none;
}

.tdb-logo-a h1 {
    margin: 0;
    line-height: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
    color: #E2E8F0;
}

.footer-links a {
    color: #E2E8F0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
}

.footer-qrcode {
    border-radius: 8px;
    border: 4px solid white;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.75rem;
    color: #64748B;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-privacy {
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-privacy:hover {
    color: white;
}

/* Original styles below */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    width: 35%;
    max-width: 500px;
    color: #64748b;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.search-bar:focus-within {
    background: var(--card-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 138, 188, 0.15);
}

.search-bar input {
    border: none;
    background: transparent;
    margin-left: 10px;
    width: 100%;
    outline: none;
    color: var(--text-main);
}

/* --- SEARCH RESULTS DROPDOWN --- */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 360px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    animation: searchDropdownIn 0.2s ease-out;
}

.search-results-dropdown.active {
    display: block;
}

@keyframes searchDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-header {
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.search-result-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    flex-wrap: nowrap;
}

.search-result-item:hover {
    background: rgba(13, 138, 188, 0.08);
}

.search-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-title mark {
    background: rgba(13, 138, 188, 0.2);
    color: var(--accent-color);
    border-radius: 2px;
    padding: 0 2px;
}

.search-result-meta {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.search-result-arrow {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.2s;
    flex-shrink: 0;
}

.search-result-item:hover .search-result-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-see-all {
    display: block;
    padding: 12px 16px;
    text-align: center;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.15s;
}

.search-see-all:hover {
    background: rgba(13, 138, 188, 0.08);
}

/* Dark mode adjustments for search */
[data-theme="dark"] .search-results-dropdown {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .search-result-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .search-result-title mark {
    background: rgba(14, 165, 233, 0.25);
    color: #38bdf8;
}

[data-theme="dark"] .search-see-all:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Responsive: compact search bar on very small screens */
@media (max-width: 600px) {
    .search-bar {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        background: transparent;
        cursor: pointer;
    }

    .search-bar input {
        position: absolute;
        inset: 0;
        opacity: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        cursor: pointer;
        display: block;
    }

    .search-bar i {
        margin: 0;
        font-size: 1.2rem;
        color: var(--text-main);
    }
}

.user-profile {
    display: flex;
    align-items: center;
    /* gap removed to handle spacing manually for grouping */
}

.notification {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-right: 1.5rem;
    /* Gap between bell and profile */
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EF4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 50%;
}

.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* Main Dashboard */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* --- HERO SLIDER --- */
.hero-section {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.35);
    margin-bottom: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.owl-carousel .owl-item {
    padding: 0;
}

.hero-slide {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 3rem;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    border-radius: 0;
}

/* Stronger, cinematic gradient — dark left, transparent right */
.slide-1 {
    background:
        linear-gradient(100deg, rgba(4, 11, 30, 0.95) 0%, rgba(4, 11, 30, 0.55) 55%, rgba(13, 138, 188, 0.15) 100%),
        url('imgs/bg-final-v2.png');
}

.slide-2 {
    background:
        linear-gradient(100deg, rgba(2, 24, 14, 0.95) 0%, rgba(2, 24, 14, 0.55) 55%, rgba(16, 185, 129, 0.15) 100%),
        url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?auto=format&fit=crop&w=1600&q=80');
}

.slide-3 {
    background:
        linear-gradient(100deg, rgba(30, 18, 2, 0.95) 0%, rgba(30, 18, 2, 0.55) 55%, rgba(245, 158, 11, 0.15) 100%),
        url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1600&q=80');
}

.slide-4 {
    background:
        linear-gradient(100deg, rgba(20, 4, 40, 0.95) 0%, rgba(20, 4, 40, 0.55) 55%, rgba(168, 85, 247, 0.15) 100%),
        url('https://images.unsplash.com/photo-1495020689067-958852a7765e?auto=format&fit=crop&w=1600&q=80');
}

/* Eyebrow label (small pill above title) */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
    color: white;
    text-align: left;
    animation: fadeInUp 0.7s ease-out;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content h2 {
    font-size: 2.2rem;
    font-weight: 850;
    margin-bottom: 0.5rem;
    line-height: 1.08;
    letter-spacing: -1.2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-content .highlight {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    opacity: 0.8;
    line-height: 1.5;
    max-width: 420px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #0D8ABC, #0ea5e9);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 6px 18px rgba(13, 138, 188, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(13, 138, 188, 0.55);
    color: white;
}

/* Premium Page Headers mapping to Slide Styles */
.page-hero-header {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 3rem;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: left;
    max-width: 800px;
    width: 100%;
}

.page-hero-content h1 {
    font-size: 2.2rem;
    font-weight: 850;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-hero-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Premium Owl Dots for hero */
.header-carousel .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-carousel .owl-dot span {
    width: 8px !important;
    height: 8px !important;
    background: rgba(255, 255, 255, 0.35) !important;
    border-radius: 100px !important;
    margin: 0 !important;
    transition: all 0.35s ease !important;
    display: block;
}

.header-carousel .owl-dot.active span {
    width: 28px !important;
    background: white !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

/* Nav arrows hidden for clean look */
.header-carousel .owl-nav {
    display: none;
}

@media (max-width: 768px) {
    .app-container {
        padding: 10px;
    }

    .navbar {
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }

    .hero-slide {
        height: 280px;
        padding: 0 1.5rem;
    }

    .hero-eyebrow {
        margin-bottom: 10px;
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .hero-content h2 {
        font-size: 1.6rem;
        letter-spacing: -0.5px;
    }

    .btn-hero {
        padding: 12px 20px;
        font-size: 0.9rem;
        margin-top: 10px;
    }
}

/* --- DASHBOARD CAROUSEL STYLES --- */
.cards-carousel .owl-stage-outer {
    padding-top: 10px;
    padding-bottom: 0px !important;
}

.cards-carousel .owl-stage {
    padding-left: 20px !important;
}

.cards-carousel .item {
    padding: 10px;
}

.cards-carousel {
    display: block;
    /* Ensure it's not hidden */
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.card {
    border-radius: 20px;
    /* Modern Professional Executive Style */
    height: 320px;
    /* Balanced vertical height */
    width: 100%;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.2rem 1.4rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .card {
        height: 280px;
        min-width: 120px;
        padding: 1.5rem 1rem;
    }

    .card h3 {
        font-size: 0.95rem !important;
        margin-bottom: 8px;
    }

    .card p {
        font-size: 0.75rem !important;
        line-height: 1.3;
    }

    .card-icon {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.4rem !important;
    }
}

/* Professional Dots Styling */
.cards-carousel .owl-dots {
    margin-top: 30px !important;
    text-align: center;
    position: relative;
    z-index: 10;
}

.cards-carousel .owl-dots .owl-dot span {
    width: 12px !important;
    height: 12px !important;
    background: rgba(0, 0, 0, 0.15) !important;
    border-radius: 50% !important;
    margin: 5px !important;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cards-carousel .owl-dots .owl-dot.active span {
    width: 35px !important;
    border-radius: 10px !important;
    background: var(--primary-color) !important;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.2);
}



.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

/* Demo Colors */
.card-green {
    background: #71c73e;
}

/* Demo Orange */
.card-blue {
    background: #1fabcb;
}

.user-table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .user-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* Demo Yellow */
.card-yellow {
    background: #ffc900;
}

/* Demo Dark */
.card-dark {
    background: #333333;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.2);
    /* Semi-transparent circle */
    border-radius: 50%;
    /* Boleado (Circle) */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.card h3 {
    margin-bottom: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
    word-wrap: break-word;
}

.card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
    margin-top: 5px;
}

/* Hover Icon Animation */
.card:hover .card-icon {
    transform: scale(1.1);
    color: #fff;
}

/* --- TRENDING COURSES REDESIGN --- */
.trending-section {
    padding: 5rem 0;
    background-color: transparent;
    /* Changed to match app layout */
    margin: 4rem auto;
    max-width: 1200px;
    border-radius: 24px;
    /* Removed solid bg to feel more integrated */
}

.trending-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.header-main .trending-tag {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-main h2 {
    font-size: 2.8rem;
    color: var(--text-main);
    line-height: 1.1;
    max-width: 600px;
    font-weight: 800;
}

.header-main h2 span {
    background: linear-gradient(90deg, #FCEA1D 0%, #0D8ABC 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trending-stats {
    text-align: right;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
}

[data-theme='dark'] .trending-stats {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.stats-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}

.stats-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.25;
    max-width: 120px;
    text-align: left;
    font-weight: 500;
}

/* Trending Carousel Wrapper */
.trending-carousel-wrapper {
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 1rem;
}

.trending-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 1rem;
    scrollbar-width: none;
    scroll-behavior: smooth;
    justify-content: flex-start;
    -ms-overflow-style: none;
    /* IE and Edge */
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.trending-carousel.dragging,
.trending-carousel.active {
    cursor: grabbing;
    scroll-behavior: auto;
}

.trending-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.trending-carousel .trending-card {
    flex: 0 0 350px;
    /* Don't grow, don't shrink, stay 350px */
}

/* Base Trending Card */
.trending-card {
    background: var(--card-bg);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    /* Changed for better layout */
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

[data-theme='dark'] .trending-card {
    border-color: rgba(255, 255, 255, 0.05);
}

.trending-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Fix for Profile Dropdown (Image 7) */
#profileDropdown.manual-show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

/* Profile Photo Upload Styles (Image 8) */
.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    background: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-edit-photo {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.btn-edit-photo:hover {
    transform: scale(1.15) rotate(15deg);
    background: var(--accent-color);
}

/* Fix for Notification Dropdown (Image 5/6) */
#notifDropdown {
    max-height: 450px;
    overflow-y: auto;
    scrollbar-width: thin;
}

#notifDropdown::-webkit-scrollbar {
    width: 6px;
}

#notifDropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Compact Course Cards (Image 9) */
.course-card {
    background: var(--card-bg, #fff);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 320px;
    /* Reduced width */
}

.course-thumbnail {
    height: 160px;
    /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--thumb-bg, #eee);
    font-size: 3rem;
}

.course-content {
    padding: 1.25rem;
    /* Reduced padding */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.1rem;
    /* Slightly smaller */
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.course-description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-actions-cluster {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.course-action {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.85rem;
    border-radius: 12px;
}

.card-left-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 2rem 0;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.trending-card:hover .card-left-icon {
    transform: rotate(10deg) scale(1.1);
}

.card-left-icon i {
    font-size: 1.5rem;
    color: white;
}

.card-left-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.card-left-icon.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.card-left-icon.blue {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.card-body {
    padding: 1.5rem 2rem 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    line-height: 1.3;
}

.card-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme='dark'] .card-meta {
    border-color: rgba(255, 255, 255, 0.1);
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-item span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-item strong {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
}

/* Premium Modal System Styles */
.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.premium-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.premium-modal-box {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 28px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.85) translateY(30px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.premium-modal-overlay.active .premium-modal-box {
    transform: scale(1) translateY(0);
}

.premium-modal-icon {
    font-size: 3.8rem;
    margin-bottom: 1.25rem;
    display: block;
}

.premium-modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.premium-modal-message {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.premium-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-premium-confirm,
.btn-premium-cancel {
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-premium-confirm {
    background: var(--primary-color);
    color: white;
    flex: 1;
}

.btn-premium-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
}

.btn-premium-confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 138, 188, 0.4);
    background: var(--accent-color);
}

.btn-premium-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.premium-modal-overlay.fade-out {
    opacity: 0;
}

.fav-btn {
    font-size: 1.1rem;
    color: #cbd5e1;
    transition: all 0.2s ease;
    cursor: pointer;
}

.fav-btn:hover,
.fav-btn.active {
    color: #ef4444;
    transform: scale(1.2);
}

/* Trending Footer & Navigation */
.trending-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.carousel-nav-custom {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(241, 245, 249, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border: none;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.nav-progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-progress-bar {
    width: 150px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    position: absolute;
    left: 0;
    width: 33%;
    height: 100%;
    background: linear-gradient(to right, #E62C32, #FCEA1D, #F8AA12, #0EB1E8, #83BD4C, #009D45);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

.btn-all-courses {
    background: linear-gradient(135deg, #0EB1E8 0%, #83BD4C 100%);
    color: white !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(14, 177, 232, 0.2);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-all-courses:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(14, 177, 232, 0.3);
    filter: brightness(1.05);
}

/* Dark Mode Extensions for Trending Section */
[data-theme='dark'] .trending-section {
    background: #0f172a;
}

[data-theme='dark'] .trending-card {
    background: #1e293b;
    border: 1px solid #334155;
}

[data-theme='dark'] .header-main h2 {
    color: white;
}

[data-theme='dark'] .card-body h3 {
    color: #f1f5f9;
}

[data-theme='dark'] .card-body p {
    color: #94a3b8;
}

[data-theme='dark'] .meta-item strong {
    color: #e2e8f0;
}

[data-theme='dark'] .nav-progress-bar {
    background: #334155;
}

@media (max-width: 768px) {
    .trending-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .trending-stats {
        text-align: left;
    }

    .trending-footer {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Response */
/* Response */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
        padding: 3rem 1.5rem;
    }

    .footer-logos {
        align-items: center;
        gap: 0.8rem;
    }

    .footer-social-left {
        justify-content: center;
        margin-top: 0.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .feature-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-preview {
        width: 100%;
        justify-content: center;
    }

    .login-card-wrapper {
        flex-direction: column !important;
    }

    .info-login {
        display: none !important;
    }
}

/* --- PREMIUM GAMIFIED COMMAND CENTER --- */
.command-center-overlay.dropdown-menu,
/* High specificity */
.command-center-overlay {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background: rgba(15, 23, 42, 0.95) !important;
    /* Deep Navy - Override Bootstrap */
    border: 1px solid rgba(56, 189, 248, 0.3);
    /* Cyan Glow Border */
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.2);
    backdrop-filter: blur(12px);
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    color: white !important;
    font-family: 'Inter', sans-serif;
}

/* Header */
.cmd-header {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.1) 0%, transparent 100%);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.cmd-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cmd-avatar-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
}

.cmd-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.cmd-level-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #eab308;
    /* Gold */
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid white;
}

.cmd-details {
    display: flex;
    flex-direction: column;
}

.cmd-username {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.cmd-role-badge {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.cmd-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
    padding: 4px;
}

.cmd-close-btn:hover {
    color: white;
}

/* Stats Grid */
.cmd-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
    /* Divider color */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cmd-stat-box {
    background: rgba(15, 23, 42, 0.6);
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.cmd-stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cmd-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Menu Actions */
.cmd-menu-grid {
    padding: 1rem;
    display: grid;
    gap: 0.5rem;
}

.cmd-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.cmd-menu-item:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    color: white;
    transform: translateX(5px);
}

.cmd-menu-item i {
    color: #38bdf8;
    width: 20px;
    text-align: center;
}

.cmd-menu-item.highlight i {
    color: #eab308;
}

/* Footer */
.cmd-footer {
    padding: 0 1rem 1rem 1rem;
}

.cmd-logout-btn {
    width: 100%;
    padding: 12px;
    background: rgba(220, 38, 38, 0.1);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.cmd-logout-btn:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #ef4444;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.2);
}

/* Ensure parent positioning */
.dropdown {
    position: relative;
}

/* Force display when parent is active/shown (Bootstrap adds .show) */
.dropdown-menu.show.command-center-overlay,
.command-center-overlay.manual-show {
    display: block !important;
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* Base state for command center - hidden but ready for animation */
.command-center-overlay {
    display: none;
}

@keyframes slideInHUD {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cmd-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cmd-avatar {
    position: relative;
    width: 60px;
    height: 60px;
}

.cmd-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #0D8ABC;
    box-shadow: 0 0 10px rgba(13, 138, 188, 0.5);
}

.cmd-level-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #F59E0B;
    color: var(--text-main);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.cmd-user-info h3 {
    font-size: 1rem;
    margin: 0;
    color: white;
}

.cmd-role {
    font-size: 0.7rem;
    color: #0D8ABC;
    letter-spacing: 1px;
    font-weight: 700;
}

.cmd-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.cmd-stat-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.cmd-stat-box .label {
    display: block;
    font-size: 0.7rem;
    color: #94A3B8;
    margin-bottom: 2px;
}

.cmd-stat-box .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.cmd-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.cmd-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cmd-btn:hover {
    background: rgba(13, 138, 188, 0.2);
    border-color: #0D8ABC;
    color: white;
    padding-left: 15px;
    /* Slight slide */
}

.cmd-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.cmd-power-btn {
    width: 100%;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #EF4444;
    color: #EF4444;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cmd-power-btn:hover {
    background: #EF4444;
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

/* --- PREMIUM LOGOUT PORTAL OVERLAY --- */
#shutdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.shutdown-content {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: portalAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.shutdown-icon-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shutdown-icon {
    font-size: 3.5rem;
    color: #38bdf8;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.4));
}

.portal-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 50%;
    animation: ringPulse 2s ease-out infinite;
}

.shutdown-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: textReveal 0.6s 0.4s ease-out forwards;
}

@keyframes portalAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ringPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes pulseRed {
    from {
        text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
        transform: scale(1);
    }

    to {
        text-shadow: 0 0 30px rgba(239, 68, 68, 1);
        transform: scale(1.05);
    }
}

@keyframes shrinkLine {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Closing previous block */

/* Correctly wrapped mobile responsiveness */
@media (max-width: 768px) {
    .search-bar {
        width: 100%;
    }

    .feature-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-preview {
        width: 100%;
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Catalog Grid Page Styles */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.catalog-card {
    border-radius: 8px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.catalog-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.catalog-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    z-index: 1;
}

.catalog-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    z-index: 1;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Notification Dropdown */
.notification {
    position: relative;
    /* For dropdown positioning */
}

.notification-dropdown {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 150%;
    right: -10px;
    width: 300px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease;
    max-height: 450px;
    flex-direction: column;
}

.notification-dropdown.active {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notif-header {
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-mark-all-btn {
    width: 100%;
    padding: 12px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.85rem;
}

.notif-mark-all-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
}

[data-theme="dark"] .notif-mark-all-btn {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .notif-mark-all-btn:hover {
    color: #34d399;
}

.notif-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: background 0.2s;
    cursor: pointer;
}

[data-theme="dark"] .notif-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.notif-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-icon {
    font-size: 1.2rem;
    padding-top: 2px;
}

.notif-content h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--text-main);
}

.notif-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.notif-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

/* Notification Types Colors */
.notif-info .notif-icon {
    color: #3B82F6;
}

.notif-warning .notif-icon {
    color: #F59E0B;
}

.notif-success .notif-icon {
    color: #10B981;
}

/* Pointer for Avatar */
.avatar img {
    cursor: pointer;
    transition: transform 0.2s;
}

.avatar img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px var(--accent-color);
}

/* GOV - Dark Blue/Navy */
.card-gov {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
    border-left: 6px solid #60a5fa;
}

/* Compliance - Gold/Yellow */
.card-compliance {
    background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
    border-left: 6px solid #fde047;
}

/* Licitações - Teal/Green */
.card-licitacoes {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    border-left: 6px solid #5eead4;
}

/* Liderança - Purple/Indigo */
.card-lideranca {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    border-left: 6px solid #c4b5fd;
}

/* TI - Cyan/Blue */
.card-ti {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-left: 6px solid #7dd3fc;
}

/* Engenharia - Red/Brick */
.card-engenharia {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    border-left: 6px solid #fca5a5;
}

.catalog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.catalog-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.catalog-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    z-index: 1;
}

.catalog-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    z-index: 1;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Enrollment Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary, #ccc);
}

.file-upload-wrapper {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

[data-theme="dark"] .file-upload-wrapper {
    border-color: rgba(255, 255, 255, 0.2);
}

.file-upload-wrapper:hover {
    border-color: var(--primary-color, #0D8ABC);
    background: rgba(13, 138, 188, 0.1);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main, #fff);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-confirm {
    background: var(--primary-color, #0D8ABC);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-confirm:hover {
    opacity: 0.9;
}





.notif-item:last-child {
    border-bottom: none;
}

.notif-icon {
    font-size: 1.2rem;
    padding-top: 2px;
}

.notif-content h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--text-main);
}

.notif-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.notif-time {
    font-size: 0.7rem;
    color: #94A3B8;
    margin-top: 5px;
    display: block;
}

/* Notification Types Colors */
.notif-info .notif-icon {
    color: #3B82F6;
}

.notif-warning .notif-icon {
    color: #F59E0B;
}

.notif-success .notif-icon {
    color: #10B981;
}

/* Pointer for Avatar */
.avatar img {
    cursor: pointer;
    transition: transform 0.2s;
}

.avatar img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px var(--accent-color);
}

/* GOV - Dark Blue/Navy */
.card-gov {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
    border-left: 6px solid #60a5fa;
}

/* Compliance - Gold/Yellow */
.card-compliance {
    background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
    border-left: 6px solid #fde047;
}

/* Licitações - Teal/Green */
.card-licitacoes {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    border-left: 6px solid #5eead4;
}

/* Liderança - Purple/Indigo */
.card-lideranca {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    border-left: 6px solid #c4b5fd;
}

/* TI - Cyan/Blue */
.card-ti {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-left: 6px solid #7dd3fc;
}

/* Engenharia - Red/Brick */
.card-engenharia {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    border-left: 6px solid #fca5a5;
}

/* Profile Dropdown Specifics */
.dropdown-header {
    padding: 10px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748B;
    background: #F8FAFC;
    border-bottom: 1px solid #F1F5F9;
}

.dropdown-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
    color: var(--text-main);
}

.dropdown-item:hover {
    background: #F1F5F9;
}

.dropdown-item.active {
    background: #EFF6FF;
    color: var(--primary-color);
    font-weight: 600;
}

.dropdown-item i {
    font-size: 1rem;
}

/* --- LOGIN PAGE STYLES --- */
.bg-login {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.login-card-wrapper {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    max-width: 900px;
    width: 95%;
}

.login-container {
    flex: 1;
    min-width: 320px;
}

.info-login {
    flex: 1;
    min-width: 320px;
    position: relative;
    overflow: hidden;
}

/* Enhancements for inputs */
.input-group-text {
    border-color: #e5e7eb;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}

.form-control {
    border-color: #e5e7eb;
    padding: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-card-wrapper {
        flex-direction: column !important;
    }

    .info-login {
        display: none !important;
    }
}

/* --- CADASTRO PAGE STYLES --- */
.form-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.course-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.course-item {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    padding: 0.8rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0369A1;
}

.course-item.completed i {
    color: #10B981;
}

.btn-submit {
    width: 100%;
    margin-top: 2rem;
}

/* --- ADMIN PAGE STYLES --- */
.admin-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.user-table th,
.user-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.user-table th {
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-color);
}

.badge-role {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-admin {
    background: #fee2e2;
    color: #dc2626;
}

.badge-gestor {
    background: #e0f2fe;
    color: #0284c7;
}

.badge-tecnico {
    background: #dcfce7;
    color: #16a34a;
}

.badge-visualizador {
    background: #f1f5f9;
    color: #64748b;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.action-btn:hover {
    color: var(--primary-color);
}

.action-btn.delete:hover {
    color: #dc2626;
}

.select-role-edit {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

/* --- MOTIVATIONAL BANNER --- */
/* --- MOTIVATIONAL BANNER --- */
.motivational-banner {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 3rem 2rem;
    /* Codemar Blue Gradient (No more Green) */
    background: linear-gradient(135deg, #003366 0%, #0D8ABC 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.2);
    position: relative;
    overflow: hidden;
}

.motivational-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}


.motivational-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.motivational-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #38bdf8;
    /* Light Cyan */
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
    animation: floatingIcon 3s ease-in-out infinite;
}

@keyframes floatingIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.motivational-title {
    font-size: 2.5rem;
    font-weight: 700;
    /* Bold */
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    /* Cyan to Indigo */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    /* Extra Bold */
}

.motivational-text {
    font-size: 1.1rem;
    font-weight: 300;
    /* Light */
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
    /* Slate 300 */
}

.motivational-text strong {
    font-weight: 600;
    color: #f8fafc;
    /* Slate 50 */
}

.motivational-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-motivational {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-motivational:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(14, 165, 233, 0.5);
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
}

.btn-motivational-outline {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.btn-motivational-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .motivational-title {
        font-size: 1.8rem;
    }

    .motivational-text {
        font-size: 1rem;
    }

    .motivational-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-motivational,
    .btn-motivational-outline {
        width: 100%;
        justify-content: center;
    }
}

/* Modal Styles - Added for Dark Mode Compatibility */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    box-shadow: var(--shadow-lg);
    color: var(--text-main);
    border: 1px solid var(--text-secondary);
    /* Hint for high contrast */
}

/* Admin Table Dark Mode Fixes */
.user-table th {
    background-color: var(--bg-color);
    /* Was typically grey/white */
    color: var(--text-main);
}

.user-table td {
    background-color: var(--card-bg);
    color: var(--text-main);
    border-bottom: 1px solid var(--bg-color);
}

/* Ensure inputs in modal are visible in dark mode */
.modal-content input,
.modal-content select {
    background-color: var(--bg-color);
    color: var(--text-main);
    border: 1px solid var(--text-secondary);
}

.modal-content input:focus,
.modal-content select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Animations for Live Notifications */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* --- PROFESSIONAL PROFILE ID CARD --- */
.profile-id-card {
    display: flex;
    overflow: hidden;
    position: relative;
    padding: 0 !important;
    min-height: 280px;
    margin-bottom: 2rem;
}

.id-card-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(13, 138, 188, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.id-card-content {
    display: flex;
    width: 100%;
}

.id-card-photo-section {
    background: var(--primary-color);
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.id-photo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
}

#profileAvatarLarge {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.photo-edit-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--accent-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid white;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.photo-edit-badge:hover {
    transform: scale(1.1);
}

.id-badge-type {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.id-card-info-section {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.id-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.id-logo {
    height: 40px;
    opacity: 0.9;
}

.id-org {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.id-user-name {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    color: var(--text-main);
}

.id-user-job {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 0.5rem;
}

.id-user-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.id-card-footer {
    display: flex;
    gap: 3rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--glass-border);
}

.id-stat {
    display: flex;
    flex-direction: column;
}

.id-stat-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.id-stat-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
}

/* --- ROLE-BASED DASHBOARD LAYOUT --- */
.profile-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-card h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.dashboard-card.wide-card {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .dashboard-card.wide-card {
        grid-column: span 1;
    }
}

/* Progress Detailed */
.progress-stat-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.progress-bar-premium {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: var(--premium-gradient);
    border-radius: 10px;
}

.progress-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.metric-box {
    text-align: center;
    padding: 1rem;
    background: rgba(13, 138, 188, 0.05);
    border-radius: 12px;
}

.metric-box .val {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-color);
}

.metric-box .lbl {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Skills Chart */
.skills-chart-container {
    height: 250px;
    margin: 0 auto;
}

/* Manager Mini KPIs */
.kpi-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-card-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem !important;
}

.kpi-icon-mini {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(13, 138, 188, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.kpi-card-mini.success .kpi-icon-mini {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.kpi-content-mini {
    display: flex;
    flex-direction: column;
}

.kpi-lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.kpi-val {
    font-size: 1.1rem;
    font-weight: 800;
}

/* Premium Table */
.premium-table {
    width: 100%;
    border-collapse: collapse;
}

.premium-table th {
    text-align: left;
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
}

.premium-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.td-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.mini-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.mini-bar {
    width: 100px;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.mini-bar .fill {
    height: 100%;
    background: var(--accent-color);
}

.btn-primary-action {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary-action:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 138, 188, 0.3);
}

.btn-action-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action-outline:hover {
    background: var(--accent-color);
    color: white;
}

.feature-header-alt {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

/* Dark Mode ID Card Adjustments */
[data-theme="dark"] .profile-id-card {
    background: var(--card-bg);
}

[data-theme="dark"] .id-card-photo-section {
    background: #020617;
}

[data-theme="dark"] .mini-bar {
    background: rgba(255, 255, 255, 0.1);
}

.mini-avatar-placeholder {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(13, 138, 188, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.badge-status-mini {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-status-mini.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.badge-status-mini.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.mt-4 {
    margin-top: 1.5rem;
}