﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* --- Ultra Premium Palette --- */
    --bg-body: #020617;
    --bg-panel: rgba(15, 23, 42, 0.8);
    --bg-panel-solid: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.5);
    --bg-input: rgba(0, 0, 0, 0.25);

    --border-color: rgba(255, 255, 255, 0.06);
    --border-bright: rgba(255, 255, 255, 0.12);

    /* Accents & Gradients */
    --primary: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --primary-glow: rgba(59, 130, 246, 0.3);

    --success: #10b981;
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);

    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Layout Constant Variables */
    --sidebar-width: 280px;
    --header-height: 72px;

    /* Effects */
    --glass-blur: blur(16px);
    --shadow-premium: 0 15px 35px -5px rgba(0, 0, 0, 0.6);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at 0% 0%, #1e1b4b 0%, #020617 50%),
        radial-gradient(circle at 100% 100%, #172554 0%, #020617 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Improved Scrollbar --- */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-bright);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- App Layout --- */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    transition: var(--transition);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 32px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    -webkit-text-fill-color: initial;
    color: var(--primary);
    filter: drop-shadow(0 0 12px var(--primary-glow));
}

.nav-links {
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transform: translateX(6px);
}

.nav-link.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 20px -6px var(--primary-glow);
}

.user-profile-mini {
    padding: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid var(--border-bright);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* --- Main Region --- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    position: relative;
    padding-bottom: 40px;
}

.top-bar {
    height: var(--header-height);
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.content-wrapper {
    padding: 40px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Section Views --- */
.section-view {
    display: none;
    width: 100%;
}

.section-view.active {
    display: block !important;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Ultra Premium Cards --- */
.card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-premium);
    margin-bottom: 24px;
}

.card:hover {
    border-color: var(--border-bright);
}

.card-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Dashboard Grid --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    margin: 6px 0;
}

.dashboard-main-chart {
    grid-column: span 2;
    padding-bottom: 50px !important;
}

.chart-wrapper {
    display: flex;
    gap: 20px;
    height: 250px;
    margin-top: 10px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 700;
    padding-bottom: 25px;
    /* Alignment with horizontal axis */
    text-align: right;
    min-width: 25px;
}

.chart-container {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    position: relative;
    border-bottom: 2px solid var(--border-color);
    border-left: 2px solid var(--border-color);
    padding-left: 15px;
    padding-right: 10px;
}

.chart-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px 8px 4px 4px;
    position: relative;
    transition: var(--transition);
    min-width: 20px;
}

.chart-bar:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chart-bar.active {
    background: var(--primary-gradient);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.chart-bar span {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
}

/* --- Special Components --- */
.clock-panel {
    text-align: center;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.4), var(--bg-card));
    padding: 60px !important;
}

.digital-clock {
    font-size: 5.5rem !important;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px var(--primary-glow));
    margin: 20px 0 !important;
}

.badge {
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.05);
}

.badge.active {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.badge.completed {
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.1);
}

/* --- Avatar UI --- */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    flex-shrink: 0;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.75rem;
}

.avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    font-size: 2.2rem;
}

/* --- Tables --- */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.data-table th {
    padding: 16px 24px;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 1.5px;
}

.data-table td {
    padding: 20px 24px;
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.data-table td:first-child {
    border-left: 1px solid var(--border-color);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.data-table td:last-child {
    border-right: 1px solid var(--border-color);
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.data-table tr:hover td {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

/* --- Forms & Inputs --- */
.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 20px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

/* Fix for invisible select options */
select.form-input option {
    background-color: var(--bg-panel-solid);
    color: var(--text-main);
}


/* --- Buttons --- */
.btn {
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px var(--primary-glow);
}

.btn-clock {
    padding: 18px 45px !important;
    font-size: 1.2rem !important;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-card {
    background: var(--bg-panel-solid);
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--text-muted));
    background-clip: text;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

#add-user-form {
    padding: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.modal-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.modal-actions .btn {
    min-width: 140px;
    padding: 14px 28px;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1.2;
    border: 1px solid transparent;
    /* Match border size for symmetry */
}

.btn-text {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--border-color) !important;
}

.btn-text:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-color: var(--border-bright);
    transform: translateY(-2px);
}

/* Custom Select Styling */
select.form-input {
    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='%2394a3b8'%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 16px center;
    background-size: 16px;
    padding-right: 48px;
}

/* --- Login View --- */
.login-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-body);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-bright);
    width: 440px;
    padding: 48px;
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

/* --- Responsiveness --- */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-main-chart {
        grid-column: span 1;
    }
}

