/* ==============================================
   BrotechERP - Main Stylesheet
   ============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-color: #f3f4f6;
    --dark-color: #1f2937;
    --border-color: #e5e7eb;
    --text-color: #374151;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--dark-color);
    color: white;
    padding: 20px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.content {
    flex: 1;
    padding: 30px;
    background-color: var(--light-color);
}

/* Navigation */
.sidebar-brand {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand h2 {
    color: white;
    font-size: 1.3rem;
    margin: 0;
}

.sidebar-brand p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0 0 0;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-link i {
    margin-right: 10px;
    width: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Cards */
.card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.card-title {
    margin: 0;
    font-size: 1.3rem;
}

.card-body {
    margin-bottom: 15px;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    display: block;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.required::after {
    content: ' *';
    color: var(--danger-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th {
    background-color: var(--light-color);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #ecfdf5;
    border-color: var(--success-color);
    color: #065f46;
}

.alert-error,
.alert-danger {
    background-color: #fef2f2;
    border-color: var(--danger-color);
    color: #7f1d1d;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: var(--warning-color);
    color: #78350f;
}

.alert-info {
    background-color: #eff6ff;
    border-color: var(--info-color);
    color: #082f49;
}

.alert-close {
    float: right;
    cursor: pointer;
    font-size: 18px;
}

.notification-toast-container {
    position: fixed;
    top: 78px;
    right: 20px;
    width: min(520px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
    pointer-events: none;
}

.notification-toast-container .alert {
    margin-bottom: 0;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    position: relative;
    padding-right: 42px;
    pointer-events: auto;
}

.notification-toast-container .alert-close {
    position: absolute;
    top: 10px;
    right: 12px;
    float: none;
    border: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
    padding: 0;
}

.notification-toast-container .alert-message {
    display: block;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

/* Utility Classes */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-muted { color: #6b7280; }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-2 { gap: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
    }

    .content {
        padding: 20px;
    }

    .notification-toast-container {
        top: 70px;
        right: 12px;
        width: calc(100vw - 24px);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==============================================
   Global Claymorphism Theme Overrides
   ============================================== */

:root {
    --bg-base: #dce6f5;
    --bg-soft: #edf2fa;
    --surface: #e9eef8;
    --surface-2: #f3f6fc;
    --surface-dark: #2b3550;
    --text-color: #2f3d56;
    --dark-color: #1f2c45;
    --border-color: rgba(255, 255, 255, 0.45);
    --primary-color: #4f74f8;
    --secondary-color: #3d5ee4;
    --success-color: #1fa97d;
    --danger-color: #e35d6a;
    --warning-color: #d39b26;
    --info-color: #5c8df6;
    --shadow: 9px 9px 20px rgba(132, 146, 175, 0.38), -9px -9px 20px rgba(255, 255, 255, 0.95);
    --shadow-lg: 14px 14px 28px rgba(125, 140, 170, 0.42), -14px -14px 28px rgba(255, 255, 255, 0.98);
    --shadow-inset: inset 6px 6px 12px rgba(165, 179, 206, 0.35), inset -6px -6px 12px rgba(255, 255, 255, 0.9);
}

body {
    background:
        radial-gradient(1200px 600px at -20% -10%, rgba(255,255,255,0.9) 0%, transparent 55%),
        radial-gradient(900px 500px at 120% 20%, rgba(255,255,255,0.7) 0%, transparent 50%),
        linear-gradient(145deg, var(--bg-base), #d1deef 45%, #dfe8f6 100%);
    color: var(--text-color);
}

a {
    color: #4265ec;
}

a:hover {
    color: #2d4fdd;
}

.content {
    background: transparent;
}

.sidebar {
    background: linear-gradient(165deg, #2f3b59, #273350);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 10px 0 28px rgba(18, 26, 48, 0.35);
}

.sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand p,
.nav-link {
    color: rgba(237, 242, 255, 0.85);
}

.nav-link {
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(145deg, rgba(90, 117, 218, 0.72), rgba(65, 91, 186, 0.74));
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.16), 0 10px 20px rgba(17, 24, 39, 0.25);
}

.header {
    background: rgba(236, 242, 252, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0 0 18px 18px;
    margin: 10px 16px 0;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.user-avatar {
    background: linear-gradient(145deg, #5f82ff, #4868ea);
}

.card {
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header,
.card-footer {
    border-color: rgba(164, 176, 204, 0.25);
}

.btn {
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    box-shadow: 6px 6px 14px rgba(137, 152, 184, 0.35), -6px -6px 14px rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 9px 9px 18px rgba(128, 143, 175, 0.4), -9px -9px 18px rgba(255, 255, 255, 0.95);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-inset);
}

.btn-primary {
    background: linear-gradient(145deg, #5b7dff, #4567eb);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(145deg, #6787ff, #4f71f1);
}

.btn-secondary {
    background: linear-gradient(145deg, #8f9ab0, #74809b);
    color: #ffffff;
}

.btn-success {
    background: linear-gradient(145deg, #2dbf8f, #1da67a);
    color: #ffffff;
}

.btn-danger {
    background: linear-gradient(145deg, #ef6b77, #d85865);
    color: #ffffff;
}

.btn-warning {
    background: linear-gradient(145deg, #e2af3d, #cc9326);
    color: #ffffff;
}

.btn-info {
    background: linear-gradient(145deg, #6d98ff, #557ded);
    color: #ffffff;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    background: linear-gradient(145deg, #edf2fb, #e4ebf8);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    box-shadow: var(--shadow-inset);
    color: #30405e;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    border-color: rgba(79, 116, 248, 0.55);
    box-shadow: inset 5px 5px 11px rgba(161, 176, 204, 0.35), inset -5px -5px 11px rgba(255, 255, 255, 0.92), 0 0 0 3px rgba(79, 116, 248, 0.14);
}

table {
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, #ecf1fa, #e5ecf8);
    box-shadow: var(--shadow);
}

th {
    background: linear-gradient(145deg, #e2eaf7, #dce5f4);
    border-bottom: 1px solid rgba(157, 172, 200, 0.32);
}

td {
    border-bottom: 1px solid rgba(165, 177, 202, 0.2);
}

tr:hover {
    background-color: rgba(79, 116, 248, 0.08);
}

.alert {
    border-left: none;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow);
    border-radius: 14px;
}

.alert-success {
    background: linear-gradient(145deg, #e8f9f2, #dcf4eb);
    color: #0c6d50;
}

.alert-error,
.alert-danger {
    background: linear-gradient(145deg, #fdeef0, #fbe2e6);
    color: #8c2732;
}

.alert-warning {
    background: linear-gradient(145deg, #fff8e7, #feefcf);
    color: #80520f;
}

.alert-info {
    background: linear-gradient(145deg, #eaf2ff, #dce8ff);
    color: #21438f;
}

.badge {
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 4px 4px 9px rgba(143, 157, 185, 0.24), -4px -4px 9px rgba(255, 255, 255, 0.92);
}

.badge-primary {
    background: linear-gradient(145deg, #e2e9ff, #d5e0ff);
    color: #3558dd;
}

.badge-success {
    background: linear-gradient(145deg, #dff6ee, #d2f0e5);
    color: #0f8e67;
}

.badge-danger {
    background: linear-gradient(145deg, #fbe5e8, #f8d8de);
    color: #c84354;
}

.badge-warning {
    background: linear-gradient(145deg, #fff3da, #fdeac0);
    color: #b47c13;
}

@media (max-width: 768px) {
    .header {
        margin: 0;
        border-radius: 0;
    }
}

/* ==============================================
   Global Minimalism Theme Overrides
   ============================================== */

:root {
    --primary-color: #2f6feb;
    --secondary-color: #1f5bd0;
    --success-color: #0f9960;
    --danger-color: #d64545;
    --warning-color: #b7791f;
    --info-color: #1f7ea8;
    --light-color: #f7f7f5;
    --dark-color: #191919;
    --border-color: #e6e6e3;
    --text-color: #37352f;
    --muted-color: #6b6b67;
    --sidebar-bg: #fbfbfa;
    --surface-bg: #ffffff;
    --shadow: none;
    --shadow-lg: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--light-color);
    color: var(--text-color);
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    color: #111827;
    font-weight: 600;
    letter-spacing: -0.015em;
}

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.layout {
    background: var(--light-color);
}

.sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    box-shadow: none;
    padding: 20px 14px;
}

.sidebar-brand {
    margin-bottom: 24px;
    padding: 0 8px 16px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand h2 {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-brand h2 .brand-logo {
    width: 182px;
    height: auto;
    object-fit: contain;
}

.sidebar-brand p {
    color: var(--muted-color);
    font-size: 12px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    margin-bottom: 0;
}

.nav-item-settings {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.nav-link {
    color: #4b5563;
    border-radius: 8px;
    font-weight: 500;
    padding: 9px 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link i {
    width: 20px;
    margin-right: 8px;
    font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
    background: #f0f0ee;
    color: #111827;
}

.main-content {
    margin-left: 260px;
    background: var(--light-color);
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 247, 245, 0.92);
    border: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    margin: 0;
    padding: 14px 28px;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border-color);
    background: #fff;
    color: #4b5563;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    color: #4b5563;
    font-weight: 600;
    line-height: 1;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 3px 8px 3px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #ffffff;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(160deg, #f2f6ff, #e7efff);
    color: #284db7;
    border: 1px solid #d2defa;
    font-size: 12px;
    letter-spacing: 0.4px;
    font-weight: 700;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 12px;
    font-weight: 600;
}

.logout-btn i {
    margin-right: 0;
    font-size: 15px;
}

.content {
    background: var(--light-color);
    padding: 24px 28px;
}

.card {
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: none;
    margin-bottom: 16px;
}

.card:hover {
    box-shadow: none;
}

.card-header,
.card-footer {
    border-color: var(--border-color);
}

.card-header {
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.btn {
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid transparent;
    transform: none;
    font-weight: 500;
}

.btn:hover,
.btn:active {
    transform: none;
    box-shadow: none;
}

.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--secondary-color); }
.btn-secondary { background: #ffffff; color: #374151; border-color: var(--border-color); }
.btn-secondary:hover { background: #f5f5f4; }
.btn-success { background: var(--success-color); color: #fff; }
.btn-danger { background: var(--danger-color); color: #fff; }
.btn-warning { background: var(--warning-color); color: #fff; }
.btn-info { background: var(--info-color); color: #fff; }

.btn .ri,
.btn i {
    margin-right: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 111, 235, 0.12);
}

table {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
}

th {
    background: #fbfbfa;
    border-bottom: 1px solid var(--border-color);
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
}

td {
    border-bottom: 1px solid #efefec;
}

tr:hover {
    background: #fafaf9;
}

.alert {
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.badge {
    border-radius: 999px;
    box-shadow: none;
    border: 0;
    font-weight: 600;
}

.badge-primary { background-color: #e8f0ff; color: #2558c2; }
.badge-success { background-color: #e8f6ef; color: #0d7b4d; }
.badge-danger { background-color: #fceaea; color: #b82828; }
.badge-warning { background-color: #fdf2df; color: #99630f; }

.text-muted,
small,
[style*="color: #999"] {
    color: var(--muted-color) !important;
}

[style*="font-size: 40px"],
[style*="font-size: 30px"] {
    font-size: 28px !important;
    line-height: 1;
}

.ui-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    margin-right: 6px;
    vertical-align: -1px;
}

.ui-icon-only {
    margin-right: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.summary-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-card .summary-label {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
}

.summary-card .summary-value {
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.summary-card .summary-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #374151;
    border-radius: 8px;
    font-size: 18px;
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.notification-alert-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.notification-alert {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    padding: 10px 12px;
}

.notification-alert strong {
    display: block;
    margin-bottom: 4px;
}

.notification-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.notification-row p {
    margin: 0;
    color: #1f2937;
}

.notification-row small {
    color: #6b7280;
}

.notification-row .actions {
    white-space: nowrap;
}

.notification-menu {
    position: relative;
}

.notification-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: #4b5563;
    cursor: pointer;
    position: relative;
}

.notification-toggle i {
    font-size: 16px;
}

.notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #d64545;
    color: #fff;
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 42px;
    right: 0;
    width: 360px;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    z-index: 2000;
}

.notification-menu:hover .notification-dropdown,
.notification-menu:focus-within .notification-dropdown {
    display: block;
}

.notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
}

.notification-dropdown-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f1ef;
}

.notification-dropdown-item.unread {
    background: #f8fbff;
}

.notification-dropdown-item p {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.notification-dropdown-item small {
    display: block;
    margin: 0;
    color: #6b7280;
    font-size: 12px;
}

.notification-dropdown-actions {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.notification-empty {
    padding: 16px 12px;
    color: #6b7280;
    font-size: 13px;
}

.notification-view-all {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    border-top: 1px solid var(--border-color);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    z-index: 1100;
}

#loading-spinner {
    position: fixed;
    inset: 0;
    background: rgba(247, 247, 245, 0.75);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 3000;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
}

.spinner,
.btn-loading-spinner {
    border-radius: 50%;
    border: 2px solid rgba(55, 65, 81, 0.2);
    border-top-color: var(--primary-color);
    animation: spin 0.7s linear infinite;
}

.spinner {
    width: 28px;
    height: 28px;
}

.btn-loading-spinner {
    width: 13px;
    height: 13px;
    display: inline-block;
    vertical-align: -2px;
    margin-right: 6px;
}

button[disabled],
input[type="submit"][disabled] {
    opacity: 0.75;
    cursor: not-allowed;
}

.card-body table,
.table-responsive table {
    width: 100%;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

[style*="text-align: center"][style*="border-top"],
.pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

[style*="text-align: center"][style*="border-top"] .btn,
.pagination-wrap .btn {
    margin: 0 !important;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 84px;
        padding: 16px 10px;
    }

    .sidebar-brand h2 span,
    .sidebar-brand p,
    .nav-link span {
        display: none;
    }

    .sidebar-brand h2 .brand-logo {
        width: 52px;
    }

    .nav-link {
        justify-content: center;
    }

    .nav-link i {
        margin-right: 0;
    }

    .main-content {
        margin-left: 84px;
    }
}

@media (max-width: 768px) {
    .layout {
        flex-direction: row;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        width: 260px;
        height: 100vh;
        position: fixed;
        left: -260px;
        top: 0;
        transition: left 0.25s ease;
        z-index: 1200;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-backdrop.active {
        display: block;
    }

    .sidebar-brand h2 span,
    .sidebar-brand p,
    .nav-link span {
        display: inline;
    }

    .sidebar-brand h2 .brand-logo {
        width: 168px;
    }

    .nav-link {
        justify-content: flex-start;
    }

    .nav-link i {
        margin-right: 8px;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .header {
        padding: 12px 16px;
    }

    .content {
        padding: 16px;
    }

    .user-chip {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .user-name {
        display: none;
    }

    .logout-btn {
        padding: 8px 10px;
    }

    .logout-btn span {
        display: none;
    }

    .logout-btn i {
        margin-right: 0;
    }

    .notification-dropdown {
        width: 320px;
        right: -48px;
    }

    .table-responsive,
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

