/*
Theme Name: Kemenhaj Banyumas Theme
Theme URI: https://kemenhajbanyumas.com
Author: Tim IT Kemenhaj
Author URI: https://kemenhajbanyumas.com
Description: Tema kustom Sistem Informasi Layanan Haji & Umrah Kemenhaj Banyumas.
Version: 1.0.0
*/

:root {
    --bg-dark: #0d1117;
    --card-bg: rgba(22, 27, 34, 0.88);
    --gold-primary: #d4af37;
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7);
    --text-light: #f0f6fc;
    --text-muted: #8b949e;
    --border-gold: rgba(212, 175, 55, 0.35);
    --border-glow: 0 0 15px rgba(212, 175, 55, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    background-image: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12) 0%, transparent 75%);
}

/* SCREEN LAYOUTS */
.screen-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* LOGIN CARD */
.login-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    box-shadow: var(--border-glow);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.app-logo {
    width: 90px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.brand-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.brand-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.alert-danger {
    background: rgba(248, 81, 73, 0.15);
    border: 1px solid #f85149;
    color: #f85149;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 18px;
    text-align: left;
}

.form-group {
    text-align: left;
    margin-bottom: 18px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--gold-primary);
    display: block;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
}

.form-actions {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
}

.forgot-password:hover {
    color: var(--gold-primary);
}

.btn-gold {
    width: 100%;
    padding: 12px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-gold:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* NAVBAR & DASHBOARD */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(13, 17, 23, 0.95);
    border-bottom: 1px solid var(--border-gold);
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand img { height: 40px; }
.nav-brand span { font-weight: 700; color: var(--gold-primary); font-size: 1.1rem; }

.user-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-gold);
}

.avatar-sm { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold-primary); }
.user-info-text { display: flex; flex-direction: column; }
.user-name { font-size: 0.85rem; font-weight: 600; }
.user-role { font-size: 0.7rem; color: var(--gold-primary); }

.dashboard-container {
    padding: 30px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-banner {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-left: 5px solid var(--gold-primary);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.welcome-text h2 span { color: var(--gold-primary); }
.welcome-text p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.user-status-badge { background: rgba(46, 160, 67, 0.2); color: #3fb950; border: 1px solid #2ea043; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }

/* FEATURE GRID */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--border-glow);
    border-color: var(--gold-primary);
}

.icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.8rem; color: var(--text-muted); }

/* MODAL PROFIL */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    padding: 24px;
}

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--border-gold); padding-bottom: 10px; }
.modal-header h3 { color: var(--gold-primary); }
.close-modal { font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }

.photo-upload-container { text-align: center; margin-bottom: 20px; }
#profile-preview { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-primary); }

.profile-details { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.detail-item { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 6px; }
.detail-item strong { color: var(--gold-primary); }

.modal-footer { margin-top: 20px; text-align: right; }
.btn-danger { display: inline-block; background: rgba(248, 81, 73, 0.15); border: 1px solid #f85149; color: #f85149; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.85rem; }
.btn-danger:hover { background: #f85149; color: #fff; }

@media (max-width: 600px) {
    .welcome-banner { flex-direction: column; text-align: center; gap: 12px; }
}