/* ===========================
   GHMC HRMS & Payroll - CSS
   Exact match of React/Tailwind design
   =========================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* CSS Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #248C7C;
    --primary-dark: #073330;
    --accent: #EC3898;
    --accent-light: #F081BD;
    --navy: #1A3555;
    --teal-light: #5EAA9C;
    --green: #4CAF50;
    --red: #E35A4A;
    --amber: #E69B30;
    --blue: #3B82F6;
    --purple: #8B5CF6;
    --cyan: #06B6D4;
    --pink: #EC4899;
    --sidebar-width: 224px;
    --topbar-height: 56px;
    --font-primary: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: #f9fafb;
    color: #111827;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

input, select, textarea {
    font-family: inherit;
}

table {
    border-collapse: collapse;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================
   SIDEBAR
   ========================= */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background-color: var(--primary-dark);
    display: flex;
    flex-direction: column;
    z-index: 40;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    flex-shrink: 0;
}

.sidebar-title {
    color: white;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
}

.sidebar-subtitle {
    color: var(--accent-light);
    font-size: 9px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.sidebar-group {
    margin-bottom: 4px;
}

.sidebar-group-label {
    color: rgba(255,255,255,0.25);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 8px;
    margin-top: 4px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 12px;
    font-weight: 500;
    color: rgba(204,243,236,0.6);
    text-decoration: none;
    width: 100%;
    text-align: left;
}

.sidebar-item:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.sidebar-item.active {
    color: white;
    background: rgba(36,140,124,0.3);
}

.sidebar-item i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.sidebar-item .item-label {
    flex: 1;
    text-align: left;
}

.sidebar-sub-toggle {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sidebar-sub-toggle.open {
    transform: rotate(180deg);
}

.sidebar-submenu {
    margin-left: 20px;
    margin-bottom: 4px;
    display: none;
}

.sidebar-submenu.open {
    display: block;
}

.sidebar-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 11px;
    color: rgba(94,204,179,0.45);
    text-decoration: none;
}

.sidebar-subitem:hover {
    color: rgba(204,243,236,1);
    background: rgba(255,255,255,0.05);
}

.sidebar-subitem .sub-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 8px 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.sidebar-footer p {
    color: rgba(147,197,253,0.4);
    font-size: 10px;
}

/* =========================
   TOPBAR
   ========================= */
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 30;
    border-bottom: 2px solid var(--primary);
}

.topbar-search {
    position: relative;
    width: 288px;
}

.topbar-search i,
.topbar-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    width: 15px;
    height: 15px;
}

.topbar-search input {
    width: 100%;
    padding: 8px 16px 8px 36px;
    background: #f9fafb;
    border-radius: 9999px;
    font-size: 14px;
    color: #4B5563;
    outline: none;
    border: 1px solid #E5E7EB;
    transition: box-shadow 0.2s;
}

.topbar-search input:focus {
    box-shadow: 0 0 0 2px rgba(36,140,124,0.1);
    border-color: #248c7c;
}

.topbar-search input::placeholder {
    color: #9CA3AF;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-notif {
    position: relative;
    cursor: pointer;
}

.topbar-notif i {
    color: #6B7280;
    width: 20px;
    height: 20px;
}

.topbar-notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.topbar-divider {
    width: 1px;
    height: 24px;
    background: #E5E7EB;
}

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

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.topbar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.2;
}

.topbar-user-role {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
}

.topbar-logout {
    color: var(--primary);
    cursor: pointer;
    transition: color 0.2s;
}

.topbar-logout:hover {
    color: var(--primary-dark);
}

.topbar-logout i {
    width: 18px;
    height: 18px;
}

/* =========================
   MAIN CONTENT
   ========================= */
.main-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--topbar-height);
    padding: calc(var(--topbar-height) + 24px) 24px 24px 24px;
    min-height: 100vh;
}

/* =========================
   PAGE HEADER
   ========================= */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.page-header p {
    font-size: 14px;
    color: #6B7280;
    margin-top: 2px;
}

.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* =========================
   CARDS
   ========================= */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #F3F4F6;
}

.card-accent {
    border-left: 3px solid;
}

.card-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

/* =========================
   GRID SYSTEM
   ========================= */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* =========================
   KPI CARDS
   ========================= */
.kpi-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #F3F4F6;
    border-left: 3px solid;
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    letter-spacing: 0.05em;
}

.kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-icon i {
    width: 16px;
    height: 16px;
}

.kpi-value {
    font-size: 24px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 4px;
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
}

