/**
 * NikahSyar'i - Main Stylesheet
 * Color Palette: Emerald Green #1B5E20, Gold #D4AF37
 */

/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary: #1B5E20;
    --primary-light: #2E7D32;
    --primary-dark: #0D3B11;
    --primary-50: rgba(27,94,32,0.05);
    --primary-100: rgba(27,94,32,0.1);
    --primary-200: rgba(27,94,32,0.2);
    --gold: #D4AF37;
    --gold-light: #E8C84A;
    --gold-dark: #B8941F;
    --success: #2E7D32;
    --danger: #C62828;
    --warning: #F57F17;
    --info: #0277BD;
    --dark: #1A1A2E;
    --dark-2: #16213E;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F0;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --white: #FFFFFF;
    --font: 'Poppins', sans-serif;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 25px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 270px;
    --topbar-height: 64px;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: linear-gradient(-45deg, #fdfbfb, #f0f7f4, #fdfbfb, #fdf3e8);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    line-height: 1.5;
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== TYPOGRAPHY ==================== */
h1 { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; }
h5 { font-size: 0.85rem; font-weight: 600; }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    color: var(--primary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}
.section-header p {
    color: var(--gray-600);
    font-size: 1.05rem;
    margin-top: 15px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
    line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }

.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--dark); }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); }

.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-outline-white { background: transparent; border: 1.5px solid var(--white); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }

.btn-danger { background: var(--danger); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-warning { background: var(--warning); color: var(--dark); }
.btn-secondary { background: var(--gray-500); color: var(--white); }

.btn-xs { padding: 4px 10px; font-size: 0.75rem; gap: 4px; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; gap: 5px; }
.btn-lg { padding: 12px 24px; font-size: 0.95rem; }
.btn-block { display: flex; width: 100%; }

/* ==================== BADGES ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.badge-success { background: rgba(46,125,50,0.12); color: var(--success); }
.badge-danger { background: rgba(198,40,40,0.12); color: var(--danger); }
.badge-warning { background: rgba(245,127,23,0.12); color: var(--warning); }
.badge-info { background: rgba(2,119,189,0.12); color: var(--info); }
.badge-secondary { background: rgba(117,117,117,0.12); color: var(--gray-600); }
.badge-premium { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--dark); }

/* ==================== CARDS ==================== */
.card {
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(252,252,252,1) 100%);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(212,175,55,0.08); /* subtle gold outline */
    overflow: hidden;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 20px; }
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h3 { font-size: 1.1rem; color: var(--gray-800); }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); }

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.9rem;
}
.form-group label .required { color: var(--danger); }

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.88rem;
    color: var(--gray-800);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-100);
}
.form-control::placeholder { color: var(--gray-400); }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23757575' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

.input-group { position: relative; }
.input-group .form-control { padding-right: 48px; }
.input-group .input-icon,
.input-group .password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
}
.form-text { font-size: 0.8rem; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; }

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    padding: 10px 0;
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}
.navbar.scrolled .navbar-brand { color: var(--primary); }
.navbar-brand i { color: var(--gold); font-size: 1.6rem; }

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    padding: 8px 16px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.15); }
.navbar.scrolled .nav-link { color: var(--gray-700); }
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active { color: var(--primary); background: var(--primary-50); }

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}
.navbar.scrolled .navbar-toggle span { background: var(--gray-800); }

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><path d="M40 0L80 40L40 80L0 40Z" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 80px 80px;
    animation: patternMove 20s linear infinite;
}
@keyframes patternMove { to { background-position: 80px 80px; } }

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--gray-100), transparent);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-title .highlight {
    color: var(--gold);
    display: block;
}
.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 36px;
    font-weight: 300;
    line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 2rem; font-weight: 700; color: var(--gold); }
.hero-stat .label { font-size: 0.85rem; opacity: 0.8; margin-top: 4px; }

/* ==================== FEATURES SECTION ==================== */
.section { padding: 80px 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    color: var(--primary);
}
.feature-card h3 { margin-bottom: 12px; color: var(--gray-800); font-size: 1.2rem; }
.feature-card p { color: var(--gray-600); font-size: 0.95rem; }

