/* =====================================================================
   FILE PATH: /opt/lampp/htdocs/assets/css/style.css
   DESCRIPTION: Modern Fluid & Mobile-Responsive Design System Stylesheet
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. DESIGN SYSTEM DESIGN TOKENS (VARIABLES)
   --------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --clr-slate-50:  #f8fafc;
    --clr-slate-100: #f1f5f9;
    --clr-slate-200: #e2e8f0;
    --clr-slate-300: #cbd5e1;
    --clr-slate-400: #94a3b8;
    --clr-slate-500: #64748b;
    --clr-slate-600: #475569;
    --clr-slate-700: #334155;
    --clr-slate-800: #1e293b;
    --clr-slate-900: #0f172a;
    --clr-slate-950: #020617;

    --clr-primary-400: #60a5fa;
    --clr-primary-500: #3b82f6;
    --clr-primary-600: #2563eb;
    --clr-primary-700: #1d4ed8;

    --clr-success-400: #34d399;
    --clr-success-500: #10b981;
    --clr-success-600: #059669;

    --clr-danger-400: #f87171;
    --clr-danger-500: #ef4444;
    --clr-danger-600: #dc2626;

    /* Theme Aliases (Dark Mode First Layout Architecture) */
    --canvas-bg: var(--clr-slate-950);
    --surface-bg: var(--clr-slate-900);
    --surface-border: var(--clr-slate-800);
    --surface-hover: var(--clr-slate-800);
    
    --txt-primary: var(--clr-slate-50);
    --txt-secondary: var(--clr-slate-400);
    --txt-muted: var(--clr-slate-500);

    /* Typography Scales */
    --ff-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;

    /* Structural Constants */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 260px;
    --max-content-width: 1280px;
}

/* ---------------------------------------------------------------------
   2. GLOBAL RESET & BASE RULES
   --------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--canvas-bg);
    color: var(--txt-primary);
    font-family: var(--ff-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    letter-spacing: -0.011em;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--clr-primary-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--clr-primary-500);
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    background: transparent;
    border: none;
}

ul, ol {
    list-style: none;
}

/* ---------------------------------------------------------------------
   3. TYPOGRAPHY & HEADINGS
   --------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--txt-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

/* ---------------------------------------------------------------------
   4. LAYOUT SYSTEM & COMPONENTS
   --------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Cards Design */
.card {
    background-color: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}
.card:hover {
    border-color: var(--clr-slate-700);
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: var(--fs-sm);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn:active {
    transform: scale(0.98);
}
.btn:disabled, .btn.disabled {
    background-color: var(--clr-slate-800) !important;
    border-color: var(--clr-slate-800) !important;
    color: var(--txt-muted) !important;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary { background-color: var(--clr-primary-500); color: #fff; }
.btn-primary:hover:not(:disabled) { background-color: var(--clr-primary-600); }

.btn-success { background-color: var(--clr-success-500); color: #fff; }
.btn-success:hover:not(:disabled) { background-color: var(--clr-success-600); }

.btn-danger { background-color: var(--clr-danger-500); color: #fff; }
.btn-danger:hover:not(:disabled) { background-color: var(--clr-danger-600); }

.btn-outline { border: 1px solid var(--surface-border); color: var(--txt-primary); }
.btn-outline:hover:not(:disabled) { background-color: var(--surface-hover); }

/* Forms Structure */
.form-group {
    margin-bottom: 1.25rem;
}
.form-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--txt-secondary);
    margin-bottom: 0.5rem;
}
.form-control {
    width: 100%;
    background-color: var(--canvas-bg);
    border: 1px solid var(--surface-border);
    color: var(--txt-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus {
    outline: none;
    border-color: var(--clr-primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Tables System */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    background-color: var(--surface-bg);
    margin-top: 1.5rem;
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
    text-align: left;
}
.table th, .table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--surface-border);
    white-space: nowrap;
}
.table th {
    background-color: rgba(2, 6, 23, 0.4);
    font-weight: 600;
    color: var(--txt-secondary);
    text-transform: uppercase;
    font-size: var(--fs-xs);
    letter-spacing: 0.05em;
}
.table tr:last-child td {
    border-bottom: none;
}
.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: capitalize;
}
.badge-pending  { background-color: rgba(234, 179, 8, 0.15);  color: #fde047; }
.badge-approved { background-color: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.badge-rejected { background-color: rgba(239, 68, 68, 0.15);   color: #fca5a5; }

/* Alerts and Notifications */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    margin-bottom: 1.5rem;
    border-left: 4px solid transparent;
}
.alert-success { background-color: rgba(16, 185, 129, 0.1); border-color: var(--clr-success-500); color: #a7f3d0; }
.alert-danger  { background-color: rgba(239, 68, 68, 0.1);  border-color: var(--clr-danger-500);  color: #fca5a5; }

/* ---------------------------------------------------------------------
   5. LANDING PAGE & AUTHENTICATION SPECIFIC LAYOUTS
   --------------------------------------------------------------------- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.auth-container {
    width: 100%;
    max-width: 440px;
}
.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-brand h1 {
    font-size: var(--fs-3xl);
    background: linear-gradient(135deg, #fff 0%, var(--clr-slate-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------------------------
   6. APP BACKEND DASHBOARD GRID MASTER FRAMEWORK
   --------------------------------------------------------------------- */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Responsive Navigation Drawer (Sidebar) */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--surface-bg);
    border-right: 1px solid var(--surface-border);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform var(--transition-smooth);
}
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-brand {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: #fff;
}
.sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}
.sidebar-link {
    display: flex;
    align-items: center;
