/* File: assets/css/style.css - Premium Glassmorphism & Aurora Theme */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Premium Aurora Theme */
    --primary: #8950fc;
    --primary-glow: rgba(137, 80, 252, 0.15);
    --success: #1bc5bd;
    --success-glow: rgba(27, 197, 189, 0.15);
    --warning: #ff6b35;
    --warning-glow: rgba(255, 107, 53, 0.15);
    --danger: #f64e60;
    --danger-glow: rgba(246, 78, 96, 0.15);

    /* Backgrounds */
    --bg-body: #f3f5f9;
    --bg-sidebar: #3b1b8c; /* Jobie mockups style: luxurious deep purple */
    --bg-sidebar-active: #2b136b;
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-glass: rgba(255, 255, 255, 0.4);

    /* Text Colors */
    --text-main: #2b2d42;
    --text-muted: #7e8299;
    --text-sidebar: #c3b7f5;
    --text-sidebar-hover: #ffffff;

    /* Styling Attributes */
    --border-radius: 16px;
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    --hover-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
    --transition-speed: 0.3s;
}

/* --- Dark Mode Override --- */
[data-theme="dark"] {
    --bg-body: #11111d;
    --bg-card: rgba(30, 30, 45, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    --hover-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    --bg-sidebar: #1e1e2f;
    --bg-sidebar-active: #11111d;
    --text-sidebar: #76778c;
}

/* --- Custom Background Overrides --- */
[data-bg="lavender"] { --bg-body: #f3f0ff; }
[data-bg="gray"] { --bg-body: #f8fafc; }
[data-bg="aurora"] { --bg-body: #0b091a; }
[data-bg="classic"] { --bg-body: #f3f5f9; }

/* --- Dynamic Accent Overrides --- */
[data-accent="purple"] {
    --primary: #8950fc;
    --primary-glow: rgba(137, 80, 252, 0.15);
}
[data-accent="blue"] {
    --primary: #2575fc;
    --primary-glow: rgba(37, 117, 252, 0.15);
}
[data-accent="orange"] {
    --primary: #ff6b35;
    --primary-glow: rgba(255, 107, 53, 0.15);
}
[data-accent="teal"] {
    --primary: #1bc5bd;
    --primary-glow: rgba(27, 197, 189, 0.15);
}
[data-accent="pink"] {
    --primary: #e83e8c;
    --primary-glow: rgba(232, 62, 140, 0.15);
}

body {
    background-color: var(--bg-body);
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    color: var(--text-main);
    margin: 0;
    overflow-x: hidden;
}

/* --- Layout Wrapper --- */
.wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* --- Sidebar Styling (Aurora Sleek) --- */
#sidebar {
    min-width: 270px;
    max-width: 270px;
    background: var(--bg-sidebar);
    color: var(--text-sidebar);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar .sidebar-brand {
    padding: 30px 25px 20px 25px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar .sidebar-brand i {
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#sidebar .user-profile {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

#sidebar .user-profile img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(137, 80, 252, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-speed);
}

#sidebar .user-profile:hover img {
    transform: rotate(5deg) scale(1.05);
}

#sidebar .user-info h6 {
    color: #fff;
    font-weight: 600;
    margin: 0;
    font-size: 0.95rem;
}

#sidebar .user-info small {
    font-size: 0.8rem;
    color: var(--text-sidebar);
}

#sidebar ul.components {
    padding: 15px 0;
    list-style: none;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

#sidebar ul li {
    margin: 4px 15px;
}

#sidebar ul li a {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: var(--text-sidebar);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all var(--transition-speed);
    border-radius: 12px;
}

#sidebar ul li a i {
    width: 25px;
    font-size: 1.15rem;
    margin-right: 12px;
    text-align: center;
    transition: transform var(--transition-speed);
}

#sidebar ul li a:hover {
    color: var(--text-sidebar-hover);
    background: rgba(255, 255, 255, 0.05);
}

#sidebar ul li a:hover i {
    transform: translateX(3px);
}

#sidebar ul li a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(137, 80, 252, 0.7) 100%);
    box-shadow: 0 8px 20px rgba(137, 80, 252, 0.3);
    font-weight: 600;
}

#sidebar ul li a.active i {
    color: #fff;
}

#sidebar .nav-category {
    padding: 15px 20px 8px 20px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 700;
}

/* --- Main Content Area --- */
#content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 30px;
    background: var(--bg-body);
}

/* --- Glassmorphic Cards & Panels --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(255, 255, 255, 0.6);
}

/* --- Stats Cards (Neon Gradients) --- */
.stat-card-gradient {
    border-radius: var(--border-radius);
    padding: 24px;
    height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card-gradient::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
    transition: transform var(--transition-speed);
}

.stat-card-gradient:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-card-gradient:hover::after {
    transform: scale(1.2);
}