.kpi-trend i {
    width: 12px;
    height: 12px;
}

.kpi-trend.up { color: #16A34A; }
.kpi-trend.down { color: #EF4444; }

/* =========================
   BUTTONS
   ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn i {
    width: 16px;
    height: 16px;
}

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

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: white;
    color: #4B5563;
    border: 1px solid #D1D5DB;
}

.btn-secondary:hover {
    background: #f9fafb;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(36,140,124,0.35);
}

.btn-gradient:hover {
    opacity: 0.9;
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* =========================
   TABLES
   ========================= */
.data-table {
    width: 100%;
}

.data-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #9CA3AF;
    padding: 12px 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #F3F4F6;
}

.data-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid #F9FAFB;
}

.data-table tr:hover {
    background: rgba(239,246,255,0.3);
}

/* =========================
   BADGES
   ========================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-green { background: #F0FDF4; color: #15803D; }
.badge-red { background: #FEF2F2; color: #DC2626; }
.badge-amber { background: #FFF7ED; color: #B45309; }
.badge-blue { background: #EFF6FF; color: #1D4ED8; }
.badge-purple { background: #F5F3FF; color: #7C3AED; }
.badge-pink { background: #FFF1F5; color: #BE185D; }

/* =========================
   FORM CONTROLS
   ========================= */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
    color: #374151;
}

.form-input:focus {
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
    border-color: #93C5FD;
}

.form-input::placeholder {
    color: #9CA3AF;
}

.form-select {
    appearance: none;
    width: 100%;
    padding: 10px 32px 10px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
    color: #374151;
}

.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    resize: none;
    color: #374151;
}

/* =========================
   MODALS
   ========================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 16px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 480px;
}

.modal-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-actions .btn {
    flex: 1;
    justify-content: center;
}

/* =========================
   PROGRESS BAR
   ========================= */
.progress-bar {
    height: 6px;
    background: #F3F4F6;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.progress-gradient {
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* =========================
   TABS
   ========================= */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    background: white;
    color: #4B5563;
    border: 1px solid #E5E7EB;
}

.tab:hover {
    background: #f9fafb;
}

.tab.active {
    background: var(--navy);
    color: white;
    border-color: transparent;
}

/* =========================
   NAV BREADCRUMB
   ========================= */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb a {
    font-size: 12px;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.15s;
}

.breadcrumb a:hover {
    color: #374151;
}

.breadcrumb .nav-pill {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid #E5E7EB;
    background: white;
    color: #4B5563;
}

.breadcrumb .nav-pill:hover {
    background: #f9fafb;
}

.breadcrumb .nav-pill.active {
    background: var(--navy);
    color: white;
    border-color: transparent;
}

/* =========================
   PAGINATION
   ========================= */
.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4B5563;
}

.page-btn:hover {
    background: #F3F4F6;
}

.page-btn.active {
    background: var(--navy);
    color: white;
}

/* =========================
   AVATAR
   ========================= */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* =========================
   ALERT BOXES
   ========================= */
.alert {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid;
    font-size: 12px;
    font-weight: 600;
}

.alert-amber {
    background: #FFF7ED;
    border-color: #FDE68A;
    color: #B45309;
}

.alert-green {
    background: #F0FDF4;
    border-color: #BBF7D0;
    color: #15803D;
}

.alert-blue {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1E40AF;
}

/* =========================
   ZONE PROGRESS BAR
   ========================= */
.zone-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zone-label {
    font-size: 12px;
    color: #4B5563;
    width: 176px;
    flex-shrink: 0;
}

.zone-bar {
    flex: 1;
    height: 8px;
    background: #F3F4F6;
    border-radius: 9999px;
}

.zone-fill {
    height: 8px;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.zone-count {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    width: 40px;
    text-align: right;
}

/* =========================
   PIE CHART CONTAINER
   ========================= */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.chart-center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.chart-center-label .value {
    font-size: 20px;
    font-weight: 900;
    color: #111827;
}

.chart-center-label .label {
    font-size: 12px;
    color: #6B7280;
}

/* =========================
   LEGEND
   ========================= */
.legend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-item .legend-label {
    font-size: 12px;
    color: #6B7280;
}

.legend-item .legend-value {
    font-size: 12px;
    font-weight: 700;
    color: #1F2937;
}

/* =========================
   LOGIN PAGE
   ========================= */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #042220;
    background-image: radial-gradient(ellipse at 20% 60%, rgba(36,140,124,0.25) 0%, transparent 55%), radial-gradient(ellipse at 80% 20%, rgba(236,56,152,0.12) 0%, transparent 45%);
    position: relative;
}

