/* =========================================================
ROOT VARIABLES
========================================================= */

:root {

    /* =====================================================
    BRAND COLORS
    ===================================================== */

    --primary: #5bd2d3;

    --primary-light: #8ff3df;

    --secondary: #cfc85f;

    --accent: #f0e56f;

    --soft-gray: #D9D9D9;

    --mid-gray: #6F6F6F;

    --white: #FFFFFF;


    /* =====================================================
    DARK UI COLORS
    ===================================================== */

    --dark: #151d1f;

    --dark-2: var(--dark);

    --dark-3: #344043;


    /* =====================================================
    GLASS EFFECT
    ===================================================== */

    --glass-bg: rgba(55, 64, 66, .92);

    --glass-border: rgba(255, 255, 255, .32);

    --glass-highlight: rgba(255, 255, 255, 0.56);

    --body-bg: #444444;
    --workspace-bg: linear-gradient(rgba(48, 50, 51, .67), rgba(48, 50, 51, .67)), url("../../images/lantern-wall.1c2e74e4d64c.png");

    --body-color: #f5f5f5;

    --surface-bg: rgba(55, 64, 66, .92);

    --surface-bg-strong: #42494a;

    --surface-border: rgba(255, 255, 255, .28);

    --surface-hover: rgba(255, 255, 255, .18);

    --input-bg: rgba(18, 27, 29, .42);

    --input-focus-bg: #303a3c;

    --input-border: rgba(255, 255, 255, .32);

    --table-text: #FFFFFF;

    --table-hover: rgba(255, 255, 255, .03);


    /* =====================================================
    TEXT
    ===================================================== */

    --text-light: #f5f5f5;

    --text-muted: #d9dddd;


    /* =====================================================
    STATUS COLORS
    ===================================================== */

    --success: #10b981;

    --danger: #ef4444;

    --warning: #f59e0b;


    /* =====================================================
    SHADOWS
    ===================================================== */

    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .12);

    --shadow-primary:
        0 10px 35px rgba(79, 209, 208, .25);


    /* =====================================================
    LAYOUT
    ===================================================== */

    --sidebar-width: 0px;

    --navbar-height: 72px;


    /* =====================================================
    RADIUS
    ===================================================== */

    --radius-xl: 16px;

    --radius-lg: 12px;

    --radius-md: 8px;

    --radius-sm: 6px;


    /* =====================================================
    TRANSITIONS
    ===================================================== */

    --transition: all .3s ease;
    --swal2-background: #0e1d27 !important;

    --lantern-panel: rgba(55, 64, 66, .92);

    --lantern-inset: rgba(18, 27, 29, .24);
    --status-success-text: #a0efc4;

    --lantern-progress: #d9d36b;
    --lantern-layout-gap: clamp(14px, 1.8vw, 28px);
    --lantern-setup-rail: clamp(180px, 23%, 310px);
    --lantern-panel-radius: 16px;
    --lantern-selected: rgba(34, 39, 39, .82);
    --action-bg: #24695f;
    --action-hover: #19584f;
    --action-text: #ffffff;
}

html {
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
    --primary: #176b68;
    --primary-light: #176b68;
    --dark: #edf5f7;
    --dark-2: #f7fbfc;
    --dark-3: #d8e8ee;
    --glass-bg: rgba(255, 255, 255, .64);
    --glass-border: rgba(59, 70, 70, .22);
    --glass-highlight: rgba(255, 255, 255, .78);
    --body-bg: #e0e3e1;
    --workspace-bg: linear-gradient(rgba(235, 238, 236, .90), rgba(235, 238, 236, .90)), url("../../images/lantern-wall.1c2e74e4d64c.png");
    --body-color: #292f30;
    --surface-bg: rgba(255, 255, 255, .64);
    --surface-bg-strong: #f1f3f1;
    --surface-border: rgba(59, 70, 70, .22);
    --surface-hover: rgba(59, 70, 70, .07);
    --input-bg: rgba(255, 255, 255, .65);
    --input-focus-bg: #fff;
    --input-border: rgba(59, 70, 70, .28);
    --table-text: #10232b;
    --table-hover: rgba(55, 118, 136, .07);
    --text-light: #292f30;
    --text-muted: #505b5d;
    --shadow-lg: 0 18px 42px rgba(31, 87, 101, .15);
    --shadow-primary: 0 10px 28px rgba(55, 118, 136, .18);
    --swal2-background: #ffffff !important;

    --lantern-panel: rgba(248, 250, 249, .94);
    --status-success-text: #12633e;

    --lantern-inset: rgba(255, 255, 255, .4);

    --lantern-progress: #8b861f;
    --lantern-selected: rgba(94, 175, 160, .22);
}