.bg-grad-teal {
    background: linear-gradient(135deg, #1bc5bd 0%, #0bb7af 100%);
    box-shadow: 0 8px 20px rgba(27, 197, 189, 0.25);
}

.bg-grad-indigo {
    background: linear-gradient(135deg, #8950fc 0%, #6632d7 100%);
    box-shadow: 0 8px 20px rgba(137, 80, 252, 0.25);
}

.bg-grad-orange {
    background: linear-gradient(135deg, #ff6b35 0%, #d84b16 100%);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
}

.bg-grad-dark {
    background: linear-gradient(135deg, #2d3a4b 0%, #1e2530 100%);
    box-shadow: 0 8px 20px rgba(45, 58, 75, 0.25);
}

.stat-icon {
    font-size: 2.2rem;
    opacity: 0.85;
}

/* --- Premium Priority Badges --- */
.badge-priority {
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.78rem;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.priority-high {
    background: var(--danger-glow);
    color: var(--danger);
    border: 1px solid rgba(246, 78, 96, 0.25);
    box-shadow: 0 0 12px rgba(246, 78, 96, 0.15);
    animation: pulse-red 2s infinite;
}

.priority-medium {
    background: var(--warning-glow);
    color: var(--warning);
    border: 1px solid rgba(255, 107, 53, 0.25);
}

.priority-low {
    background: var(--success-glow);
    color: var(--success);
    border: 1px solid rgba(27, 197, 189, 0.25);
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(246, 78, 96, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(246, 78, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(246, 78, 96, 0); }
}

/* --- Stepper Component for Workflow Progress --- */
.stepper-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px 10px;
    margin-bottom: 25px;
}

.stepper-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 4px;
    background: #e4e6ef;
    transform: translateY(-50%);
    z-index: 1;
}

.stepper-progress {
    position: absolute;
    top: 50%;
    left: 5%;
    height: 4px;
    background: var(--primary);
    transform: translateY(-50%);
    z-index: 2;
    transition: width var(--transition-speed) ease-in-out;
}

.stepper-item {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stepper-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e4e6ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition-speed);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.stepper-item.active .stepper-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.stepper-item.completed .stepper-circle {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}

.stepper-label {
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition-speed);
}

.stepper-item.active .stepper-label {
    color: var(--primary);
}

.stepper-item.completed .stepper-label {
    color: var(--success);
}

/* --- Clean Search Autocomplete & Filter Drop-zones --- */
.drop-zone {
    border: 2px dashed rgba(137, 80, 252, 0.25);
    background: var(--primary-glow);
    padding: 35px;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.drop-zone:hover {
    border-color: var(--primary);
    background: rgba(137, 80, 252, 0.08);
}

.drop-zone i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

/* --- Officer Avatar Initials --- */
.avatar-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.88rem;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* --- Interactive Table & Hover Enhancements --- */
.table-responsive {
    overflow-x: auto;
}

.table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-muted);
    background-color: rgba(255,255,255,0.4);
    border-bottom: 2px solid #ebedf3;
    padding: 15px 10px;
}

.table tbody tr {
    transition: all 0.2s;
}

.table tbody tr:hover {
    background-color: rgba(137, 80, 252, 0.02) !important;
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 11px 18px;
    border: 1px solid #e4e6ef;
    background-color: #fff;
    font-size: 0.92rem;
    transition: all var(--transition-speed);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #c5c5d3;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a5a5b3;
}

/* --- Glassmorphic Static Card / Panels (No Hover Animation) --- */
.glass-card-static {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

/* --- Compact & Sleek UI Overrides (Tiny Look) --- */
#content {
    padding: 16px 20px !important;
}

#sidebar .sidebar-brand {
    padding: 20px 25px 15px 25px !important;
}

#sidebar .user-profile {
    padding: 16px 25px !important;
}

#sidebar ul.components {
    padding: 8px 0 !important;
}

#sidebar ul li {
    margin: 2px 15px !important;
}

#sidebar ul li a {
    padding: 10px 16px !important;
}

.table thead th {
    padding: 10px 12px !important;
    font-size: 0.72rem !important;
}

.table tbody td {
    padding: 10px 12px !important;
    font-size: 0.76rem !important;
}

.form-control, .form-select, .choices__inner {
    padding: 8px 14px !important;
    min-height: 38px !important;
}

.form-control:not(textarea) {
    height: 38px !important;
}

.btn-xs {
    padding: 3px 8px !important;
    font-size: 0.7rem !important;
}

.stat-card-gradient {
    padding: 16px !important;
    height: 130px !important;
}

.stat-icon {
    font-size: 1.8rem !important;
}

/* Snug overrides for Bootstrap spacing helpers in the layout */
.p-4 {
    padding: 1rem !important; /* Reduces padding from 1.5rem to 1rem */
}

.py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 0.8rem !important;
}

.mt-4 {
    margin-top: 0.8rem !important;
}

.g-4, .gy-4 {
    --bs-gutter-y: 0.8rem !important;
}

.g-4, .gx-4 {
    --bs-gutter-x: 0.8rem !important;
}