.login-grid {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-grid-line-v {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(36,140,124,0.08);
}

.login-grid-line-h {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(36,140,124,0.08);
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 448px;
    margin: 16px;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    background: rgba(7,51,48,0.95);
    border: 1px solid rgba(36,140,124,0.25);
}

.login-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.login-logo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: 16px;
    overflow: hidden;
    background: white;
    padding: 4px;
    box-shadow: 0 0 0 3px var(--primary), 0 0 0 6px rgba(236,56,152,0.3);
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.login-system {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-top: 4px;
    color: var(--teal-light);
}

.login-powered {
    font-size: 12px;
    margin-top: 4px;
    color: var(--accent-light);
}

/* Role Selection */
.role-section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    color: var(--teal-light);
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.role-btn {
    text-align: left;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(36,140,124,0.2);
    background: rgba(36,140,124,0.05);
    cursor: pointer;
    transition: all 0.15s ease;
}

.role-btn.active {
    border-color: var(--accent);
    background: rgba(236,56,152,0.1);
}

.role-btn .role-label {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.role-btn.active .role-label {
    color: var(--accent-light);
}

.role-btn .role-name {
    font-size: 12px;
    color: var(--teal-light);
    margin-top: 2px;
}

/* Login Form Inputs */
.login-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
    color: var(--teal-light);
}

.login-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    outline: none;
    background: rgba(36,140,124,0.08);
    border: 1px solid rgba(36,140,124,0.25);
}

.login-input::placeholder {
    color: rgba(94,170,156,0.5);
}

.login-pass-wrap {
    position: relative;
}

.login-pass-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--teal-light);
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
}

.login-pass-toggle i {
    width: 16px;
    height: 16px;
}

.login-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(36,140,124,0.35);
    border: none;
    margin-top: 8px;
}

.login-btn:hover {
    opacity: 0.9;
}

.login-btn:active {
    transform: scale(0.98);
}