/* =========================================================
GLOBAL RESET
========================================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;
}


/* =========================================================
BODY
========================================================= */

body {

    background: var(--body-bg);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--body-color);

    font-family:

        'Inter',
        sans-serif;

    min-height: 100vh;

    overflow-x: hidden;
}


/* =========================================================
LINKS
========================================================= */

a {

    text-decoration: none;

    color: inherit;
}


/* =========================================================
SCROLLBAR
========================================================= */

::-webkit-scrollbar {

    width: 8px;
}

::-webkit-scrollbar-track {

    background: #07131d;
}

::-webkit-scrollbar-thumb {

    background: var(--primary);

    border-radius: 30px;
}

html[data-theme="light"] ::-webkit-scrollbar-track {
    background: #dceff3;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #377688;
}

.theme-toggle-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

html[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, .86);
    border-right-color: rgba(18, 73, 88, .14);
    box-shadow: 12px 0 32px rgba(31, 87, 101, .10);
}

html[data-theme="light"] .sidebar-menu a,
html[data-theme="light"] .project-back-link,
html[data-theme="light"] .text-secondary,
html[data-theme="light"] .text-muted,
html[data-theme="light"] small.text-secondary {
    color: #56717c !important;
}

html[data-theme="light"] .sidebar-menu a:hover {
    background: rgba(55, 118, 136, .08);
    color: #10232b;
}

html[data-theme="light"] .glass-card,
html[data-theme="light"] .dashboard-card,
html[data-theme="light"] .workspace-stat,
html[data-theme="light"] .workspace-chart-card,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .notification-panel,
html[data-theme="light"] .profile-menu,
html[data-theme="light"] .tenant-search-panel,
html[data-theme="light"] .team-chat-rail,
html[data-theme="light"] .team-chat-main,
html[data-theme="light"] .project-task-detail-panel,
html[data-theme="light"] .project-detail-task-card,
html[data-theme="light"] .project-workflow-node,
html[data-theme="light"] .department-workflow-grid section,
html[data-theme="light"] .department-workflow-card,
html[data-theme="light"] .workspace-mobile-card,
html[data-theme="light"] .archive-manager-toolbar,
html[data-theme="light"] .archive-action-bar {
    background: var(--surface-bg);
    border-color: var(--surface-border);
    color: #10232b;
    box-shadow: var(--shadow-lg);
}

html[data-theme="light"] .glass-card::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, .55), transparent);
}

html[data-theme="light"] .dashboard-card:hover,
html[data-theme="light"] .project-detail-task-card:hover,
html[data-theme="light"] .project-detail-task-card.active,
html[data-theme="light"] .department-workflow-card.active,
html[data-theme="light"] .project-workflow-node.active {
    background: var(--surface-hover);
    border-color: rgba(55, 118, 136, .28);
}

html[data-theme="light"] .form-control,
html[data-theme="light"] .form-select,
html[data-theme="light"] textarea.form-control {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: #10232b;
}

html[data-theme="light"] .form-control:focus,
html[data-theme="light"] .form-select:focus,
html[data-theme="light"] textarea.form-control:focus {
    background: var(--input-focus-bg);
    border-color: var(--primary);
    color: #10232b;
    box-shadow: 0 0 0 3px rgba(55, 118, 136, .14);
}

html[data-theme="light"] .form-control::placeholder {
    color: #6d8792;
}

html[data-theme="light"] .form-control[type="date"],
html[data-theme="light"] .form-control[type="time"],
html[data-theme="light"] .form-control[type="datetime-local"],
html[data-theme="light"] input[type="date"].form-control,
html[data-theme="light"] input[type="time"].form-control,
html[data-theme="light"] input[type="datetime-local"].form-control {
    color-scheme: light;
    background:
        linear-gradient(135deg, rgba(79, 209, 208, .12), rgba(255, 255, 255, .72)),
        #ffffff;
}