/* ==================== HOW IT WORKS ==================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-200), var(--gold), var(--primary-200));
}
.step-card { text-align: center; position: relative; z-index: 1; }
.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(27,94,32,0.3);
}
.step-card h4 { margin-bottom: 8px; color: var(--gray-800); }
.step-card p { color: var(--gray-600); font-size: 0.9rem; }

/* ==================== TOPBAR (Dashboard) ==================== */
.topbar {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-height);
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 900;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}
.topbar-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}
.topbar-brand i { color: var(--gold); }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.topbar-icon {
    position: relative;
    font-size: 1.2rem;
    color: var(--gray-600);
}
.topbar-icon:hover { color: var(--primary); }
.badge-notif {
    position: absolute;
    top: -6px; right: -8px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 50px;
    font-weight: 600;
}
.topbar-avatar img {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-200);
}
.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--gray-700);
    cursor: pointer;
    padding: 8px;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    z-index: 1000;
    overflow-y: auto;
    transition: var(--transition);
}
.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}
.sidebar-brand i { color: var(--gold); font-size: 1.5rem; }
.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-profile {
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    margin-bottom: 12px;
}
.sidebar-name { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.sidebar-role {
    font-size: 0.8rem;
    opacity: 0.7;
    display: block;
    margin-bottom: 8px;
}

.sidebar-nav { padding: 12px 0; }
.nav-section {
    padding: 12px 24px 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.5;
    font-weight: 600;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 24px;
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-item:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}
.nav-item.active {
    color: var(--gold);
    background: rgba(255,255,255,0.1);
}
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    border-radius: 0 3px 3px 0;
}
.nav-item i { width: 20px; text-align: center; font-size: 1.05rem; }
.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
}
.nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 8px 20px;
}
.nav-logout:hover { color: #ff8a80; }

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}
.sidebar-overlay.show { display: block; opacity: 1; }

/* ==================== MAIN CONTENT (Dashboard) ==================== */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 24px;
    min-height: 100vh;
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}
.page-header h1 { font-size: 1.6rem; color: var(--gray-800); }
.page-header p { color: var(--gray-600); font-size: 0.95rem; margin-top: 4px; }

/* ==================== STATS CARDS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: var(--transition);
}

/* Base old classes (kept for backward compatibility elsewhere) */
.stat-icon.green { background: rgba(46,125,50,0.1); color: var(--success); }
.stat-icon.gold { background: rgba(212,175,55,0.1); color: var(--gold-dark); }
.stat-icon.blue { background: rgba(2,119,189,0.1); color: var(--info); }
.stat-icon.red { background: rgba(198,40,40,0.1); color: var(--danger); }

/* New Gradient Cards */
.stat-card-green { background: linear-gradient(135deg, #43a047 0%, #1b5e20 100%); color: var(--white); }
.stat-card-gold { background: linear-gradient(135deg, var(--gold) 0%, #9e8326 100%); color: var(--white); }
.stat-card-blue { background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%); color: var(--white); }
.stat-card-red { background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%); color: var(--white); }

.stat-card[class*="stat-card-"] .stat-info h3 { color: var(--white); }
.stat-card[class*="stat-card-"] .stat-info p { color: rgba(255,255,255,0.85); font-weight: 500; }
.stat-card[class*="stat-card-"] .stat-icon { 
    background: rgba(255,255,255,0.2); 
    color: var(--white); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}

.stat-info h3 { font-size: 1.5rem; font-weight: 700; color: var(--gray-800); line-height: 1.2; }
.stat-info p { font-size: 0.85rem; color: var(--gray-500); }

/* ==================== PROFILE CARD ==================== */
.profile-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}
.profile-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.profile-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.profile-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.profile-card:hover .profile-card-img img { transform: scale(1.05); }
.profile-card-badge {
    position: absolute;
    top: 12px; right: 12px;
}
.profile-card-body { padding: 20px; }
.profile-card-body h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--gray-800);
}
.profile-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--gray-600);
}
.profile-card-info span { display: flex; align-items: center; gap: 5px; }
.profile-card-info i { color: var(--primary); font-size: 0.8rem; }
.compatibility-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}
.compatibility-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 10px;
    transition: width 1s ease;
}
.compatibility-text {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}
.compatibility-text strong { color: var(--primary); }

/* ==================== PROGRESS BAR ==================== */
.progress-container { margin-bottom: 24px; }
.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.progress-header span:first-child { font-weight: 500; color: var(--gray-700); }
.progress-header span:last-child { font-weight: 600; color: var(--primary); }
.progress-bar {
    height: 10px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
}
.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 10px;
    transition: width 1.5s ease;
}

/* ==================== STEP INDICATOR (multi-step form) ==================== */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}
.step-indicator .step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: var(--gray-400);
    position: relative;
}
.step-indicator .step .step-num {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid var(--gray-300);
    background: var(--white);
    transition: var(--transition);
}
.step-indicator .step.active .step-num {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(27,94,32,0.3);
}
.step-indicator .step.completed .step-num {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}
.step-indicator .step.active .step-label,
.step-indicator .step.completed .step-label { color: var(--gray-800); }
.step-indicator .step-line {
    width: 40px;
    height: 2px;
    background: var(--gray-300);
    align-self: center;
}
.step-indicator .step.completed + .step-line { background: var(--gold); }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* ==================== TABLE ==================== */
.table-responsive { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
}
.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table tr:hover { background: var(--primary-50); }
.table .avatar-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.table .avatar-cell img {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==================== CAMERA CAPTURE ==================== */
.camera-container {
    text-align: center;
    padding: 30px;
}
.camera-preview {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius);
    background: var(--gray-800);
    margin: 0 auto 20px;
}
.camera-preview video,
.camera-preview canvas {
    width: 100%;
    border-radius: var(--radius);
    display: block;
}
.camera-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.captured-photo {
    max-width: 300px;
    border-radius: var(--radius);
    border: 3px solid var(--gold);
    margin: 16px auto;
}