.login-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.login-footer button {
    font-size: 12px;
    color: var(--teal-light);
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.login-footer button:hover {
    color: white;
}

/* =========================
   HOME PAGE - HERO BANNER
   ========================= */
.hero-banner {
    position: relative;
    overflow: hidden;
    padding: 32px 24px;
    background: linear-gradient(135deg, #0C1C34 0%, #1A3555 60%, #1e4d8c 100%);
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(circle at 20% 50%, #E69B30 0%, transparent 50%), radial-gradient(circle at 80% 20%, #3B82F6 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.hero-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E69B30;
}

.hero-badge-icon i {
    color: white;
    width: 16px;
    height: 16px;
}

.hero-badge span {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 30px;
    font-weight: 900;
    color: white;
    line-height: 1.2;
}

.hero-subtitle {
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    font-size: 14px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-btn-aria {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s;
    background: #E69B30;
    color: #0C1C34;
    text-decoration: none;
}

.hero-btn-aria:hover {
    transform: scale(1.05);
}

.hero-btn-dash {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

.hero-btn-dash:hover {
    background: rgba(255,255,255,0.1);
}

/* Quick Stats in Hero */
.quick-stats {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.quick-stat-card {
    border-radius: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.quick-stat-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.quick-stat-icon i {
    width: 12px;
    height: 12px;
    color: white;
}

.quick-stat-value {
    color: white;
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
}

.quick-stat-label {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.2;
}

.quick-stat-sub {
    color: rgba(255,255,255,0.35);
    font-size: 12px;
}

/* =========================
   MODULE DIRECTORY
   ========================= */
.module-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.module-section-title {
    font-size: 20px;
    font-weight: 900;
    color: #111827;
}

.module-section-sub {
    font-size: 14px;
    color: #6B7280;
    margin-top: 2px;
}

.module-search {
    position: relative;
    width: 288px;
}

.module-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    width: 15px;
    height: 15px;
}

.module-search input {
    width: 100%;
    padding: 10px 16px 10px 36px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 14px;
    color: #374151;
    outline: none;
}

.module-search input:focus {
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

/* Module Group Card */
.module-group {
    background: white;
    border-radius: 16px;
    border: 1px solid #F3F4F6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 16px;
}

.module-group-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #F9FAFB;
}

.module-group-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-group-icon i {
    width: 14px;
    height: 14px;
    color: white;
}

.module-group-title {
    font-weight: 900;
    font-size: 14px;
}

.module-group-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    color: white;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.module-grid > * {
    border-right: 1px solid #F9FAFB;
}

.module-grid > *:nth-child(6n) {
    border-right: none;
}

.module-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

.module-item:hover {
    background: rgba(249,250,251,0.8);
}

.module-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.module-item:hover .module-item-icon {
    transform: scale(1.1);
}

.module-item-icon i {
    width: 18px;
    height: 18px;
}

.module-item-label {
    font-size: 12px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.2;
    margin-bottom: 4px;
}

.module-item-desc {
    font-size: 12px;
    color: #9CA3AF;
    line-height: 1.2;
}

.module-empty-cell {
    padding: 16px;
}

/* =========================
   CALENDAR
   ========================= */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #9CA3AF;
    padding: 4px;
}

.calendar-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s;
}

.calendar-cell:hover {
    transform: scale(1.05);
}

.calendar-day {
    font-size: 14px;
    font-weight: 700;
}

.calendar-type {
    font-size: 12px;
    font-weight: 600;
}

.cal-present { background: #F0FDF4; }
.cal-present .calendar-day,
.cal-present .calendar-type { color: #15803D; }

.cal-absent { background: #FEF2F2; }
.cal-absent .calendar-day,
.cal-absent .calendar-type { color: #DC2626; }

.cal-holiday { background: #FFF7ED; }
.cal-holiday .calendar-day,
.cal-holiday .calendar-type { color: #D97706; }

.cal-weekend { background: #F3F4F6; }
.cal-weekend .calendar-day,
.cal-weekend .calendar-type { color: #9CA3AF; }

.cal-duty { background: #EFF6FF; }
.cal-duty .calendar-day,
.cal-duty .calendar-type { color: #2563EB; }

.cal-leave { background: #FFF7ED; }
.cal-leave .calendar-day,
.cal-leave .calendar-type { color: #EA580C; }

.cal-today {
    background: white;
    border: 2px solid #3B82F6;
}
.cal-today .calendar-day { color: #1D4ED8; }
.cal-today .calendar-type { color: #2563EB; }

.cal-future { background: #F9FAFB; }
.cal-future .calendar-day { color: #D1D5DB; }

/* =========================
   PAYSLIP NET SALARY BAR
   ========================= */
.net-salary-bar {
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--navy);
}

.net-salary-bar .label {
    font-size: 14px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.net-salary-bar .amount {
    font-size: 24px;
    font-weight: 900;
    color: #E69B30;
}

/* =========================
   PAY SLIP ROW
   ========================= */
.payslip-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #F9FAFB;
}

.payslip-row .label {
    font-size: 14px;
    color: #374151;
}

.payslip-row .value {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
}

.payslip-total {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-weight: 700;
    font-size: 14px;
}

/* =========================
   SYSTEM ALERTS
   ========================= */
.alert-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #F9FAFB;
}

.alert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.alert-dot.warn { background: #FBBF24; }
.alert-dot.info { background: #3B82F6; }
.alert-dot.success { background: #22C55E; }

.alert-msg {
    flex: 1;
}

.alert-msg p {
    font-size: 14px;
    color: #1F2937;
}

.alert-msg .time {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 2px;
}

.alert-type-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    flex-shrink: 0;
}

/* =========================
   QUICK LAUNCH
   ========================= */
.quick-launch-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #F3F4F6;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

.quick-launch-item:hover {
    background: #f9fafb;
}

.quick-launch-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-launch-icon i {
    width: 13px;
    height: 13px;
}

.quick-launch-label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
}

/* =========================
   UTILITY CLASSES
   ========================= */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.ml-auto { margin-left: auto; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.text-gray-300 { color: #D1D5DB; }
.text-gray-400 { color: #9CA3AF; }
.text-gray-500 { color: #6B7280; }
.text-gray-600 { color: #4B5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1F2937; }
.text-gray-900 { color: #111827; }
.text-white { color: white; }
.text-green-600 { color: #16A34A; }
.text-red-500 { color: #EF4444; }
.text-amber-600 { color: #D97706; }
.text-blue-600 { color: #2563EB; }
.bg-gray-50 { background-color: #f9fafb; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.divide-y > * + * { border-top: 1px solid #F9FAFB; }
.border-b { border-bottom: 1px solid #F3F4F6; }
.border-t { border-top: 1px solid #F3F4F6; }
.overflow-hidden { overflow: hidden; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.leading-tight { line-height: 1.25; }
.leading-none { line-height: 1; }
.cursor-pointer { cursor: pointer; }
.transition-all { transition: all 0.15s ease; }

/* Scrollbar hide */
.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { scrollbar-width: none; }

/* =========================
   HOME PAGE — HERO BANNER
   ========================= */
.hero-banner {
    background: #1A3555; /* Solid Navy */
    padding: 32px 24px 24px;
    margin: -24px -24px 24px -24px;
    color: white;
}
.hero-content {
    display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #451a03; padding: 6px 14px; border-radius: 999px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: #FBBF24; margin-bottom: 12px;
}
.hero-badge-icon {
    width: 22px; height: 22px; border-radius: 50%; background: #92400e;
    display: flex; align-items: center; justify-content: center;
}
.hero-badge-icon i { width: 12px; height: 12px; color: #FBBF24; }
.hero-title { font-size: 28px; font-weight: 900; margin-bottom: 4px; }
.hero-subtitle { font-size: 14px; color: rgba(255,255,255,0.7); }
.hero-actions { display: flex; gap: 12px; flex-shrink: 0; }
.hero-btn-aria {
    display: inline-flex; align-items: center; gap: 8px;
    background: #EC4899; color: white; padding: 10px 20px; border-radius: 10px;
    font-size: 14px; font-weight: 700; transition: all 0.2s;
}
.hero-btn-aria:hover { opacity: 0.9; }
.hero-btn-dash {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1); color: white; padding: 10px 20px; border-radius: 10px;
    font-size: 14px; font-weight: 600; border: 1px solid rgba(255,255,255,0.2); transition: all 0.2s;
}
.hero-btn-dash:hover { background: rgba(255,255,255,0.2); }

.quick-stats {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.quick-stat-card {
    background: rgba(255,255,255,0.08); border-radius: 12px; padding: 16px; text-align: center;
    border: 1px solid rgba(255,255,255,0.08); transition: all 0.2s;
}
.quick-stat-card:hover { background: rgba(255,255,255,0.14); }
.quick-stat-icon {
    width: 36px; height: 36px; border-radius: 10px; margin: 0 auto 8px;
    display: flex; align-items: center; justify-content: center;
}
.quick-stat-icon i { width: 18px; height: 18px; color: white; }
.quick-stat-value { font-size: 20px; font-weight: 900; color: white; }
.quick-stat-label { font-size: 11px; color: rgba(255,255,255,0.7); font-weight: 600; margin-top: 2px; }
.quick-stat-sub { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* =========================
   MODULE DIRECTORY
   ========================= */
.module-section-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.module-section-title { font-size: 18px; font-weight: 800; color: #111827; }
.module-section-sub { font-size: 13px; color: #6B7280; margin-top: 2px; }
.module-search {
    position: relative;
}
.module-search i,
.module-search svg {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 15px; height: 15px; color: #9CA3AF;
}
.module-search input {
    padding: 10px 16px 10px 36px; border: 1px solid #E5E7EB; border-radius: 10px;
    font-size: 14px; outline: none; width: 260px; background: white;
    transition: box-shadow 0.2s;
}
.module-search input:focus { box-shadow: 0 0 0 2px rgba(59,130,246,0.2); }

.module-group {
    background: white; border-radius: 16px; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid #E5E7EB;
    transition: box-shadow 0.2s;
    margin-bottom: 16px;
}
.module-group:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.module-group-header {
    display: flex; align-items: center; gap: 12px; padding: 16px 20px;
}
.module-group-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.module-group-icon i { width: 16px; height: 16px; color: white; }
.module-group-title { font-size: 15px; font-weight: 800; flex: 1; }
.module-group-count {
    padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; color: white;
}
.module-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
    border-top: 1px solid #F3F4F6;
}
.module-item {
    padding: 20px 16px; text-align: center; transition: background 0.15s;
    border-right: none;
}
.module-item:hover { background: #f9fafb; border-radius: 12px; }
.module-item-icon {
    width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
}
.module-item-icon i { width: 22px; height: 22px; }
.module-item-label { font-size: 12px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.module-item-desc { font-size: 10px; color: #9CA3AF; }
.module-empty-cell { border-right: none; }

/* =========================
   CALENDAR
   ========================= */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-header {
    text-align: center; font-size: 11px; font-weight: 700; color: #9CA3AF;
    padding: 4px;
}
.calendar-cell {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 8px; padding: 8px 4px; min-height: 52px;
    border: 1px solid transparent; transition: all 0.15s;
}
.calendar-day { font-size: 14px; font-weight: 700; color: #111827; }
.calendar-type { font-size: 10px; font-weight: 700; margin-top: 2px; }
.cal-present { background: #F0FDF4; border-color: #BBF7D0; }
.cal-present .calendar-type { color: #22C55E; }
.cal-absent { background: #FEF2F2; border-color: #FECACA; }
.cal-absent .calendar-type { color: #EF4444; }
.cal-holiday { background: #EFF6FF; border-color: #BFDBFE; }
.cal-holiday .calendar-type { color: #3B82F6; }
.cal-weekend { background: #F3F4F6; border-color: #E5E7EB; }
.cal-weekend .calendar-type { color: #6B7280; }
.cal-duty { background: #F5F3FF; border-color: #DDD6FE; }
.cal-duty .calendar-type { color: #7C3AED; }
.cal-leave { background: #FFF7ED; border-color: #FED7AA; }
.cal-leave .calendar-type { color: #D97706; }
.cal-today { background: #EFF6FF; border: 2px solid #3B82F6; }
.cal-future { background: #FAFAFA; }

/* =========================
   PAYSLIP ROWS
   ========================= */
.payslip-row {
    display: flex; justify-content: space-between; padding: 8px 0;
    border-bottom: 1px solid #F9FAFB;
}
.payslip-row .label { font-size: 13px; color: #4B5563; }
.payslip-row .value { font-size: 13px; font-weight: 600; color: #111827; }
.payslip-total {
    display: flex; justify-content: space-between;
    padding: 10px 0; margin-top: 4px;
    border-top: 2px solid #F3F4F6; font-weight: 800; font-size: 14px;
}
.net-salary-bar {
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(135deg, #073330, #1A3555);
    border-radius: 12px; padding: 16px 20px; color: white;
}
.net-salary-bar .label { font-size: 14px; font-weight: 600; }
.net-salary-bar .amount { font-size: 24px; font-weight: 900; color: #E69B30; }

/* =========================
   ALERTS
   ========================= */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.alert-amber { background: #FFF7ED; color: #B45309; border: 1px solid #FED7AA; }
.alert-green { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.alert-blue { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.alert-red { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }

.alert-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
}
.alert-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.alert-dot.warn { background: #E69B30; }
.alert-dot.info { background: #3B82F6; }
.alert-dot.success { background: #4CAF50; }
.alert-msg { flex: 1; }
.alert-msg p { font-size: 13px; color: #374151; }
.alert-msg .time { font-size: 11px; color: #9CA3AF; }
.alert-type-badge {
    padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
}

/* =========================
   QUICK LAUNCH
   ========================= */
.quick-launch-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px; border-radius: 8px; transition: background 0.15s;
}
.quick-launch-item:hover { background: #f9fafb; }
.quick-launch-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.quick-launch-icon i { width: 16px; height: 16px; }
.quick-launch-label { font-size: 12px; font-weight: 600; color: #374151; }

/* =========================
   PAGINATION
   ========================= */
.pagination { display: flex; gap: 4px; }
.page-btn {
    min-width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; border: 1px solid #E5E7EB;
    font-size: 13px; font-weight: 600; color: #4B5563; background: white;
    transition: all 0.15s;
}
.page-btn:hover { background: #f9fafb; }
.page-btn.active { background: var(--navy); color: white; border-color: var(--navy); }

/* =========================
   AVATAR
   ========================= */
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 11px; font-weight: 700; flex-shrink: 0;
}

/* =========================
   RESPONSIVE HELPER
   ========================= */
@media (max-width: 1024px) {
    .module-grid { grid-template-columns: repeat(3, 1fr); }
    .quick-stats { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .hero-banner { padding: 20px 16px; }
    .hero-title { font-size: 22px; }
}

/* =========================
   SMART MOCKUP - TOAST SYSTEM
   ========================= */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    border-left: 4px solid var(--primary);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

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

.toast.hiding {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.toast.success { border-left-color: #22C55E; }
.toast.success .toast-icon { background: #22C55E; }
.toast.info { border-left-color: #3B82F6; }
.toast.info .toast-icon { background: #3B82F6; }
.toast.warn { border-left-color: #F59E0B; }
.toast.warn .toast-icon { background: #F59E0B; }

.toast-content { flex: 1; }
.toast-title { font-weight: 700; font-size: 14px; color: #111827; line-height: 1.2; }
.toast-message { font-size: 12px; color: #6B7280; margin-top: 2px; }

/* Button Loading State */
.btn.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn.is-loading .btn-text-wrapper {
    visibility: hidden;
}

.btn.is-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-right-color: currentColor;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}
