/* ==========================================================================
   Reset Password Email Application - Custom CSS
   Built manually for application-specific needs
   ========================================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Card */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

/* Centered Box (untuk login/forms) */
.centered-box {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ==========================================================================
   Form Components
   ========================================================================== */

/* Form Groups */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Error States */
.form-group input.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

/* Primary Button */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    text-decoration: none;
}

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

.btn-secondary:hover {
    background-color: #4b5563;
    text-decoration: none;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    text-decoration: none;
}

.btn-success {
    background-color: #10b981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* ==========================================================================
   Admin Dashboard Components
   ========================================================================== */

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    color: white;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

/* Sidebar Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.sidebar-brand-text span {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sidebar-brand-text small {
    display: block;
    font-size: 0.6875rem;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 0.0625rem;
}

/* Sidebar Section Labels */
.sidebar-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    padding: 1rem 1.25rem 0.5rem;
}

/* Sidebar Navigation */
.admin-sidebar nav {
    flex: 1;
    padding: 0.5rem 0.75rem;
}

.admin-sidebar nav ul {
    list-style: none;
}

.admin-sidebar nav ul li {
    margin-bottom: 0.125rem;
}

.admin-sidebar nav ul li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5625rem 0.75rem;
    color: #9ca3af;
    border-radius: 0.5rem;
    transition: all 0.15s;
    font-size: 0.875rem;
    font-weight: 450;
}

.admin-sidebar nav ul li a:hover {
    background: rgba(255,255,255,0.06);
    color: #e5e7eb;
    text-decoration: none;
}

.admin-sidebar nav ul li a.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.admin-sidebar nav ul li a.active .sidebar-icon {
    color: #60a5fa;
}

.sidebar-icon {
    width: 1.25rem;
    text-align: center;
    font-size: 0.9375rem;
    flex-shrink: 0;
    color: #6b7280;
    transition: color 0.15s;
}

.admin-sidebar nav ul li a:hover .sidebar-icon {
    color: #9ca3af;
}

/* Sidebar Badge */
.sidebar-badge {
    margin-left: auto;
    background: #ef4444;
    color: white;
    font-size: 0.6875rem;
    padding: 0.0625rem 0.4375rem;
    border-radius: 9999px;
    font-weight: 600;
    line-height: 1.4;
}

/* Main Content */
.admin-content {
    flex: 1;
    padding: 1.25rem 2rem 2rem;
    background: #f9fafb;
    min-width: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
    gap: 1rem;
}

/* Header Left: back button + title */
.header-left {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.header-back-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.15s;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.header-back-btn:hover {
    background: #e5e7eb;
    color: #374151;
    text-decoration: none;
}

.header-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.header-subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.3;
}

/* Header Right: actions + avatar */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

/* Header User / Avatar Dropdown */
.header-user {
    position: relative;
}

.header-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: none;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    padding: 0.375rem 0.625rem;
    cursor: pointer;
    transition: all 0.15s;
}

.header-avatar-btn:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.header-avatar {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    flex-shrink: 0;
}

.header-user-info {
    text-align: left;
}

.header-user-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
}

.header-user-role {
    display: block;
    font-size: 0.6875rem;
    color: #6b7280;
    line-height: 1.2;
}

/* Dropdown */
.header-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.375rem);
    right: 0;
    background: white;
    border-radius: 0.625rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
}

.header-dropdown.show {
    display: block;
}

.header-dropdown-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
}

.header-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
}

.header-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.8125rem;
    color: #374151;
    transition: background 0.15s;
    text-align: left;
}

.header-dropdown-item:hover {
    background: #f9fafb;
}

.header-dropdown-logout {
    color: #ef4444;
}

.header-dropdown-logout:hover {
    background: #fef2f2;
}