/* ==================== MAP ==================== */
.map-container {
    height: 350px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--gray-200);
    margin-bottom: 16px;
}
.map-container #map { height: 100%; width: 100%; }

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}
.footer-wave {
    color: var(--dark);
    margin-bottom: -5px;
}
.footer-wave svg { display: block; width: 100%; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}
.footer-brand i { color: var(--gold); font-size: 1.6rem; }
.footer-desc { font-size: 0.9rem; line-height: 1.7; opacity: 0.8; }
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }

.footer-title {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--gold);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links a i { font-size: 0.65rem; color: var(--gold); }
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}
.footer-contact i { color: var(--gold); margin-top: 3px; width: 16px; }

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}
.footer-ayat {
    margin-top: 12px;
    font-size: 0.85rem;
    opacity: 0.6;
    line-height: 1.6;
}

/* ==================== BOTTOM NAVIGATION (Mobile) ==================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.08);
    z-index: 900;
    justify-content: space-around;
    padding: 8px 0 12px;
    border-top: 1px solid var(--gray-200);
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    color: var(--gray-500);
    padding: 4px 12px;
    position: relative;
}
.bottom-nav-item i { font-size: 1.2rem; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active i { color: var(--primary); }
.bottom-nav-badge {
    position: absolute;
    top: -2px; right: 4px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 50px;
    font-weight: 600;
}

/* ==================== AUTH PAGES ==================== */
.auth-page .footer { display: none; }
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 40px 20px;
    position: relative;
}
.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M30 0L60 30L30 60L0 30Z" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    background-size: 60px 60px;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 460px;
    padding: 40px;
    position: relative;
    z-index: 1;
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header .auth-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.auth-header .auth-logo i { color: var(--gold); font-size: 1.8rem; }
.auth-header h2 { font-size: 1.4rem; margin-bottom: 6px; color: var(--gray-800); }
.auth-header p { color: var(--gray-500); font-size: 0.9rem; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--gray-500); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--gray-400);
    font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* ==================== ANIMATIONS ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--gray-500); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.d-flex { display: flex; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}
.empty-state i { font-size: 4rem; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { font-size: 0.95rem; margin-bottom: 24px; }

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.pagination a {
    background: var(--white);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}
.pagination a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination .active {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 1200px) {
    .container { max-width: 960px; }
    .hero-title { font-size: 2.8rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
    .container { max-width: 720px; }
    .navbar-menu { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 10px;
        align-items: flex-start;
        border-top: 1px solid var(--gray-200);
    }
    .navbar-menu.show { display: flex; animation: fadeIn 0.3s ease; }
    .navbar-menu .nav-link { color: var(--gray-800); width: 100%; padding: 10px 16px; }
    .navbar-menu .nav-link:hover, .navbar-menu .nav-link.active { color: var(--primary); background: var(--primary-50); }
    .navbar-menu .btn { width: 100%; justify-content: center; margin-top: 5px; }
    .navbar-toggle { display: flex; }
    .navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .navbar-toggle.active span:nth-child(2) { opacity: 0; }
    .navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .hero-title { font-size: 2.4rem; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid::before { display: none; }
    
    /* Admin/Dashboard Responsive */
    .sidebar { transform: translateX(-100%); width: 280px; box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close { display: block; }
    .sidebar-header { justify-content: space-between; }
    .main-content { margin-left: 0; padding: 80px 16px 30px; }
    .topbar { display: flex; left: 0; }
}

@media (max-width: 768px) {
    .container { max-width: 540px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 24px; line-height: 1.5; }
    .hero-stats { gap: 20px; flex-wrap: wrap; margin-top: 40px; padding-top: 30px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.5rem; margin-bottom: 12px; }
    .hero-subtitle { font-size: 0.85rem; margin-bottom: 20px; }
    .hero-buttons { gap: 10px; }
    .hero-buttons .btn { width: 100%; }
    .features-grid, .steps-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 12px 8px; gap: 8px; flex-direction: column; text-align: center; justify-content: center; }
    .stat-icon { width: 36px; height: 36px; font-size: 1.1rem; }
    .stat-info h3 { font-size: 1.2rem; margin-bottom: 2px; }
    .stat-info p { font-size: 0.75rem; }
    .page-header h1 { font-size: 1.3rem; }
    .card-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .bottom-nav { display: flex; }
    .main-content { padding-bottom: 80px; }
}

/* Fix for topbar in admin */
.admin-body .topbar {
    display: flex;
    left: var(--sidebar-width);
}
@media (max-width: 992px) {
    .admin-body .topbar { left: 0; }
}

/* Animations for Admin Sidebar */
.sidebar { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar-overlay { 
    pointer-events: none; 
    visibility: hidden; 
    transition: opacity 0.3s;
}
.sidebar-overlay.show { 
    pointer-events: auto; 
    visibility: visible; 
    opacity: 1; 
}
