/* ============================================
   ALIF SUITE - NIKAH MANAGEMENT SYSTEM
   Custom Styles — Refined Admin Portal
   ============================================ */

:root {
    --primary-green: #1B5E20;
    --primary-green-light: #2E7D32;
    --primary-green-dark: #0D3B13;
    --accent-gold: #C8A415;
    --accent-gold-light: #D4B93C;
    --accent-gold-dark: #A08510;
    --bg-cream: #FFF8E7;
    --bg-light: #F7F8FA;
    --text-dark: #1E1E2D;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --sidebar-width: 260px;

    /* Layered shadow system */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-green-light);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-green-light) !important;
    border-color: var(--primary-green-light) !important;
}

.btn-accent {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #fff;
}

.btn-accent:hover {
    background-color: var(--accent-gold-dark);
    border-color: var(--accent-gold-dark);
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-green) !important;
    color: #fff !important;
}

/* ============================================
   PUBLIC BOOKING FORM
   ============================================ */

.booking-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.booking-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: #fff;
    padding: 3rem 1rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.booking-header .booking-logo {
    position: relative;
    margin-bottom: 1rem;
}
.booking-header .booking-logo img {
    max-height: 70px;
    max-width: 180px;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 6px 10px;
}

.booking-header .booking-org {
    position: relative;
    margin-top: 0.9rem;
    opacity: 0.95;
}
.booking-header .booking-org-name {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}
.booking-header .booking-org-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.2rem;
    font-size: 0.88rem;
    opacity: 0.85;
}

.booking-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.booking-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    position: relative;
}
@media (max-width: 576px) {
    .booking-header h1 { font-size: 2rem; }
}

.booking-header .bismillah {
    font-family: 'Amiri', 'Traditional Arabic', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold-light);
    position: relative;
}

.booking-container {
    max-width: 800px;
    margin: -2rem auto 2rem;
    position: relative;
    z-index: 1;
}

.booking-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Public booking intro */
.booking-intro {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.06));
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--green-primary, #1B5E20);
}
.booking-intro h2 {
    font-size: 1.2rem;
    color: var(--green-primary, #1B5E20);
    margin: 0 0 0.5rem;
    font-weight: 600;
}
.booking-intro .intro-lead {
    font-size: 0.95rem;
    color: #444;
    margin: 0 0 1rem;
    line-height: 1.6;
}
.booking-intro .intro-details {
    background: #FAFAFA;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color, #e5e5e5);
}
.booking-intro .intro-details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--green-primary, #1B5E20);
    list-style: none;
    padding: 0.25rem 0;
}
.booking-intro .intro-details summary::-webkit-details-marker { display: none; }
.booking-intro .intro-details[open] summary { margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color, #e5e5e5); }
.booking-intro .intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    font-size: 0.85rem;
}
.booking-intro .intro-grid h6 {
    color: var(--green-primary, #1B5E20);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}
.booking-intro .intro-grid ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #555;
}
.booking-intro .intro-grid li { margin-bottom: 0.25rem; }
.booking-intro .intro-tips {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #555;
}
.booking-intro .intro-tips .tip {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    background: #F8FAF6;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}
.booking-intro .intro-tips .tip i {
    color: var(--gold-accent, #C8A415);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 1px;
}
@media (max-width: 640px) {
    .booking-intro { padding: 1.1rem 1rem; }
    .booking-intro .intro-grid { grid-template-columns: 1fr; }
}

/* Step Wizard */
.step-wizard {
    display: flex;
    padding: 1.5rem 1rem;
    background: #FAFAFA;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    gap: 0;
}

.step-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--border-color);
    margin: 0 0.5rem;
    flex-shrink: 0;
}

.step-item.active:not(:last-child)::after {
    background: var(--primary-green);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 0.4rem;
    background: var(--border-color);
    color: #fff;
    flex-shrink: 0;
    transition: all var(--transition-slow);
}

.step-item.active .step-number {
    background: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.2);
}

.step-item.completed .step-number {
    background: var(--accent-gold);
}

.step-item.active .step-label {
    color: var(--primary-green);
    font-weight: 600;
}

.step-label {
    white-space: nowrap;
}

.step-content {
    padding: 2rem;
}

