/* assets/css/style.css */
/* Premium Islamic Dark Mode Theme for Sirah Nabawiyah */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Monsieur+La+Doulaise&family=Alex+Brush&family=Pinyon+Script&family=Great+Vibes&display=swap');

:root {
    --bg-main: #071A17;
    --bg-card: #102824;
    --green-islamic: #176B4D;
    --green-light: #2FA36B;
    --gold: #D8B45A;
    --white: #F5F5F0;
    --text-sec: #AAB7B1;
    --red-status: #C94C4C;
    --shadow: rgba(0, 0, 0, 0.4);
    --border-color: rgba(216, 180, 90, 0.15); /* Subtle gold border */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-main);
    color: var(--white);
    font-family: 'Poppins', 'Inter', sans-serif;
    margin: 0;
    padding-bottom: 75px; /* Space for bottom navigation on mobile */
    min-height: 100vh;
    background-image: radial-gradient(circle at 50% 10%, rgba(23, 107, 77, 0.15) 0%, transparent 60%);
}

.amiri {
    font-family: 'Amiri', serif;
}

.font-signature {
    font-family: 'Monsieur La Doulaise', 'Alex Brush', 'Pinyon Script', 'Great Vibes', cursive;
    font-weight: 400;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--green-islamic);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--green-light);
}

/* Typography & Links */
a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--green-light);
    text-shadow: 0 0 8px rgba(47, 163, 107, 0.4);
}

/* Glassmorphism & Islamic Panels */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(216, 180, 90, 0.3);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(23, 107, 77, 0.1);
}

/* Glow Elements */
.gold-glow {
    text-shadow: 0 0 10px rgba(216, 180, 90, 0.5);
}
.green-glow {
    text-shadow: 0 0 10px rgba(47, 163, 107, 0.5);
}

/* Bottom Navigation (Mobile First) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(16, 40, 36, 0.95);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1050;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-sec);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px 12px;
}

.bottom-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
    transition: var(--transition);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--gold);
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(218, 180, 90, 0.4);
}

/* Premium Player */
.premium-player {
    padding: 20px;
    border-radius: 16px;
    background: rgba(16, 40, 36, 0.85);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.time-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #173b35;
    outline: none;
    margin: 8px 0;
}

.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(216, 180, 90, 0.6);
    transition: var(--transition);
}

.time-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Form Controls */
.form-control-custom {
    background: rgba(7, 26, 23, 0.6);
    border: 1px solid var(--border-color);
    color: var(--white);
    border-radius: 10px;
    padding: 12px 16px;
    transition: var(--transition);
}

.form-control-custom:focus {
    background: rgba(16, 40, 36, 0.8);
    border-color: var(--gold);
    color: var(--white);
    box-shadow: 0 0 10px rgba(216, 180, 90, 0.2);
    outline: none;
}

.form-control-custom::placeholder {
    color: var(--text-sec);
    opacity: 0.6;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #b8923a 100%);
    color: #071A17;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    transition: var(--transition);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #b8923a 0%, var(--gold) 100%);
    color: #071A17;
    box-shadow: 0 4px 15px rgba(216, 180, 90, 0.3);
    transform: translateY(-1px);
}

.btn-green {
    background: linear-gradient(135deg, var(--green-islamic) 0%, #0f4b36 100%);
    color: var(--white);
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    transition: var(--transition);
}

.btn-green:hover {
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green-islamic) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(47, 163, 107, 0.3);
    transform: translateY(-1px);
}

/* Progres Grid 22 Box */
.info-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    max-width: 380px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}

.info-box {
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.info-box:hover {
    transform: scale(1.05);
}

.info-box.completed {
    background-color: rgba(47, 163, 107, 0.15);
    border-color: var(--green-light);
    color: #2FA36B;
    box-shadow: 0 0 10px rgba(47, 163, 107, 0.2);
}

.info-box.pending {
    background-color: rgba(201, 76, 76, 0.15);
    border-color: var(--red-status);
    color: #C94C4C;
    box-shadow: 0 0 10px rgba(201, 76, 76, 0.2);
}

.info-box i {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

/* Auth Cards */
.auth-card {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow);
}

/* WYSIWYG Note Editor */
.wysiwyg-editor {
    min-height: 150px;
    background: rgba(7, 26, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    color: var(--white);
    outline: none;
    transition: var(--transition);
}

.wysiwyg-editor:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(216, 180, 90, 0.2);
}

/* Custom Table in Dark Mode */
.table-custom {
    color: var(--white);
}

.table-custom th {
    background-color: rgba(23, 107, 77, 0.2);
    color: var(--gold);
    border-bottom: 2px solid var(--border-color);
}

.table-custom td {
    background-color: transparent;
    border-bottom: 1px solid rgba(216, 180, 90, 0.1);
    vertical-align: middle;
    color: var(--white) !important;
}

/* Spinner Loading */
.loading-spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.text-teal {
    color: var(--green-light);
}

/* Alert styling */
.alert-custom-success {
    background: rgba(47, 163, 107, 0.15);
    border: 1px solid var(--green-light);
    color: var(--white);
    border-radius: 10px;
}

.alert-custom-error {
    background: rgba(201, 76, 76, 0.15);
    border: 1px solid var(--red-status);
    color: var(--white);
    border-radius: 10px;
}

/* Admin Sidebar or Navbar */
.admin-navbar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

/* Toast container */
.toast-container-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}