/* --- Premium Modal Enhancements --- */
.modal-premium {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(59, 130, 246, 0.1);
    animation: modalEntry 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalEntry {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-title-with-icon {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-icon-accent {
    font-size: 1.6rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

#add-task-form {
    padding: 32px;
}

.form-group label i {
    margin-right: 8px;
    opacity: 0.7;
    color: var(--primary);
}

.select-wrapper {
    position: relative;
}

/* Custom styles for specific input types */
input[type="date"].form-input {
    font-family: inherit;
    color-scheme: dark;
}

input[type="number"].form-input {
    font-variant-numeric: tabular-nums;
}

.modal-actions-premium {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.btn-primary-premium {
    background: var(--primary-gradient);
    color: white;
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px var(--primary-glow);
}

.btn-primary-premium:active {
    transform: translateY(-1px);
}

.btn-text-premium {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-text-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: var(--border-bright);
}

/* Transition for form inputs */
.form-input {
    transition: var(--transition), background 0.2s ease;
}

.form-input:hover {
    background: rgba(255, 255, 255, 0.05);
}

.form-input:focus {
    transform: translateY(-2px);
}

/* --- Schedule Modal Specifics --- */
.schedule-days-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.schedule-day-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.schedule-day-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-bright);
}

.schedule-day-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.schedule-day-label {
    min-width: 120px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.schedule-time-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.schedule-time-inputs .form-input {
    width: 110px !important;
    padding: 10px 14px;
    text-align: center;
    font-size: 0.9rem;
}

.schedule-time-separator {
    color: var(--text-dim);
    font-weight: 700;
}

.schedule-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.schedule-section-header i {
    color: var(--primary);
    font-size: 1.1rem;
}

.schedule-section-header h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.vacation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: rgba(59, 130, 246, 0.04);
    padding: 24px;
    border-radius: 20px;
    border: 1px dashed rgba(59, 130, 246, 0.2);
}

/* Custom Checkbox */
.checkbox-container {
    user-select: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.2);
}

.custom-checkbox i {
    font-size: 10px;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

input[type="checkbox"]:checked+.custom-checkbox {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

input[type="checkbox"]:checked+.custom-checkbox i {
    opacity: 1;
}

/* --- Availability Calendar --- */
.calendar-card {
    padding: 40px !important;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.calendar-controls h4 {
    min-width: 180px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.calendar-weekdays div {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-weekdays div.weekend {
    color: var(--danger);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.calendar-day {
    aspect-ratio: 1/1;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-bright);
    transform: translateY(-2px);
}

.calendar-day.not-current-month {
    opacity: 0.2;
    pointer-events: none;
}

.calendar-day .day-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
}

.calendar-day.today .day-num {
    color: var(--primary);
    position: relative;
}

.calendar-day.today {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.availability-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
}

.day-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.day-badge.working {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.day-badge.vacation {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.day-badge.holiday {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    width: 100%;
    text-align: center;
}

.calendar-legend {
    margin-top: 32px;
    display: flex;
    gap: 24px;
    justify-content: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.working {
    background: var(--success);
}

.dot.holiday {
    background: var(--danger);
}

.dot.vacation {
    background: var(--warning);
}

/* --- Projects Modal Premium Styling --- */
.modal-projects-premium {
    background: #05070a !important;
    border: 1px solid #1e293b !important;
    max-width: 450px !important;
    border-radius: 20px !important;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(59, 130, 246, 0.1) !important;
}

.modal-header-centered {
    padding: 30px 32px 10px 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: none !important;
}

.modal-header-centered h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff !important;
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    margin: 0;
}

.modal-header-centered .btn-close-modal {
    position: absolute;
    right: 20px;
    top: 30px;
    color: #94a3b8;
}

.label-premium {
    display: block;
    font-size: 11px !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

.form-input-premium {
    width: 100%;
    background: #0a0c10 !important;
    border: 1px solid #1e293b !important;
    color: #fff !important;
    padding: 16px 20px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-input-premium:focus {
    border-color: #3b82f6 !important;
    background: #0d1117 !important;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.color-picker-container {
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1e293b;
    background: #0a0c10;
    display: flex;
}

.color-input-premium {
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    border: none;
    background: none;
    cursor: pointer;
    margin: -20px;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
}

.color-input-premium::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input-premium::-webkit-color-swatch {
    border: none;
}

.select-wrapper-premium {
    position: relative;
    display: flex;
    align-items: center;
}

.select-wrapper-premium select {
    appearance: none;
    padding-right: 48px;
}

.select-wrapper-premium .select-icon {
    position: absolute;
    right: 20px;
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.8rem;
}


/* --- Dropdown Engine --- */
.top-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dropdown-wrapper {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-bright);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-header h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.dropdown-content {
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-empty {
    padding: 30px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Notification Item */
.notification-item {
    padding: 16px 20px;
    display: flex;
    gap: 14px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
    background: rgba(59, 130, 246, 0.05);
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    flex-shrink: 0;
}

.notif-body p {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 4px;
}

.notif-time {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Settings Menu */
.dropdown-menu {
    list-style: none;
    padding: 8px;
}

.menu-item-profile {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.user-meta strong {
    display: block;
    font-size: 0.9rem;
    color: white;
}

.user-meta span {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateX(4px);
}

.menu-link i {
    width: 20px;
    text-align: center;
    color: var(--text-dim);
}

.menu-link:hover i {
    color: var(--primary);
}

.menu-link.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.menu-link.text-danger i {
    color: var(--danger);
}

/* Badge */
.icon-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-actions.justify-end {
    justify-content: flex-end;
}

.notification-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: var(--danger);
    border: 2px solid var(--bg-body);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--danger);
}

/* --- Premium Modal Buttons --- */
.modal-actions-premium {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.btn-primary-premium {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px -5px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary-premium:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px -5px var(--primary-glow), 0 0 25px var(--primary-glow);
    filter: brightness(1.2);
}

.btn-primary-premium:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-text-premium {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 16px 36px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-text-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: var(--border-bright);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}