.step-content h3 {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.step-content .step-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.step-section {
    display: none;
}

.step-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-navigation {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: #FAFAFA;
    border-top: 1px solid var(--border-color);
}

/* Form Styles */
.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.form-label .required {
    color: #D32F2F;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.12);
}

.form-control, .form-select {
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.875rem;
    border: 1px solid #D1D5DB;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-text {
    font-size: 0.8rem;
}

.form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.conditional-field {
    display: none;
    padding: 1rem;
    background: #F9FBE7;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--accent-gold);
    margin-top: 0.5rem;
}

.conditional-field.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Signature Pad */
.signature-pad-wrapper {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    background: #fff;
    text-align: center;
}

.signature-pad-wrapper canvas {
    width: 100%;
    height: 150px;
    cursor: crosshair;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    position: relative;
}

.login-card .logo-area {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card .logo-area h2 {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.login-card .logo-area p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   ADMIN LAYOUT
   ============================================ */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #081C0B 0%, var(--primary-green-dark) 40%, var(--primary-green) 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: transform var(--transition-slow);
}

/* Custom scrollbar for sidebar */
.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}

.sidebar-header {
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-header h5 {
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.sidebar-header small {
    opacity: 0.5;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.sidebar-nav {
    padding: 0.75rem 0;
}

.sidebar-nav .nav-section {
    padding: 0.75rem 1.5rem 0.4rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.3);
    margin-top: 0.25rem;
    font-weight: 600;
}

.sidebar-nav .nav-section:not(:first-child) {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    margin: 1px 0.65rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.865rem;
    transition: all var(--transition-base);
    border-radius: var(--radius-sm);
    border-left: none;
    position: relative;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--accent-gold);
}

.sidebar-nav .nav-link i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1rem;
    text-align: center;
    opacity: 0.85;
}

.sidebar-nav .nav-link.active i {
    opacity: 1;
}

.sidebar-nav .nav-link .badge {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
}

/* Main Content */
.admin-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Navbar */
.admin-topbar {
    background: #fff;
    padding: 0 1.5rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-xs);
}

.admin-topbar .breadcrumb {
    margin: 0;
    font-size: 0.85rem;
}

.admin-topbar .breadcrumb-item a {
    color: var(--text-muted);
}

.admin-topbar .breadcrumb-item.active {
    color: var(--primary-green);
    font-weight: 600;
}

.admin-topbar .breadcrumb-item + .breadcrumb-item::before {
    color: #D1D5DB;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
}

.notification-bell:hover {
    background: var(--bg-light);
}

.notification-bell .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-base);
}

.user-menu:hover {
    background: var(--bg-light);
}

.user-menu .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 0 0 2px rgba(27, 94, 32, 0.15);
}

/* Content Area */
.admin-content {
    padding: 1.5rem;
    flex: 1;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.01em;
}

/* ============================================
   DASHBOARD CARDS
   ============================================ */

.stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--border-color);
    transition: background var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.875rem;
}

