/* -------------------------------------------------------------
   CORE DESIGN SYSTEM
   ------------------------------------------------------------- */
:root {
    --primary-color: #1f4e79;
    --primary-light: #ddebf7;
    --primary-dark: #123456;
    
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --panel-bg: rgba(30, 41, 59, 0.7);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-dark: #0f172a;
    
    --color-sabit: #3b82f6;       /* Blue */
    --color-performans: #10b981;  /* Green */
    --color-ekstra: #a855f7;      /* Purple */
    --color-penalty: #f97316;     /* Orange */
    
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-inset: inset 0 0 12px rgba(255, 255, 255, 0.05);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* -------------------------------------------------------------
   UTILITY & BUTTON STYLES
   ------------------------------------------------------------- */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.margin-top { margin-top: 2rem; }
.full-width { width: 100% !important; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-highlight);
}

/* -------------------------------------------------------------
   LOGIN SCREEN
   ------------------------------------------------------------- */
#login-screen {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
#login-screen.active {
    display: flex;
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 1.5rem;
}

.login-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.login-logo .gradient-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}
.login-logo h2 {
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: 1px;
}
.login-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.input-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.input-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.input-group label i {
    margin-right: 0.25rem;
}
.input-group input, 
.input-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}
.input-group input:focus, 
.input-group select:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

select option {
    background-color: #1e293b;
    color: #f8fafc;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.remember-me {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    color: var(--text-secondary);
}
.forgot-pwd {
    color: #60a5fa;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.forgot-pwd:hover {
    text-decoration: underline;
    color: #93c5fd;
}

.login-btn {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    border-radius: 12px;
}

/* -------------------------------------------------------------
   PORTAL LAYOUT (PORTAL WRAPPER)
   ------------------------------------------------------------- */
#admin-portal, 
#employee-portal {
    display: none;
}
#admin-portal.active, 
#employee-portal.active {
    display: block;
}

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

/* Sidebar */
.sidebar {
    width: 260px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-brand {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #60a5fa;
}
.sidebar-brand i {
    font-size: 1.5rem;
}

.sidebar-user {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-user .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
}
.sidebar-user .user-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user .user-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sidebar-menu {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}
.menu-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}
.menu-item .badge {
    margin-left: auto;
    background: var(--color-penalty);
    color: #ffffff;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.logout-btn {
    width: 100%;
}

/* Main Content Area */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 2.5rem 3rem;
    overflow-y: auto;
    height: 100vh;
}

/* Page Control */
.page {
    display: none;
    animation: fadeIn 0.4s ease-out;
}
.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
}
.page-header h1 {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.page-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

/* Date Picker / Header Action */
.input-date {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    outline: none;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.input-date:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.1);
}

/* -------------------------------------------------------------
   PANELS & GRIDS
   ------------------------------------------------------------- */
.panel {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}
.panel h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 4px solid #3b82f6;
    padding-left: 0.6rem;
}

/* Dashboard Grid Layouts */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.kpi-row.col-5 {
    grid-template-columns: repeat(5, 1fr);
}

.kpi-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
}
.fill-blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.fill-green { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.fill-orange { background: rgba(249, 115, 22, 0.2); color: #f97316; }
.fill-purple { background: rgba(168, 85, 247, 0.2); color: #a855f7; }

.kpi-data .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
}
.kpi-data h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.15rem;
}

/* Stats Card Employee Panel */
.stats-card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
    border-top: 4px solid var(--border-color);
}
.stats-card .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.stats-card h3 {
    font-size: 1.85rem;
    font-weight: 800;
}
.stats-card small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.font-sabit { border-top-color: var(--color-sabit); }
.font-sabit h3 { color: var(--color-sabit); }
.font-performans { border-top-color: var(--color-performans); }
.font-performans h3 { color: var(--color-performans); }
.font-ekstra { border-top-color: var(--color-ekstra); }
.font-ekstra h3 { color: var(--color-ekstra); }
.font-penalty { border-top-color: var(--color-penalty); }
.font-penalty h3 { color: var(--color-penalty); }
.font-net { border-top-color: #f8fafc; }
.font-net h3 { color: #f8fafc; }

.balance-highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.4);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
}
.dashboard-grid.col-2 {
    grid-template-columns: repeat(2, 1fr);
}
.dashboard-grid.col-3-1 {
    grid-template-columns: 3fr 1.5fr;
}

/* -------------------------------------------------------------
   DATA TABLES
   ------------------------------------------------------------- */
.table-panel {
    overflow: hidden;
}

.table-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 320px;
}
.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}
.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    outline: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.search-box input:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
}