/* Dashboard Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-card p {
    font-size: 0.875rem;
    color: #6b7280;
}

.stat-card.pending {
    border-left: 4px solid #f59e0b;
}

.stat-card.verified {
    border-left: 4px solid #10b981;
}

.stat-card.rejected {
    border-left: 4px solid #ef4444;
}

.stat-card.completed {
    border-left: 4px solid #3b82f6;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background: #f9fafb;
}

table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
}

table tbody tr:hover {
    background: #f9fafb;
}

/* Filter Form */
.filter-form {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================================================
   Status Badges
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-verified {
    background: #d1fae5;
    color: #065f46;
}

.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.badge-completed {
    background: #dbeafe;
    color: #1e40af;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-approval {
    background: #fff7ed;
    color: #c2410c;
}

.badge-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.badge i.dot {
    font-size: 0.3125rem;
    vertical-align: middle;
    margin-right: 0.25rem;
}

/* DataTable action buttons */
.dt-actions {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.dt-actions form {
    display: inline;
    margin: 0;
}

.dt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.75rem;
    transition: background 0.15s;
}

.dt-btn-view { color: #2563eb; background: #eff6ff; }
.dt-btn-view:hover { background: #dbeafe; }
.dt-btn-edit { color: #d97706; background: #fef3c7; }
.dt-btn-edit:hover { background: #fde68a; }
.dt-btn-delete { color: #ef4444; background: #fef2f2; }
.dt-btn-delete:hover { background: #fecaca; }
.dt-btn-toggle-on { color: #ef4444; background: #fef2f2; }
.dt-btn-toggle-on:hover { background: #fecaca; }
.dt-btn-toggle-off { color: #10b981; background: #f0fdf4; }
.dt-btn-toggle-off:hover { background: #d1fae5; }

/* DataTables loading overlay */
.dataTables_wrapper { position: relative; }
.dataTables_wrapper .dataTables_processing {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 10;
    border: none !important;
}
.dt-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    color: #6b7280;
}
.dt-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2.5px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: dt-spin 0.6s linear infinite;
}
@keyframes dt-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Alert Messages
   ========================================================================== */

.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* ==========================================================================
   Detail View
   ========================================================================== */

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

.detail-item {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.375rem;
}

.detail-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 500;
}

.photo-preview {
    max-width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.pagination a:hover {
    background: #f9fafb;
    text-decoration: none;
}

.pagination .active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Spacing */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-6 { margin-bottom: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* Colors */
.text-red { color: #ef4444; }
.text-green { color: #10b981; }
.text-gray { color: #6b7280; }
.text-blue { color: #2563eb; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

/* Flexbox */
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* ==========================================================================
   Section Header (card headers with icon)
   ========================================================================== */

.section-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.section-header--compact {
    margin-bottom: 1.25rem;
    padding-bottom: 0;
    border-bottom: none;
}

.section-header--centered {
    text-align: center;
    flex-direction: column;
}

.section-header--between {
    justify-content: space-between;
}

.section-header__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-header__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.section-header__subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

/* ==========================================================================
   Info Row (detail pages - icon + label + value)
   ========================================================================== */

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.info-row__icon {
    color: #9ca3af;
    margin-top: 0.2rem;
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.info-row__label {
    font-size: 0.6875rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Grid Layouts
   ========================================================================== */

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.grid-2col-sidebar {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1rem;
    align-items: start;
}

.grid-2col-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.grid-2col-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-gap {
    display: grid;
    gap: 1rem;
}

.grid-gap-sm {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.grid-gap-lg {
    display: grid;
    gap: 1.25rem;
    align-content: start;
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-full {
    grid-column: 1 / -1;
}

/* ==========================================================================
   Form Utilities
   ========================================================================== */

.form-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.form-inline {
    display: inline;
    margin: 0;
}

.label-icon {
    color: #9ca3af;
    width: 1rem;
}

.required {
    color: #ef4444;
}

.hint-text {
    color: #9ca3af;
    font-size: 0.75rem;
}

.validation-hint {
    margin-top: 0.375rem;
    font-size: 0.75rem;
}

/* Password Rules */
.pw-rules {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1rem;
    font-size: 0.75rem;
}

.pw-rules li {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pw-rules li i {
    font-size: 0.625rem;
}

.pw-rule--default { color: #9ca3af; }
.pw-rule--pass { color: #10b981; }
.pw-rule--fail { color: #ef4444; }

.input-disabled {
    background: #f3f4f6;
    cursor: not-allowed;
    color: #6b7280;
}

/* Input Group (e.g. email@domain) */
.input-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.input-group input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group__addon {
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
    color: #6b7280;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* ==========================================================================
   Filter Bar (DataTable inline filters)
   ========================================================================== */

.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-input {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}

.filter-input--search {
    width: 220px;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay--blur {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-sm {
    max-width: 420px;
    width: 90%;
}

.modal-md {
    max-width: 480px;
}

/* Export Modal */
.export-header {
    background: #217346;
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.export-body {
    padding: 1.25rem 1.5rem;
}

.export-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.export-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0.625rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    transition: background 0.15s;
}

.export-checkbox input {
    accent-color: #217346;
}

/* ==========================================================================
   Buttons Extras
   ========================================================================== */

.btn-excel {
    background-color: #217346;
    color: white;
}

.btn-excel:hover {
    background-color: #185c35;
    text-decoration: none;
}

.btn-close-modal {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
}

/* ==========================================================================
   Status Elements
   ========================================================================== */

.status-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.status-circle--active {
    background: #f0fdf4;
}

.status-circle--inactive {
    background: #fef2f2;
}

.status-circle__icon {
    font-size: 1.25rem;
}

.status-circle__icon--active {
    color: #10b981;
}

.status-circle__icon--inactive {
    color: #ef4444;
}

.status-dot {
    font-size: 0.375rem;
}

.status-dot--active {
    color: #10b981;
}

.status-dot--inactive {
    color: #ef4444;
}

.status-box {
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid;
    text-align: center;
    margin-bottom: 1rem;
}

.status-box--active {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.status-box--inactive {
    background: #fef2f2;
    border-color: #fecaca;
}

/* Checklist Box */
.checklist-box {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid;
}

.checklist-box--incomplete {
    background: #fffbeb;
    border-color: #fde68a;
}

.checklist-box--complete {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.checklist-box__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.checklist {
    list-style: none;
    display: grid;
    gap: 0.375rem;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.checklist--done {
    color: #374151;
}

.checklist--missing {
    color: #991b1b;
}

.rejection-box {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fef2f2;
    border-radius: 0.5rem;
    border: 1px solid #fecaca;
    text-align: left;
}

/* ==========================================================================
   Card Variants
   ========================================================================== */

.card-danger {
    border: 1px solid #dc2626;
}

.card-warning {
    border-left: 4px solid #eab308;
}

.card-orange {
    border-left: 4px solid #f97316;
}

/* ==========================================================================
   Sidebar Info (edit pages sidebar)
   ========================================================================== */

.sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.sidebar-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.sidebar-info-label {
    color: #6b7280;
}

.sidebar-info-label i {
    width: 1rem;
    color: #9ca3af;
}

.role-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.role-badge--superadmin {
    background: #f3e8ff;
    color: #7c3aed;
}

.role-badge--satker {
    background: #eff6ff;
    color: #2563eb;
}

/* ==========================================================================
   Satker Badge (header)
   ========================================================================== */

.satker-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.375rem;
}

.satker-badge__text {
    font-size: 0.75rem;
    color: #1e40af;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 1.5rem 0;
}

.empty-state--lg {
    padding: 2.5rem 1.5rem;
}

.empty-state__icon {
    font-size: 1.5rem;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.empty-state__icon--lg {
    font-size: 2rem;
    color: #d1d5db;
    margin-bottom: 0.75rem;
}

.empty-state__text {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

/* ==========================================================================
   Code / Mono text
   ========================================================================== */

.text-mono {
    font-family: 'SF Mono', SFMono-Regular, monospace;
    font-size: 0.75rem;
}

.code-tag {
    background: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.75rem;
}

/* ==========================================================================
   Image Preview
   ========================================================================== */

.img-preview {
    max-width: 200px;
    max-height: 250px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.img-preview-sm {
    max-width: 160px;
    max-height: 160px;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    object-fit: cover;
}

.img-preview--clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.img-preview--clickable:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.img-full {
    max-width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.lightbox--open {
    display: flex;
    animation: lightbox-fade-in 0.2s ease;
}

.lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: lightbox-scale-in 0.25s ease;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox__close {
    position: absolute;
    top: -2.5rem;
    right: -0.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s;
    line-height: 1;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.15);
}

@keyframes lightbox-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lightbox-scale-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Background Color Utilities
   ========================================================================== */

.bg-blue-50 { background: #eff6ff; }
.bg-yellow-50 { background: #fef3c7; }
.bg-orange-50 { background: #fff7ed; }
.bg-green-50 { background: #f0fdf4; }
.bg-green-100 { background: #ecfdf5; }
.bg-red-50 { background: #fef2f2; }
.bg-gray-50 { background: #f9fafb; }
.bg-gray-100 { background: #f3f4f6; }
.bg-purple-50 { background: #ede9fe; }
.bg-amber-50 { background: #fffbeb; }

/* ==========================================================================
   Text Color Utilities (extended)
   ========================================================================== */

.text-blue-600 { color: #2563eb; }
.text-blue-800 { color: #1e40af; }
.text-amber-600 { color: #d97706; }
.text-orange-600 { color: #ea580c; }
.text-orange-500 { color: #f97316; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #059669; }
.text-green-500 { color: #10b981; }
.text-red-600 { color: #dc2626; }
.text-red-500 { color: #ef4444; }
.text-gray-700 { color: #374151; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }
.text-gray-300 { color: #d1d5db; }
.text-purple-600 { color: #7c3aed; }

/* ==========================================================================
   Misc Utilities
   ========================================================================== */

.whitespace-nowrap { white-space: nowrap; }
.overflow-auto { overflow-x: auto; }
.sticky-top { position: sticky; top: 1rem; }
.max-w-sm { max-width: 450px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 800px; }
.font-semibold { font-weight: 600; }
.mb-3 { margin-bottom: 0.75rem; }
.mt-3 { margin-top: 0.75rem; }
.py-4 { padding: 1rem 0; }
.flex-1 { flex: 1; }

.search-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-form .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

.pagination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* PDF Preview */
.pdf-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
}

/* Mailbox Detail Grid */
.mailbox-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.mailbox-detail-grid--with-foto {
    grid-template-columns: 1fr 1fr auto;
}

/* Photo Column */
.photo-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

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

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }

    .admin-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .grid-2col,
    .grid-2col-sidebar,
    .grid-2col-detail,
    .grid-2col-equal {
        grid-template-columns: 1fr;
    }

    .col-span-2 {
        grid-column: span 1;
    }

    table {
        font-size: 0.75rem;
    }

    table th, table td {
        padding: 0.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .filter-actions {
        flex-direction: column;
        width: 100%;
    }

    .filter-actions .btn {
        width: 100%;
    }
}