.stat-card .stat-icon.green { background: #E8F5E9; color: var(--primary-green); }
.stat-card .stat-icon.gold { background: #FFF8E1; color: var(--accent-gold-dark); }
.stat-card .stat-icon.blue { background: #E3F2FD; color: #1565C0; }
.stat-card .stat-icon.red { background: #FFEBEE; color: #C62828; }
.stat-card .stat-icon.purple { background: #F3E5F5; color: #6A1B9A; }

/* Left border accent matches icon color via :has() */
.stat-card:has(.stat-icon.green)::before { background: var(--primary-green); }
.stat-card:has(.stat-icon.gold)::before { background: var(--accent-gold); }
.stat-card:has(.stat-icon.blue)::before { background: #1565C0; }
.stat-card:has(.stat-icon.red)::before { background: #C62828; }
.stat-card:has(.stat-icon.purple)::before { background: #6A1B9A; }

.stat-card .stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-card .stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ============================================
   DATA TABLE
   ============================================ */

.data-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.data-card .card-header {
    background: #FAFBFC;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.data-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

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

.data-table thead th {
    background: #FAFBFC;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #F0F0F0;
    vertical-align: middle;
}

.data-table tbody tr:nth-child(even) {
    background: #FAFBFC;
}

.data-table tbody tr:hover {
    background: #F0F9F0;
}

.data-table .actions-cell {
    white-space: nowrap;
}

.data-table .actions-cell .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

/* ============================================
   BADGES & STATUS
   ============================================ */

.badge {
    padding: 0.35rem 0.65rem;
    font-size: 0.73rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.01em;
}

/* Refined badge colors - deeper, more muted tones */
.badge.bg-info {
    background-color: #0C7CD5 !important;
}

.badge.bg-warning {
    background-color: #D4920C !important;
    color: #fff !important;
}

.badge.bg-success {
    background-color: #15803D !important;
}

.badge.bg-danger {
    background-color: #B91C1C !important;
}

.badge.bg-secondary {
    background-color: #4B5563 !important;
}

.badge.bg-dark {
    background-color: #1F2937 !important;
}

.bg-purple {
    background-color: #6D28D9 !important;
}

/* ============================================
   CALENDAR
   ============================================ */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.calendar-header-cell {
    background: var(--primary-green);
    color: #fff;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.calendar-cell {
    background: #fff;
    padding: 0.5rem;
    min-height: 100px;
    font-size: 0.8rem;
    position: relative;
}

.calendar-cell.today {
    background: #F1F8E9;
}

.calendar-cell.other-month {
    background: #FAFAFA;
    color: #CCC;
}

.calendar-cell .day-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.calendar-event {
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    margin-bottom: 2px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event.status-new { background: #E3F2FD; color: #1565C0; }
.calendar-event.status-approved { background: #E8F5E9; color: #2E7D32; }
.calendar-event.status-scheduled { background: #F3E5F5; color: #6A1B9A; }
.calendar-event.status-completed { background: #E0E0E0; color: #424242; }
.calendar-event.status-cancelled { background: #FFEBEE; color: #C62828; }

/* ============================================
   CERTIFICATE PREVIEW
   ============================================ */

.certificate-preview {
    background: #fff;
    border: 2px solid var(--accent-gold);
    border-radius: var(--radius-sm);
    padding: 3rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.certificate-preview .cert-border {
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 2px solid var(--accent-gold);
    border-radius: 4px;
    pointer-events: none;
}

.certificate-preview .bismillah {
    font-family: 'Amiri', serif;
    font-size: 1.75rem;
    text-align: center;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.certificate-preview .cert-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.certificate-preview .cert-subtitle {
    text-align: center;
    color: var(--accent-gold-dark);
    font-style: italic;
    margin-bottom: 2rem;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
}

@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 767px) {
    .step-wizard {
        padding: 1rem 0.5rem;
    }

    .step-label {
        display: none;
    }

    .step-item:not(:last-child)::after {
        width: 15px;
    }

    .step-content {
        padding: 1.25rem;
    }

    .step-navigation {
        padding: 1rem;
    }

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

    .admin-content {
        padding: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-gold { color: var(--accent-gold) !important; }
.text-green { color: var(--primary-green) !important; }
.bg-green-light { background: #E8F5E9 !important; }
.bg-gold-light { background: #FFF8E1 !important; }

.card-hover {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary-green);
}

/* Notification dropdown */
.notification-dropdown {
    width: 360px;
    max-height: 420px;
    overflow-y: auto;
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #F0F0F0;
    transition: background var(--transition-base);
    display: block;
    color: var(--text-dark);
}

.notification-item:hover {
    background: #F5F5F5;
    color: var(--text-dark);
}

.notification-item.unread {
    background: #F1F8E9;
    border-left: 3px solid var(--primary-green);
}

/* Activity feed */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #F0F0F0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    font-size: 0.85rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Filters bar */
.filters-bar {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
}

.filters-bar .form-group {
    flex: 1;
    min-width: 150px;
}

.filters-bar label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filters-bar .form-control,
.filters-bar .form-select {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h5 {
    color: var(--text-dark);
}

/* Couple portal */
.couple-portal {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.couple-portal-card {
    max-width: 600px;
    margin: 2rem auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Detail sections */
.detail-section {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    margin-bottom: 1rem;
    overflow: hidden;
}

.detail-section .section-header {
    background: #F8FAFB;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-green);
}

.detail-section .section-body {
    padding: 1.25rem;
}

.detail-row {
    display: flex;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid #F5F5F5;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .detail-label {
    width: 180px;
    flex-shrink: 0;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-row .detail-value {
    flex: 1;
    font-weight: 500;
}

/* Settings tabs */
.settings-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    border: none;
    padding: 0.75rem 1.25rem;
}

.settings-tabs .nav-link.active {
    color: var(--primary-green);
    border-bottom: 2px solid var(--primary-green);
    background: none;
}

/* ============================================
   MODALS - Refined
   ============================================ */

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* ============================================
   PAGINATION - Refined
   ============================================ */

.pagination .page-item .page-link {
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    margin: 0 2px;
    border-radius: var(--radius-sm) !important;
    transition: all var(--transition-fast);
}

.pagination .page-item .page-link:hover {
    background: #F0F9F0;
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.pagination .page-item.active .page-link {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #CCC;
    background: #FAFAFA;
}

/* ============================================
   WELCOME BANNER
   ============================================ */

.welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 40%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.welcome-banner h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    letter-spacing: -0.01em;
}

.welcome-banner p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.85rem;
}

.welcome-banner .btn {
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }
}

/* ============================================
   DATE BADGE (Ceremony List)
   ============================================ */

.date-badge {
    width: 50px;
    height: 54px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.date-badge-day {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.date-badge-month {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   STATUS DOTS (Recent Bookings)
   ============================================ */

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

.status-dot-blue   { background: #1565C0; box-shadow: 0 0 0 3px rgba(21,101,192,0.15); }
.status-dot-green  { background: var(--primary-green); box-shadow: 0 0 0 3px rgba(27,94,32,0.15); }
.status-dot-purple { background: #6A1B9A; box-shadow: 0 0 0 3px rgba(106,27,154,0.15); }
.status-dot-red    { background: #C62828; box-shadow: 0 0 0 3px rgba(198,40,40,0.15); }
.status-dot-grey   { background: #9E9E9E; box-shadow: 0 0 0 3px rgba(158,158,158,0.15); }

/* ============================================
   DATA-CARD LIST ITEMS — Hover & Spacing
   ============================================ */

.ceremony-list-item,
.booking-list-item {
    transition: background var(--transition-fast);
    color: var(--text-dark);
}

.ceremony-list-item:hover,
.booking-list-item:hover {
    background: #F0F9F0;
    color: var(--text-dark);
}

.data-card .list-group-item {
    transition: background var(--transition-fast);
    border-left: 3px solid transparent;
}

.data-card .list-group-item:hover {
    background: #F0F9F0;
    border-left-color: var(--primary-green);
}

/* ============================================
   PAGE HEADER ICON STYLING
   ============================================ */

.page-header h1 i {
    color: var(--primary-green);
    opacity: 0.7;
}

/* ============================================
   ADMIN FOOTER
   ============================================ */

.admin-footer {
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    background: #FAFBFC;
}

/* ============================================
   HORIZONTAL STAT CARD ADJUSTMENTS
   ============================================ */

.stat-card .d-flex .stat-icon {
    margin-bottom: 0;
}

/* ============================================
   GLOBAL SEARCH
   ============================================ */

.global-search-wrapper {
    flex: 1;
    max-width: 360px;
    margin: 0 1rem;
}

.global-search {
    position: relative;
}

.global-search > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.global-search input {
    width: 100%;
    padding: 0.45rem 0.75rem 0.45rem 2.2rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    background: var(--bg-light);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.global-search input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
    background: #fff;
}

.global-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    max-height: 400px;
    overflow-y: auto;
}

.global-search-results .search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #F0F0F0;
    text-decoration: none;
    color: var(--text-dark);
    transition: background var(--transition-fast);
}

.global-search-results .search-item:last-child {
    border-bottom: none;
}

.global-search-results .search-item:hover {
    background: #F0F9F0;
}

.search-item-main {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.search-item-main strong {
    font-size: 0.85rem;
}

.search-item-main small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.search-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.search-item-meta small {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.search-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 767px) {
    .global-search-wrapper {
        display: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .admin-sidebar, .admin-topbar, .no-print {
        display: none !important;
    }

    .admin-main {
        margin-left: 0 !important;
    }

    .certificate-preview {
        box-shadow: none;
        border: 1px solid #000;
    }
}
