@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #eab308; /* Golden Yellow */
    --primary-hover: #facc15;
    --primary-glow: rgba(234, 179, 8, 0.15);
    --secondary: #22c55e; /* Trendy Green */
    --secondary-glow: rgba(34, 197, 94, 0.15);
    --bg-black: #050505;
    --card-bg: #111111;
    --input-bg: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.06);
    --header-bg: #000000;
    --gold-gradient: linear-gradient(135deg, #eab308 0%, #facc15 100%);
    --card-gradient: linear-gradient(145deg, #111111 0%, #080808 100%);
    --premium-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    --accent-glow: 0 0 15px rgba(234, 179, 8, 0.1);
}

body.light-theme {
    --bg-black: #f8f9fa;
    --card-bg: #ffffff;
    --input-bg: #f1f3f5;
    --text-white: #0f172a;
    --text-gray: #475569;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.04);
    --header-bg: #ffffff;
    --card-gradient: linear-gradient(145deg, #ffffff 0%, #f9f9f9 100%);
    --premium-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
    --bg-hover: rgba(0, 0, 0, 0.04);
}

:root {
    --bg-hover: rgba(255, 255, 255, 0.05);
    --border-subtle: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-black);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(234, 179, 8, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.02) 0%, transparent 50%);
    background-size: 100% 100%;
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

/* Only apply fade to Auth/Login Page */
body.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 95%);
}