.select-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.55rem 1rem;
    outline: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.table-scroll-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.table-scroll-container.limit-height {
    max-height: 400px;
    overflow-y: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}
.data-table th, 
.data-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
}
.data-table th {
    background: rgba(15, 23, 42, 0.4);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.data-table tbody tr {
    transition: var(--transition-smooth);
}
.data-table tbody tr:hover {
    background: var(--card-hover-bg);
}
.data-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

/* -------------------------------------------------------------
   ROTATED CALENDAR TABLE
   ------------------------------------------------------------- */
.calendar-table {
    font-size: 0.82rem;
}
.calendar-table th, 
.calendar-table td {
    padding: 0.5rem 0.6rem;
    text-align: center;
}
.calendar-table th {
    height: 60px;
    vertical-align: middle;
}
.calendar-table td:nth-child(2),
.calendar-table td:nth-child(3) {
    text-align: left;
    font-weight: 500;
}

.net-score {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
}
.final-col {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    font-weight: 700;
}

/* Custom Checkbox styles for calendar grid */
.attendance-chk {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    transition: var(--transition-smooth);
}
.attendance-chk:checked {
    background: var(--color-performans);
    border-color: var(--color-performans);
}
.attendance-chk:checked::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffffff;
    font-size: 0.75rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.attendance-chk:hover {
    border-color: rgba(255, 255, 255, 0.55);
}

/* Grid Text Inputs */
.grid-input-num {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    width: 50px;
    padding: 0.2rem 0.4rem;
    text-align: center;
    outline: none;
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}
.grid-input-num:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.1);
}

/* Status Badges */
.status-pill {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-pill.aktif { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-pill.pasif { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }
.status-pill.pending { background: rgba(249, 115, 22, 0.15); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.3); }
.status-pill.approved { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-pill.rejected { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.status-pill i {
    margin-right: 4px;
}

/* Action Links */
.action-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.action-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* -------------------------------------------------------------
   ONE-OFF ENTRY FORM & PREVIEW
   ------------------------------------------------------------- */
.input-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.preview-box {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.preview-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.preview-item span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.preview-item strong {
    font-size: 0.95rem;
}

/* -------------------------------------------------------------
   EMPLOYEE DASHBOARD SPECIAL SHORTCUT
   ------------------------------------------------------------- */
.quick-shop-shortcut {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: var(--transition-smooth);
    margin-top: 1rem;
}
.quick-shop-shortcut:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}
.quick-shop-shortcut i {
    font-size: 2.5rem;
    color: var(--color-ekstra);
}
.quick-shop-shortcut span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.animate-bounce {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* -------------------------------------------------------------
   REWARD SHOP
   ------------------------------------------------------------- */
.shop-balance-tag {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #60a5fa;
}
.section-title.margin-top {
    margin-top: 2.5rem;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.shop-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}
.shop-card:hover {
    transform: translateY(-4px);
    background: var(--card-hover-bg);
    border-color: var(--border-highlight);
}

.shop-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.shop-card-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    max-width: 70%;
}
.shop-cost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #60a5fa;
}

.shop-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0.75rem 0;
    flex: 1;
}

.shop-btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.85rem;
    border-radius: 6px;
}
.shop-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    filter: none;
}

/* -------------------------------------------------------------
   MODAL POPUP
   ------------------------------------------------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transform: scale(0.9);
    transition: var(--transition-smooth);
}
.modal-content.large-modal {
    max-width: 900px;
    width: 90%;
}
.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}
.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}
.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}
.close-btn:hover {
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* -------------------------------------------------------------
   MOBILE RESPONSIVENESS
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .portal-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .sidebar-brand {
        padding: 1.25rem 1.5rem;
    }
    .sidebar-user {
        display: none;
    }
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
    .menu-item {
        white-space: nowrap;
        padding: 0.6rem 0.85rem;
    }
    .sidebar-footer {
        display: none;
    }
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
        height: auto;
    }
    .kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .kpi-row.col-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid, 
    .dashboard-grid.col-2, 
    .dashboard-grid.col-3-1 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .kpi-row {
        grid-template-columns: 1fr;
    }
    .kpi-row.col-5 {
        grid-template-columns: 1fr;
    }
    .input-row {
        grid-template-columns: 1fr;
    }
    .preview-box {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.shift-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
    display: inline-block;
    white-space: nowrap;
}
.shift-sabah {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.25);
}
.shift-aksam {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.25);
}
.shift-gece {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
    border-color: rgba(6, 182, 212, 0.25);
}
.shift-esnek {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.25);
}