html[data-theme="light"] .form-control[type="date"]::-webkit-calendar-picker-indicator,
html[data-theme="light"] .form-control[type="time"]::-webkit-calendar-picker-indicator,
html[data-theme="light"] .form-control[type="datetime-local"]::-webkit-calendar-picker-indicator,
html[data-theme="light"] input[type="date"].form-control::-webkit-calendar-picker-indicator,
html[data-theme="light"] input[type="time"].form-control::-webkit-calendar-picker-indicator,
html[data-theme="light"] input[type="datetime-local"].form-control::-webkit-calendar-picker-indicator {
    filter: none;
    background-color: rgba(55, 118, 136, .12);
}

html[data-theme="light"] .btn-outline-custom,
html[data-theme="light"] .notification-action-btn,
html[data-theme="light"] .chat-icon-btn {
    border-color: rgba(55, 118, 136, .22);
    background: rgba(255, 255, 255, .72);
    color: #10232b;
}

html[data-theme="light"] .btn-outline-custom:hover,
html[data-theme="light"] .notification-action-btn:hover,
html[data-theme="light"] .chat-icon-btn:hover {
    background: rgba(55, 118, 136, .10);
    color: #10232b;
}

html[data-theme="light"] .profile-btn,
html[data-theme="light"] .sidebar-profile-btn,
html[data-theme="light"] .mobile-menu-toggle {
    background: rgba(255, 255, 255, .72);
    border-color: rgba(55, 118, 136, .18);
    color: #10232b;
}

html[data-theme="light"] .profile-btn:hover,
html[data-theme="light"] .sidebar-profile-btn:hover,
html[data-theme="light"] .mobile-menu-toggle:hover {
    background: rgba(55, 118, 136, .10);
}

html[data-theme="light"] .profile-menu a,
html[data-theme="light"] .sidebar-profile-menu a {
    color: #10232b;
}

html[data-theme="light"] .profile-menu a:hover,
html[data-theme="light"] .sidebar-profile-menu a:hover {
    background: rgba(55, 118, 136, .08);
}

html[data-theme="light"] .menu-line {
    background: #10232b;
}

html[data-theme="light"] .avatar,
html[data-theme="light"] .team-chat-avatar,
html[data-theme="light"] .member-picker-avatar {
    color: #ffffff;
}

html[data-theme="light"] .table>:not(caption)>*>*,
html[data-theme="light"] .workspace-table,
html[data-theme="light"] .table {
    color: var(--table-text);
}

html[data-theme="light"] .table tbody tr {
    border-color: rgba(18, 73, 88, .10);
}

html[data-theme="light"] .table tbody tr:hover,
html[data-theme="light"] .task-click-row:hover td,
html[data-theme="light"] .report-project-row:hover td {
    background: var(--table-hover);
}

html[data-theme="light"] th {
    color: #2f5f6d !important;
}

html[data-theme="light"] .chat-bubble,
html[data-theme="light"] .activity-content,
html[data-theme="light"] .project-task-detail-grid div,
html[data-theme="light"] .workspace-mobile-fields div,
html[data-theme="light"] .team-chat-thread,
html[data-theme="light"] .notification-item {
    background: rgba(255, 255, 255, .74);
    border-color: rgba(18, 73, 88, .12);
    color: #10232b;
}

html[data-theme="light"] .chat-message.mine .chat-bubble {
    background: rgba(79, 209, 208, .18);
}

html[data-theme="light"] .workspace-empty,
html[data-theme="light"] .project-description,
html[data-theme="light"] .task-detail-description,
html[data-theme="light"] .chat-message-text,
html[data-theme="light"] .activity-content p,
html[data-theme="light"] .project-detail-hero p,
html[data-theme="light"] .workspace-page-header p {
    color: #56717c;
}

html[data-theme="light"] .workspace-section-title h2,
html[data-theme="light"] .workspace-page-header h1,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6,
html[data-theme="light"] strong {
    color: #10232b;
}

html[data-theme="light"] .sidebar-menu a.active,
html[data-theme="light"] .sidebar-menu a.active i,
html[data-theme="light"] .btn-primary-custom {
    color: #ffffff;
}

html[data-theme="light"] .swal2-popup {
    background: #ffffff;
    color: #10232b;
}

html[data-theme="light"] .swal2-title {
    color: #10232b;
}

html[data-theme="light"] .swal2-html-container {
    color: #56717c;
}

html {
    /* Slightly denser typography and Bootstrap rem-based controls. */
    font-size: 14px;
}