/* Dashboard Body Overrides */
.dashboard-body {
    background-color: var(--bg-black);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* New Full-Width Header */
.main-header {
    width: 100%;
    height: 70px;
    background: var(--header-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: 0.3s;
}

.header-left {
    width: 260px;
    display: flex;
    align-items: center;
    height: 100%;
    /* Ensure vertical centering */
}

.header-center {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    padding-left: 20px;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

/* Currency Switcher Styles */
.curr-opt {
    color: rgba(255, 255, 255, 0.4);
}
.curr-opt:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.curr-opt.active {
    background: var(--primary) !important;
    color: #000 !important;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Global Search Styles */
#search-results {
    display: none;
    flex-direction: column;
}

#search-results.active {
    display: flex;
}

.search-result-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.search-result-item:hover {
    background: rgba(255,255,255,0.05);
}

.search-result-item .icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

.search-result-item.client .icon-box { background: rgba(59,130,246,0.1); color: #3b82f6; }
.search-result-item.task .icon-box { background: rgba(244,114,182,0.1); color: #f472b6; }
.search-result-item.product .icon-box { background: rgba(34,197,94,0.1); color: #22c55e; }

.search-result-item .title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.search-result-item .meta {
    font-size: 0.7rem;
    color: var(--text-gray);
}


.app-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: calc(100vh - 70px);
}

/* Global Select & Option Styling to fix white background issue */
select, option {
    background-color: var(--input-bg) !important;
    color: var(--text-white) !important;
}

/* Sidebar Styling */
.sidebar {
    background: var(--header-bg);
    border-right: 1px solid var(--border-color);
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: 0.3s;
}

.sidebar-nav {
    padding: 0 10px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.45);
    /* Muted Opacity */
    font-size: 0.85rem;
    /* Smaller Text */
    margin-bottom: 2px;
    border-radius: 6px;
    position: relative;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 400;
}

.nav-item i {
    width: 24px;
    font-size: 0.95rem;
    opacity: 0.7;
}

.nav-item.active {
    background: rgba(234, 179, 8, 0.08);
    color: var(--primary);
    font-weight: 600;
    border-right: 2px solid var(--primary);
}

.sidebar-nav.loading .nav-item {
    display: none !important;
}

.sidebar-skeleton {
    display: none;
    padding: 0 10px;
}

.sidebar-nav.loading + .sidebar-skeleton {
    display: block;
}

.sk-menu-item {
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 8px;
    animation: sk-pulse 1.5s infinite ease-in-out;
}

@keyframes sk-pulse {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}

.nav-item:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-footer {
    padding: 20px;
}

.role-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 10px;
    transition: 0.3s;
}

/* Profile Dropdown Logic */
.profile-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--premium-shadow);
    
    /* Animation Properties */
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.dropdown-menu.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

.dropdown-menu a {
    padding: 10px 15px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.dropdown-menu hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 5px 0;
}

.logout-link {
    color: var(--danger) !important;
}

/* Existing Content Overrides */
.main-content {
    overflow-y: auto;
    padding: 30px 40px;
}

.search-box {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 8px;
    /* Sleek corners */
    width: 380px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-white);
    width: 100%;
    outline: none;
    font-size: 0.9rem;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Notification Icon Box */
.notif-icon {
    width: 38px;
    height: 38px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-gray);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notif-icon:active {
    transform: scale(0.9);
}

.notif-icon:hover {
    background: #1a1a1a;
    border-color: rgba(0, 206, 201, 0.3);
    color: var(--text-white);
}

.notif-icon .dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.profile-pill {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 4px 12px 4px 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.85rem;
    /* Smaller text */
    color: var(--text-white);
}

.profile-pill:hover {
    border-color: rgba(0, 206, 201, 0.3);
}

.avatar-small {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 6px;
    /* Matching corners */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
}

/* Welcome Section */
.welcome-section span {
    color: var(--primary);
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.welcome-section h1 {
    font-size: 1.8rem;
    margin: 5px 0;
}

.welcome-section p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 22px;
    border-radius: 16px;
    position: relative;
    display: block;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(234, 179, 8, 0.2);
    background: #111;
}

.stat-card h5 {
    color: var(--text-gray);
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-card .subtext {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 5px;
}

.stat-card .icon-box {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 0.8rem;
}

/* Content Layout (Tasks & Clients) */
.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.view-all {
    color: var(--primary);
    font-size: 0.85rem;
    text-decoration: none;
}

.dashboard-list-container {
    height: 280px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Task Item */
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.task-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.task-info p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.task-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Client Item */
.client-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.client-info h5 {
    font-size: 0.9rem;
}

.client-info p {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.status-indicator {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Container */
.auth-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    text-align: center;
}

.logo-box {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 206, 201, 0.2);
}

.logo-text h2 {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.logo-text h1 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 2px 0 0 0;
    line-height: 1;
}

/* Updated Role Badge - More Professional */
.sidebar-footer {
    padding: 20px 15px;
}

.role-card {
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.role-card span {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.role-card h4 {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Card Styling */
.auth-card {
    margin-top: 10px;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(234, 179, 8, 0.15);
    border-radius: 20px;
    padding: 45px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.auth-card h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.auth-card p.subtitle {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-white);
}

.form-group input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 6px;
    color: #fff;
    outline: none;
    transition: 0.2s;
}

.form-group input:focus,
.modal-content select:focus,
.modal-content input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
    background: rgba(255, 255, 255, 0.02);
}

/* Premium Card Utilities */
.premium-card {
    background: var(--card-gradient);
    border: 1px solid rgba(234, 179, 8, 0.4);
    border-top: 3px solid var(--primary);
    box-shadow: var(--premium-shadow);
    transition: all 0.3s ease;
}

.premium-card:hover {
    border-color: rgba(234, 179, 8, 0.2);
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.7);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Toggle Switch */
.custom-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

input:checked + .switch-slider {
    background-color: var(--primary);
}

input:checked + .switch-slider:before {
    transform: translateX(16px);
}

/* Tracking Module Specifics */
.tracking-block {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-top: 3px solid var(--primary);
    border-radius: 16px;
    padding: 20px;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tracking-block:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tracking-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.tracking-input-sm {
    width: 54px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.8rem;
    text-align: center;
    outline: none;
    transition: 0.2s;
}

.tracking-input-sm:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
}


.btn-signin {
    width: 100%;
    padding: 12px 20px;
    background: var(--gold-gradient);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 206, 201, 0.3);
    background: #00b3af;
}

.btn-signin:active {
    transform: translateY(0);
}

.footer-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-gray);
    text-decoration: none;
}

.bottom-info {
    margin-top: 40px;
    font-size: 0.75rem;
    color: var(--text-gray);
    letter-spacing: 0.5px;
}

/* ===== MODAL OVERLAY ===== */
/* Modal Styling */
.modal, .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.2s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.close-btn {
    font-size: 1.8rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: #fff;
}

/* Modal Form Elements */
.modal-content select,
.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content input[type="url"],
.modal-content input[type="email"],
.modal-content input[type="password"] {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    outline: none;
    transition: 0.2s;
    font-size: 0.9rem;
    margin-top: 5px;
}

.modal-content select:focus,
.modal-content input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 206, 201, 0.1);
}

.modal-content select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

/* Checkboxes */
.modal-content input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    margin-right: 5px;
}

.section-title {
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid rgba(0, 206, 201, 0.2);
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(-10px);
    }

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

/* ===== SKELETON LOADING ===== */
@keyframes shimmer {
    0% {
        background-position: -600px 0;
    }

    100% {
        background-position: 600px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.04) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.04) 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 6px;
}

.sk-line {
    height: 12px;
    margin-bottom: 8px;
}

.sk-title {
    height: 20px;
    width: 40%;
    margin-bottom: 16px;
}

.sk-text {
    height: 12px;
    width: 70%;
}

.sk-sm {
    height: 10px;
    width: 30%;
}

.sk-circle {
    border-radius: 50% !important;
    flex-shrink: 0;
}

.sk-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
}

.sk-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px !important;
    flex-shrink: 0;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.1);
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.empty-state i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    opacity: 0.5;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1c2128;
    color: #fff;
    padding: 14px 24px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    font-size: 1.2rem;
}

.toast-success i {
    color: var(--primary);
}

.toast-error i {
    color: #ef4444;
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.2);
}

/* Status Badges */
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
}

.badge-pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.badge-doing {
    background: rgba(0, 206, 201, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 206, 201, 0.2);
}

.badge-done {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.badge-active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.badge-onboarding {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.2);
}

/* Print Styles */
@media print {
    @page {
        margin: 1.5cm;
        size: auto;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-family: 'Inter', sans-serif !important;
    }

    /* Hide everything except report content */
    .sidebar,
    .top-nav,
    .no-print,
    .btn-signin,
    #search-input,
    .icon-box,
    .mobile-toggle {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        background: #fff !important;
    }

    #printable-report {
        padding: 0 !important;
    }

    .print-only {
        display: block !important;
    }

    /* Cards Layout Fix */
    #reports-grid {
        display: block !important;
        margin-bottom: 30px !important;
    }

    #reports-grid .stat-card {
        display: inline-block !important;
        width: 22% !important;
        margin-right: 2% !important;
        border: 1px solid #ddd !important;
        background: #fff !important;
        color: #000 !important;
        padding: 15px !important;
    }

    #performance-cards {
        display: block !important;
    }

    #performance-cards>div {
        display: inline-block !important;
        width: 30% !important;
        margin-right: 2% !important;
        margin-bottom: 15px !important;
        border: 1px solid #eee !important;
        background: #fff !important;
        color: #000 !important;
        padding: 15px !important;
    }

    #reports-charts {
        display: block !important;
    }

    .content-card {
        background: #fff !important;
        border: 1px solid #eee !important;
        box-shadow: none !important;
        color: #000 !important;
        margin-bottom: 25px !important;
        padding: 20px !important;
        break-inside: avoid;
    }

    h1,
    h2,
    h3,
    h5,
    div,
    span {
        color: #000 !important;
    }

    .value {
        font-size: 20pt !important;
        font-weight: 700 !important;
    }
}

.badge-onboarding {
    background: rgba(101, 84, 192, 0.1);
    color: #6554c0;
    border: 1px solid rgba(101, 84, 192, 0.2);
}

.badge-inactive {
    background: rgba(255, 86, 48, 0.1);
    color: #ff5630;
    border: 1px solid rgba(255, 86, 48, 0.2);
}

.badge-hunting {
    background: rgba(255, 171, 0, 0.1);
    color: #ffab00;
    border: 1px solid rgba(255, 171, 0, 0.2);
}