/* ========== Divine Hindu palette ========== */
:root {
    /* Sacred saffron (agni, purity) */
    --primary: #FF9933;
    --primary-light: #FFB366;
    --primary-dark: #E07800;
    /* Auspicious gold (Lakshmi, prosperity) */
    --accent: #FFD700;
    --accent-soft: #F0D878;
    /* Sacred red / maroon (temple, kumkum) */
    --sacred-red: #8B2500;
    --maroon: #722F37;
    --sindoor: #B22222;
    /* Earth / wood (sanctum) */
    --secondary: #5C4033;
    --wood-dark: #3E2723;
    /* Purity (cream, white) */
    --bg-light: #FFF8E7;
    --bg-cream: #FFFAF0;
    --text-dark: #2c1810;
    --text-light: #ffffff;
    --success: #2E7D32;
    --danger: #C62828;
    --card-shadow: 0 4px 20px rgba(139, 37, 0, 0.08);
    --divine-glow: 0 0 24px rgba(255, 215, 0, 0.15);
    --font-sans: 'Outfit', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-heading: var(--font-display);
    --color-primary: var(--primary);
    --color-accent: var(--accent);
    --color-success: var(--success);
    --color-text-light: rgba(255, 255, 255, 0.85);
    --color-border: rgba(139, 37, 0, 0.12);
    --sidebar-width: 260px;
    /* Divine gradients */
    --gradient-sacred: linear-gradient(135deg, var(--sacred-red) 0%, var(--maroon) 50%, var(--wood-dark) 100%);
    --gradient-saffron-gold: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-temple: linear-gradient(180deg, #1a0f0a 0%, #2c1810 40%, #1a0f0a 100%);
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 24px rgba(255, 215, 0, 0.35);
    }
}

@keyframes divineGlow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.08);
    }
}

@keyframes lotusFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-6px) rotate(1deg);
    }

    66% {
        transform: translateY(-3px) rotate(-1deg);
    }
}

@keyframes flameFlicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.92;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(255, 153, 51, 0.4);
    }

    50% {
        border-color: rgba(255, 215, 0, 0.6);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.7s ease-out forwards;
    opacity: 0;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
}

.animate-delay-1 {
    animation-delay: 0.12s;
}

.animate-delay-2 {
    animation-delay: 0.24s;
}

.animate-delay-3 {
    animation-delay: 0.36s;
}

.animate-delay-4 {
    animation-delay: 0.48s;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-lotus {
    animation: lotusFloat 5s ease-in-out infinite;
}

.animate-glow-pulse {
    animation: glowPulse 2.5s ease-in-out infinite;
}

.animate-divine-glow {
    animation: divineGlow 3s ease-in-out infinite;
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* Staggered children: add to parent */
.stagger-children>* {
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
}

.stagger-children>*:nth-child(1) {
    animation-delay: 0.05s;
}

.stagger-children>*:nth-child(2) {
    animation-delay: 0.12s;
}

.stagger-children>*:nth-child(3) {
    animation-delay: 0.19s;
}

.stagger-children>*:nth-child(4) {
    animation-delay: 0.26s;
}

.stagger-children>*:nth-child(5) {
    animation-delay: 0.33s;
}

.stagger-children>*:nth-child(6) {
    animation-delay: 0.4s;
}

.stagger-children>*:nth-child(7) {
    animation-delay: 0.47s;
}

.stagger-children>*:nth-child(8) {
    animation-delay: 0.54s;
}

.stagger-children>*:nth-child(9) {
    animation-delay: 0.61s;
}

.stagger-children>*:nth-child(10) {
    animation-delay: 0.68s;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header (divine gradient) */
header {
    background: var(--gradient-sacred);
    color: var(--text-light);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

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

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section img {
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.logo-text h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Profile dropdown (top right) */
.profile-dropdown {
    position: relative;
    margin-left: 20px;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--accent);
}

.profile-icon {
    font-size: 1.2rem;
}

.profile-chevron {
    font-size: 0.6rem;
    opacity: 0.9;
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 160px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 6px 0;
    z-index: 1000;
}

.profile-menu[hidden] {
    display: none;
}

.profile-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    text-decoration: none;
    margin: 0;
    font-weight: 500;
}

.profile-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
}

.profile-logout-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    border: none;
    background: none;
    color: var(--danger);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.profile-logout-btn:hover {
    background: #f8d7da;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Forms */
.auth-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    max-width: 400px;
    margin: 3rem auto;
    border-top: 5px solid var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    height: fit-content;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    display: block;
    padding: 10px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: var(--bg-light);
    color: var(--primary-dark);
    font-weight: bold;
}

.main-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

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

.stat-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-dark);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: var(--gradient-sacred);
    color: var(--accent);
    font-weight: 600;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-danger {
    color: var(--danger);
}

.alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========== App layout (after login) — divine theme ========== */
body.app-layout {
    font-family: var(--font-sans);
    background: var(--gradient-temple);
    min-height: 100vh;
    color: var(--text-dark);
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(26, 15, 10, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 153, 51, 0.15);
    transition: left 0.3s ease, box-shadow 0.3s ease;
}

.app-header .header-toggle {
    display: none;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.2s;
}

.app-header .header-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.app-header .header-logo {
    flex: 1;
}

.app-header .header-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.app-header .user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-header .user-menu .btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.2s, border-color 0.2s, color 0.2s;
}

.app-header .user-menu .btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.app-header .user-menu .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-header .user-menu .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 153, 51, 0.4);
}

.app-header .profile-dropdown {
    margin-left: 0;
}

.app-header .profile-trigger-app {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.app-header .profile-trigger-app:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.app-header .profile-menu {
    background: rgba(20, 18, 16, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-header .profile-menu a,
.app-header .profile-logout-btn {
    color: rgba(255, 255, 255, 0.9);
}

.app-header .profile-menu a:hover,
.app-header .profile-logout-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    z-index: 150;
    background: rgba(26, 15, 10, 0.97);
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 153, 51, 0.12);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-sidebar .sidebar-logo {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    border-bottom: 1px solid rgba(255, 153, 51, 0.12);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.app-sidebar .sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
    overflow-y: auto;
}

.app-sidebar .sidebar-nav li {
    margin: 0;
}

.app-sidebar .sidebar-section-title {
    padding: 1rem 1.5rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 215, 0, 0.5);
    text-transform: uppercase;
}

.app-sidebar .sidebar-nav a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.25s, color 0.25s, padding-left 0.25s, box-shadow 0.25s;
}

.app-sidebar .sidebar-nav a:hover {
    background: rgba(255, 153, 51, 0.08);
    color: var(--accent);
    padding-left: 1.75rem;
}

.app-sidebar .sidebar-nav a.active {
    background: rgba(255, 153, 51, 0.18);
    color: var(--accent);
    border-left: 3px solid var(--primary);
    padding-left: calc(1.5rem - 3px);
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.06);
}

.app-main {
    min-height: 100vh;
    padding: 4rem 1.5rem 2rem;
    transition: margin-left 0.3s ease;
    color: rgba(255, 248, 231, 0.9);
}

body.app-layout .app-main {
    margin-left: var(--sidebar-width);
}

body.app-layout .app-header {
    left: var(--sidebar-width);
}

/* Hide duplicate sidebar when it's inside main content (views include their own) */
.app-main .app-sidebar {
    display: none !important;
}

.app-main .dashboard-grid {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure all text is visible when content is not inside .main-content (e.g. admin/events) */
.app-main h2,
.app-main h3,
.app-main h4 {
    color: var(--accent-soft);
    font-family: var(--font-display);
}

.app-main h2 {
    font-size: 1.75rem;
    margin: 0 0 1rem;
}

.app-main .dashboard-user-label {
    color: rgba(255, 248, 231, 0.85);
    font-size: 1rem;
    margin: -0.5rem 0 1rem;
    font-weight: 500;
}

.app-main h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
}

.app-main h4 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.app-main label,
.app-main .form-group label {
    color: rgba(255, 248, 231, 0.9);
}

.app-main strong {
    color: rgba(255, 248, 231, 0.95);
}

.app-main .main-content {
    background: rgba(255, 248, 231, 0.04);
    border: 1px solid rgba(255, 153, 51, 0.12);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 215, 0, 0.03);
    animation: slideUp 0.5s ease-out;
}

.app-main .main-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin: 0 0 1.5rem;
    color: var(--accent-soft);
}

.app-main .main-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 1rem;
    color: rgba(255, 248, 231, 0.95);
}

.app-main .main-content p {
    color: rgba(255, 248, 231, 0.75);
}

.app-main .fade-in {
    animation: fadeIn 0.4s ease-out;
}

.app-main .alert {
    border-radius: 12px;
    animation: slideUp 0.4s ease-out;
}

.app-main footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

@media (max-width: 900px) {
    .app-header .header-toggle {
        display: block;
    }

    body.app-layout .app-sidebar {
        transform: translateX(-100%);
    }

    body.app-layout .app-sidebar.active {
        transform: translateX(0);
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.4);
    }

    body.app-layout .app-header {
        left: 0;
    }

    body.app-layout .app-main {
        margin-left: 0;
    }
}

/* App layout cards & stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.app-main .card {
    background: rgba(255, 248, 231, 0.05);
    border: 1px solid rgba(255, 153, 51, 0.12);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
    animation: slideUp 0.5s ease-out forwards;
}

.app-main .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 215, 0, 0.06);
    border-color: rgba(255, 153, 51, 0.2);
}

.app-main .stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.app-main .stat-card .stat-icon {
    font-size: 2rem;
}

.app-main .stat-card .stat-info h3 {
    font-size: 0.9rem;
    margin: 0 0 0.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.app-main .stat-card .stat-info p {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.app-main .stat-card.primary {
    border-left: 4px solid var(--primary);
}

.app-main .stat-card.secondary {
    border-left: 4px solid var(--sacred-red);
}

.app-main .stat-card.accent {
    border-left: 4px solid var(--accent);
}

.app-main .table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.app-main table {
    margin: 0;
}

.app-main th,
.app-main td {
    padding: 0.85rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-main th {
    background: linear-gradient(135deg, rgba(139, 37, 0, 0.4), rgba(114, 47, 55, 0.3));
    color: var(--accent-soft);
    font-weight: 600;
    font-size: 0.9rem;
}

.app-main tbody tr {
    transition: background 0.2s;
}

.app-main tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.app-main .btn {
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-main .btn:hover {
    transform: translateY(-1px);
}

.app-main .btn-primary {
    background: var(--gradient-saffron-gold);
    color: var(--wood-dark);
    box-shadow: 0 4px 14px rgba(255, 153, 51, 0.3);
}

.app-main .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

.app-main .form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 153, 51, 0.25);
    color: var(--bg-light);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.app-main .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.15);
}

.app-main .form-control::placeholder {
    color: rgba(255, 248, 231, 0.45);
}

.app-main textarea.form-control {
    color: var(--bg-light);
    min-height: 80px;
}

/* All dropdowns/selects in app: dark background, light text */
.app-main select.form-control,
.app-main select,
.app-main .form-control[type="text"]+select,
.app-main .select-control {
    background: rgba(0, 0, 0, 0.4);
    background-color: #2c1810;
    color: var(--bg-light);
    border: 1px solid rgba(255, 153, 51, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: menulist;
}

.app-main select.form-control option,
.app-main select option {
    background: #2c1810;
    color: #FFF8E7;
}

.app-main select.form-control:focus,
.app-main select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.15);
}

.app-main a:not(.btn) {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.app-main a:not(.btn):hover {
    color: var(--primary);
}

.app-main .btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, color 0.2s;
}

.app-main .btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* View Ticket & action buttons */
.app-main .booking-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.app-main .booking-action-form {
    display: inline;
}

.app-main .btn-ticket {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.2), rgba(255, 215, 0, 0.12));
    color: var(--accent);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.app-main .btn-ticket:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.25);
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.35), rgba(255, 215, 0, 0.2));
    color: var(--accent-soft);
}

.app-main .btn-danger-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(198, 40, 40, 0.5);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(198, 40, 40, 0.35) 0%, rgba(183, 28, 28, 0.25) 100%);
    color: #ffcdd2;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.app-main .btn-danger-sm:hover {
    background: linear-gradient(180deg, rgba(198, 40, 40, 0.5) 0%, rgba(183, 28, 28, 0.4) 100%);
    border-color: rgba(198, 40, 40, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
    color: #fff;
}

.app-main .btn-danger-sm::before {
    content: '🗑';
    font-size: 0.95em;
}

.app-main .booking-action-form {
    display: inline-block;
}

/* Status badges in tables */
.app-main .status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.app-main .status-badge.status-confirmed {
    background: rgba(46, 125, 50, 0.25);
    color: #a5d6a7;
}

.app-main .status-badge.status-attended {
    background: rgba(33, 150, 243, 0.25);
    color: #90caf9;
}

.app-main .status-badge.status-cancelled {
    background: rgba(198, 40, 40, 0.2);
    color: #ef9a9a;
}

.app-main .status-badge.status-booked {
    background: rgba(255, 153, 51, 0.2);
    color: var(--accent-soft);
}

.app-main .text-muted {
    color: rgba(255, 248, 231, 0.45);
}

/* ========== Filter bar (admin bookings) ========== */
.app-main .filter-bar {
    background: rgba(255, 248, 231, 0.06);
    border: 1px solid rgba(255, 153, 51, 0.18);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.app-main .filter-bar form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.app-main .filter-bar .form-group {
    margin-bottom: 0;
    min-width: 140px;
}

.app-main .filter-bar label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 248, 231, 0.85);
    margin-bottom: 0.35rem;
}

.app-main .filter-bar .form-control {
    min-height: 42px;
    border-radius: 10px;
}

.app-main .filter-bar .btn-primary {
    padding: 0.5rem 1.25rem;
    min-height: 42px;
}

.app-main .filter-bar .btn-reset {
    padding: 0.5rem 1rem;
    min-height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 248, 231, 0.9);
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: border-color 0.2s, background 0.2s;
}

.app-main .filter-bar .btn-reset:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 153, 51, 0.4);
}

/* ========== Book event form ========== */
.app-main .booking-event-card {
    max-width: 560px;
    background: rgba(255, 248, 231, 0.05);
    border: 1px solid rgba(255, 153, 51, 0.15);
    border-radius: 16px;
    padding: 1.75rem;
}

.app-main .booking-event-info {
    padding: 1rem 0;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 153, 51, 0.12);
}

.app-main .booking-event-info p {
    margin: 0 0 0.5rem;
    color: rgba(255, 248, 231, 0.85);
}

.app-main .booking-event-info strong {
    color: var(--accent-soft);
}

.app-main .booking-option-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.app-main .booking-option-row label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: rgba(255, 248, 231, 0.9);
    font-weight: 500;
}

.app-main .booking-option-row input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
}

.app-main .guest-details-box {
    display: none;
    background: rgba(255, 153, 51, 0.06);
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.app-main .guest-details-box h5 {
    margin: 0 0 1rem;
    color: var(--accent-soft);
    font-size: 1rem;
}

/* ========== Sarva booking: members dropdown & member fields ========== */
.app-main .member-count-wrap {
    margin-bottom: 1.25rem;
}

.app-main .member-count-wrap label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: rgba(255, 248, 231, 0.9);
}

.app-main .member-count-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 153, 51, 0.25);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23FFD700' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.app-main .member-count-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2);
}

.app-main .member-fieldset {
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 248, 231, 0.03);
}

.app-main .member-fieldset legend {
    color: var(--primary);
    font-weight: 600;
    padding: 0 0.5rem;
    font-size: 0.95rem;
}

.app-main .booking-form-container #no-date-msg {
    color: rgba(255, 248, 231, 0.5);
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.app-main .booking-subtitle {
    color: rgba(255, 248, 231, 0.75);
    margin-bottom: 1.5rem;
}

.app-main .btn-block {
    width: 100%;
    margin-top: 1rem;
}

.app-content-wrap.stagger-children>.dashboard-grid {
    animation: slideUp 0.5s ease-out forwards;
}

.app-content-wrap.stagger-children>.main-content {
    animation-delay: 0.08s;
}

/* Page-specific divine styling */
.app-main .date-card {
    cursor: pointer;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.app-main .date-card-day {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--accent-soft);
}

.app-main .date-card-name {
    font-size: 0.9rem;
    color: rgba(255, 248, 231, 0.6);
}

.app-main .date-card-slots {
    margin-top: 0.5rem;
    font-weight: bold;
}

.app-main .date-card-slots-avail {
    color: var(--success);
}

.app-main .date-card-slots-unavail {
    color: var(--danger);
}

.app-main .date-selection .dates-grid.stagger-children>* {
    animation: slideUp 0.4s ease-out forwards;
    opacity: 0;
}

.app-main .date-selection .dates-grid.stagger-children>*:nth-child(1) {
    animation-delay: 0.03s;
}

.app-main .date-selection .dates-grid.stagger-children>*:nth-child(2) {
    animation-delay: 0.06s;
}

.app-main .date-selection .dates-grid.stagger-children>*:nth-child(3) {
    animation-delay: 0.09s;
}

.app-main .date-selection .dates-grid.stagger-children>*:nth-child(n+4) {
    animation-delay: 0.12s;
}

.app-main .date-card.selected-date {
    border-color: var(--primary) !important;
    background: rgba(255, 153, 51, 0.12) !important;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.app-main .date-card-open:hover {
    border-color: rgba(255, 153, 51, 0.4) !important;
    box-shadow: 0 4px 16px rgba(255, 153, 51, 0.2);
    transform: translateY(-2px);
}

.app-main .date-card-open {
    border-color: rgba(255, 153, 51, 0.2) !important;
    background: rgba(255, 248, 231, 0.06) !important;
}

.app-main .date-card-full {
    background: rgba(139, 37, 0, 0.15) !important;
    border-color: rgba(139, 37, 0, 0.3) !important;
    cursor: not-allowed !important;
    opacity: 0.85;
}

.app-main .date-card-closed {
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.app-main .booking-form-container {
    padding: 2rem;
    border-radius: 14px;
    height: fit-content;
    position: sticky;
    top: 5rem;
}

.app-main .booking-form-container,
.app-main .booking-grid .card {
    background: rgba(255, 248, 231, 0.05) !important;
    border: 1px solid rgba(255, 153, 51, 0.15) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.app-main .slot-card {
    background: rgba(255, 248, 231, 0.04);
    border: 1px solid rgba(255, 153, 51, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.app-main .slot-card:hover {
    border-color: rgba(255, 153, 51, 0.2);
}

.app-main .alert-success {
    background: rgba(46, 125, 50, 0.2);
    border: 1px solid rgba(46, 125, 50, 0.3);
    color: #a5d6a7;
}

.app-main .alert-error {
    background: rgba(139, 37, 0, 0.2);
    border: 1px solid rgba(198, 40, 40, 0.3);
    color: #ef9a9a;
}

.app-main fieldset {
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.app-main legend {
    color: var(--primary);
    font-weight: 600;
}

.app-main h4 {
    color: var(--accent-soft);
}

.app-main .stats-grid.stagger-children>* {
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
}

/* ========== Profile page ========== */
.profile-page {
    max-width: 640px;
}

.profile-card {
    background: rgba(255, 248, 231, 0.05);
    border: 1px solid rgba(255, 153, 51, 0.15);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.25s, border-color 0.25s;
}

.profile-card:hover {
    border-color: rgba(255, 153, 51, 0.25);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.profile-intro {
    text-align: center;
    padding: 2rem;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient-saffron-gold);
    color: var(--wood-dark);
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.profile-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 0.25rem;
    color: var(--accent-soft);
}

.profile-email {
    margin: 0;
    color: rgba(255, 248, 231, 0.7);
    font-size: 0.95rem;
}

.profile-section-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: var(--accent-soft);
}

.profile-hint {
    font-size: 0.9rem;
    color: rgba(255, 248, 231, 0.6);
    margin: -0.5rem 0 1rem;
}

.profile-divider {
    border: none;
    border-top: 1px solid rgba(255, 153, 51, 0.15);
    margin: 1.5rem 0;
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .profile-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========== Password visibility toggle (global) ========== */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-control,
.password-wrapper .auth-input {
    padding-right: 2.75rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    color: rgba(255, 248, 231, 0.6);
    font-size: 1.1rem;
    transition: color 0.2s, background 0.2s;
}

.password-toggle:hover {
    color: var(--accent);
    background: rgba(255, 215, 0, 0.1);
}

.password-toggle .password-toggle-icon {
    user-select: none;
}

.auth-page .password-wrapper .auth-input {
    padding-right: 2.75rem;
}

/* ========== Guest layout (Home / Login / Register) — divine ========== */
.guest-layout {
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gradient-temple);
    color: var(--text-light);
}

.guest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 15, 10, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 153, 51, 0.15);
}

.guest-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 1.25rem;
}

.guest-logo-icon {
    font-size: 1.5rem;
    opacity: 0.95;
}

.guest-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guest-nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.guest-nav-link:hover {
    color: var(--accent);
}

.guest-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    border: none;
}

.guest-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(255, 153, 51, 0.35);
}

.guest-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.45);
}

.guest-btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
}

.guest-btn-ghost:hover {
    color: var(--accent);
}

.guest-main {
    flex: 1;
    padding-top: 60px;
}

.guest-alert {
    max-width: 480px;
    margin: 1rem auto;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.guest-alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #7dce9e;
}

.guest-alert-error {
    background: rgba(220, 53, 69, 0.2);
    color: #f5a0a8;
}

.guest-footer {
    text-align: center;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* ========== Landing hero ========== */
.landing-hero {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 3rem 2rem;
}

.landing-feature-logo {
    max-width: 80px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
}

.landing-hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(139, 37, 0, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        var(--gradient-temple);
}

.landing-hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
}

.landing-hero-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--sacred-red);
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.landing-hero-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    bottom: 10%;
    left: -80px;
    animation: lotusFloat 5s ease-in-out infinite 1s;
}

.landing-hero-shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 40%;
    left: 30%;
    animation: float 7s ease-in-out infinite 0.5s;
}

.landing-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
}

.landing-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.landing-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5rem;
    color: #fff;
}

.landing-title-accent {
    background: var(--gradient-saffron-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 2rem;
    font-weight: 400;
}

.landing-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-btn {
    padding: 0.9rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.landing-btn-primary {
    background: var(--gradient-saffron-gold);
    color: var(--wood-dark);
    border: none;
    box-shadow: 0 4px 20px rgba(255, 153, 51, 0.4);
}

.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 215, 0, 0.35);
    animation: divineGlow 1.5s ease-in-out;
}

.landing-btn-outline {
    background: transparent;
    color: var(--accent-soft);
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.landing-btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.landing-visual {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.landing-visual-inner {
    width: 500px;
    height: 500px;
    max-width: 90vw;
    /* Responsive constraint */
    max-height: 90vw;
    /* Responsive constraint */
    display: flex;
    align-items: center;
    justify-content: center;

    .landing-visual-icon {
        font-size: 4rem;
        opacity: 0.95;
    }

    .landing-logo {
        max-width: 280px;
        height: auto;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
        margin-bottom: 1rem;
    }

    .landing-rayaru {
        width: 100%;
        /* Fill the 180px container */
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.6), 0 0 100px rgba(255, 153, 51, 0.4);
        /* No animation */
    }
}

.landing-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-visual.animate-float .landing-visual-inner {
    width: 280px;
    height: 280px;
    background: transparent;
    border: none;
    animation: lotusFloat 6s ease-in-out infinite;
}

/* Divine glittering stars effect */
.landing-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0;
    animation: twinkle 4s infinite;
    z-index: 0;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

@media (max-width: 900px) {
    .landing-visual {
        display: none;
    }
}

/* ========== Landing features ========== */
.landing-features {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.landing-features-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.landing-feature-card {
    background: rgba(255, 248, 231, 0.04);
    border: 1px solid rgba(255, 153, 51, 0.15);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.landing-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 24px rgba(255, 215, 0, 0.08);
}

.landing-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.landing-feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
    color: #fff;
}

.landing-feature-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
}

/* ========== Auth page (Login / Register) ========== */
.auth-page {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.auth-page-bg {
    position: absolute;
    inset: 0;
}

.auth-page-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(139, 37, 0, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 70% at 50% 100%, rgba(255, 215, 0, 0.06) 0%, transparent 50%);
}

.auth-card-modern {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 248, 231, 0.05);
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 215, 0, 0.05);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card-icon {
    display: inline-block;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.auth-card-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #fff;
}

.auth-card-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.auth-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2);
}

.auth-submit {
    margin-top: 0.5rem;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--wood-dark);
    background: var(--gradient-saffron-gold);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.35);
}

.auth-footer-link {
    text-align: center;
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.auth-footer-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}

/* ========== API Docs page ========== */
.app-main .api-docs-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 0.5rem 2rem;
    color: rgba(255, 248, 231, 0.9);
}

.app-main .api-docs-page h1 {
    color: var(--bg-light);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.app-main .api-docs-page .api-docs-intro {
    color: rgba(255, 248, 231, 0.75);
    margin-bottom: 2rem;
}

.app-main .api-docs-page h2 {
    color: var(--accent-soft);
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 153, 51, 0.25);
}

.app-main .api-docs-page h3 {
    color: rgba(255, 248, 231, 0.95);
    font-size: 1.05rem;
    margin: 1.5rem 0 0.5rem;
}

.app-main .api-docs-page h4 {
    color: rgba(255, 248, 231, 0.85);
    font-size: 0.95rem;
    margin: 1rem 0 0.35rem;
}

.app-main .api-docs-page p {
    color: rgba(255, 248, 231, 0.8);
    margin-bottom: 0.75rem;
}

.app-main .api-docs-page a {
    color: var(--primary-light);
    text-decoration: none;
}

.app-main .api-docs-page a:hover {
    text-decoration: underline;
    color: var(--accent);
}

.app-main .api-docs-page hr {
    border: none;
    border-top: 1px solid rgba(255, 153, 51, 0.2);
    margin: 2rem 0;
}

.app-main .api-docs-page .api-base-url {
    display: block;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 153, 51, 0.3);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 0.75rem 0 1.5rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 1rem;
    color: var(--accent);
    word-break: break-all;
    line-height: 1.5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.app-main .api-docs-page .api-endpoint {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 0.75rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 1rem;
}

.app-main .api-docs-page .api-method {
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.app-main .api-docs-page .api-method.get {
    background: rgba(76, 175, 80, 0.25);
    color: #81C784;
}

.app-main .api-docs-page .api-method.post {
    background: rgba(33, 150, 243, 0.25);
    color: #64B5F6;
}

.app-main .api-docs-page .api-path {
    color: var(--accent);
    word-break: break-all;
}

.app-main .api-docs-page pre,
.app-main .api-docs-page .api-code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 0.5rem 0 1rem;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 248, 231, 0.92);
}

.app-main .api-docs-page pre code {
    color: inherit;
    background: none;
    padding: 0;
}

.app-main .api-docs-page .api-code-block.response-success {
    border-color: rgba(76, 175, 80, 0.4);
    background: rgba(46, 125, 50, 0.12);
}

.app-main .api-docs-page .api-code-block.response-error {
    border-color: rgba(198, 40, 40, 0.4);
    background: rgba(198, 40, 40, 0.08);
}

.app-main .api-docs-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.app-main .api-docs-page table th,
.app-main .api-docs-page table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border: 1px solid rgba(255, 153, 51, 0.2);
    color: rgba(255, 248, 231, 0.88);
}

.app-main .api-docs-page table th {
    background: rgba(255, 153, 51, 0.15);
    color: var(--accent-soft);
    font-weight: 600;
}

.app-main .api-docs-page table code {
    background: rgba(0, 0, 0, 0.35);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--accent);
}

.app-main .api-docs-page .api-endpoint-block {
    margin-bottom: 2rem;
}

.app-main .api-docs-page .api-auth-note {
    background: rgba(255, 153, 51, 0.1);
    border-left: 4px solid var(--primary);
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    margin: 1rem 0;
    color: rgba(255, 248, 231, 0.9);
}

.app-main .api-docs-page .api-auth-header {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: var(--accent);
    word-break: break-all;
}

/* ========== Reports page ========== */
.app-main .report-page {
    padding-bottom: 2rem;
}

.app-main .report-page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.app-main .report-page-header .report-page-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.app-main .report-page-header h2 {
    margin: 0 0 0.5rem;
    color: var(--bg-light);
    font-size: 1.75rem;
    font-weight: 600;
}

.app-main .report-page-subtitle {
    margin: 0;
    color: rgba(255, 248, 231, 0.7);
    font-size: 1rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.app-main .report-section {
    margin-bottom: 1.75rem;
}

.app-main .report-card {
    background: rgba(255, 248, 231, 0.04);
    border: 1px solid rgba(255, 153, 51, 0.18);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.app-main .report-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 4px 0 0 4px;
}

.app-main .report-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.app-main .report-card-icon {
    font-size: 1.35rem;
    line-height: 1;
    opacity: 0.9;
}

.app-main .report-card-header h3 {
    margin: 0;
    color: var(--accent-soft);
    font-size: 1.2rem;
    font-weight: 600;
}

.app-main .report-card-desc {
    margin: 0 0 1.25rem;
    color: rgba(255, 248, 231, 0.72);
    font-size: 0.95rem;
    line-height: 1.5;
}

.app-main .report-filters-form .report-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.app-main .report-filters-form .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: rgba(255, 248, 231, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.app-main .report-filters-form .form-control {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 153, 51, 0.28);
    background: rgba(0, 0, 0, 0.25);
    color: var(--bg-light);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.app-main .report-filters-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2);
}

.app-main .report-filters-form .form-control::placeholder {
    color: rgba(255, 248, 231, 0.4);
}

.app-main .report-filters-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.app-main .report-filters-actions .btn-apply {
    padding: 0.6rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
}

.app-main .report-filters-actions .btn-reset {
    padding: 0.6rem 1.1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 248, 231, 0.88);
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.app-main .report-filters-actions .btn-reset:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 153, 51, 0.35);
    color: var(--bg-light);
}

.app-main .report-actions-card {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.06) 0%, rgba(255, 215, 0, 0.04) 100%);
    border-color: rgba(255, 153, 51, 0.28);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 153, 51, 0.08);
}

.app-main .report-download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-main .btn-report {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.app-main .btn-report-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.app-main .btn-report-pdf {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(198, 40, 40, 0.35);
}

.app-main .btn-report-pdf:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.45);
}

.app-main .btn-report-excel {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.35);
}

.app-main .btn-report-excel:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.45);
}

.app-main .report-placeholder-card {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 248, 231, 0.02) !important;
}

.app-main .report-placeholder-card::before {
    background: rgba(255, 255, 255, 0.15);
}

.app-main .report-placeholder-card .report-card-header h3,
.app-main .report-placeholder-card .report-card-desc {
    color: rgba(255, 248, 231, 0.6);
}

.app-main .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 248, 231, 0.6);
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

.app-main .report-placeholder-card .btn-secondary:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.08);
}

/* ========== Roles page (text visible) ========== */
.app-main .roles-page {
    color: rgba(255, 248, 231, 0.92);
}

.app-main .roles-page .roles-intro {
    color: rgba(255, 248, 231, 0.75);
    margin-bottom: 1.5rem;
}

.app-main .roles-page h2 {
    color: var(--bg-light);
}

.app-main .roles-page h3 {
    color: var(--accent-soft);
    margin-top: 0;
    margin-bottom: 1rem;
}

.app-main .roles-page .roles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .app-main .roles-page .roles-grid {
        grid-template-columns: 1fr;
    }
}

.app-main .roles-page .roles-card {
    background: rgba(255, 248, 231, 0.05);
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.app-main .roles-page .roles-form-inline {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.app-main .roles-page .roles-form-inline .form-control {
    flex: 1;
    min-width: 140px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 153, 51, 0.25);
    color: var(--bg-light);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.app-main .roles-page .roles-hr {
    border: none;
    border-top: 1px solid rgba(255, 153, 51, 0.2);
    margin: 2rem 0;
}

.app-main .roles-page .roles-section-title {
    color: var(--accent-soft);
    margin-bottom: 1rem;
}

.app-main .roles-page .roles-permission-card {
    background: rgba(255, 248, 231, 0.05);
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.app-main .roles-page .roles-role-name {
    color: var(--bg-light);
    font-size: 1.05rem;
}

.app-main .roles-page .roles-checkbox-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 0.75rem 0 1rem;
}

.app-main .roles-page .roles-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 248, 231, 0.9);
    cursor: pointer;
    font-size: 0.9rem;
}

.app-main .roles-page .roles-checkbox-label input {
    margin: 0;
}

.app-main .roles-page .btn-save-permissions {
    margin-top: 0.5rem;
}

.app-main .roles-page table th,
.app-main .roles-page table td {
    color: rgba(255, 248, 231, 0.9);
    border-color: rgba(255, 153, 51, 0.2);
}

.app-main .roles-page table th {
    background: rgba(255, 153, 51, 0.12);
    color: var(--accent-soft);
}

.app-main .roles-page table code {
    background: rgba(0, 0, 0, 0.3);
    color: var(--accent);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ========== Add User page (visible fields & section) ========== */
.app-main .user-create-page h2 {
    color: var(--bg-light);
}

.app-main .user-create-intro {
    color: rgba(255, 248, 231, 0.78);
    margin-bottom: 1.5rem;
}

.app-main .user-create-card {
    max-width: 560px;
    padding: 2rem;
    background: rgba(255, 248, 231, 0.05);
    border: 1px solid rgba(255, 153, 51, 0.22);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.app-main .user-create-card .form-group label {
    color: rgba(255, 248, 231, 0.92);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.app-main .user-create-card .form-control {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 153, 51, 0.28);
    color: var(--bg-light);
    padding: 0.6rem 0.85rem;
}

.app-main .user-create-card select.form-control,
.app-main .user-create-card select {
    background: rgba(0, 0, 0, 0.45);
    background-color: #2c1810;
    color: var(--bg-light);
}

.app-main .user-create-card select option {
    background: #2c1810;
    color: var(--bg-light);
}

.app-main .user-create-card .btn-primary {
    margin-top: 0.5rem;
}

/* Override auth-card when inside app-main (e.g. legacy add user) */
.app-main .auth-card {
    background: rgba(255, 248, 231, 0.05);
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-top-color: var(--primary);
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.app-main .auth-card h2,
.app-main .auth-card h3 {
    color: var(--bg-light);
}

.app-main .auth-card p {
    color: rgba(255, 248, 231, 0.75);
}

.app-main .auth-card .form-group label {
    color: rgba(255, 248, 231, 0.9);
}

.app-main .auth-card .form-control {
    background: rgba(0, 0, 0, 0.35);
    color: var(--bg-light);
    border-color: rgba(255, 153, 51, 0.28);
}

.app-main .auth-card select.form-control,
.app-main .auth-card select {
    background: #2c1810;
    color: var(--bg-light);
}

.app-main .auth-card select option {
    background: #2c1810;
    color: var(--bg-light);
}

/* ========== Event delete buttons ========== */
.app-main .event-show-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-main .event-delete-form,
.app-main .event-delete-form-inline {
    display: inline-block;
}

.app-main .btn-delete-event {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(198, 40, 40, 0.5);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(198, 40, 40, 0.3) 0%, rgba(183, 28, 28, 0.2) 100%);
    color: #ffcdd2;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.app-main .btn-delete-event:hover {
    background: linear-gradient(180deg, rgba(198, 40, 40, 0.5) 0%, rgba(183, 28, 28, 0.4) 100%);
    border-color: rgba(198, 40, 40, 0.7);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(198, 40, 40, 0.3);
}

.app-main .event-row-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.app-main .btn-delete-event-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(198, 40, 40, 0.45);
    border-radius: 6px;
    background: rgba(198, 40, 40, 0.2);
    color: #ef9a9a;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.app-main .btn-delete-event-sm:hover {
    background: rgba(198, 40, 40, 0.4);
    color: #fff;
}

.app-main .btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

/* ========== User management list ========== */
.app-main .users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.app-main .users-filter {
    margin-bottom: 1.25rem;
}

.app-main .users-filter form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-main .users-filter label {
    color: rgba(255, 248, 231, 0.9);
    font-size: 0.9rem;
}

.app-main .users-filter .form-control {
    min-width: 160px;
}

.app-main .role-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.25rem;
    color: #fff;
}

.app-main .role-badge.role-admin {
    background: #c62828;
}

.app-main .role-badge.role-manager {
    background: #e65100;
}

.app-main .role-badge.role-employee {
    background: #1565c0;
}

.app-main .role-badge.role-user {
    background: #2e7d32;
}

.app-main .user-delete-form {
    display: inline-block;
}

.app-main .user-row-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.app-main .btn-manage {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

/* ========== Manage user (edit) page ========== */
.app-main .user-create-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.app-main .user-create-header h2 {
    margin: 0;
    color: var(--bg-light);
}

.app-main .user-edit-page .user-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.app-main .user-edit-page .user-edit-header h2 {
    color: var(--bg-light);
    margin: 0;
}

.app-main .user-edit-card {
    max-width: 520px;
    padding: 2rem;
    background: rgba(255, 248, 231, 0.05);
    border: 1px solid rgba(255, 153, 51, 0.22);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.app-main .user-edit-card .form-group label {
    color: rgba(255, 248, 231, 0.92);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.app-main .user-edit-card .form-control {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 153, 51, 0.28);
    color: var(--bg-light);
}

.app-main .user-edit-card .form-control:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

.app-main .user-edit-card .field-hint {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 248, 231, 0.5);
    margin-top: 0.25rem;
}

.app-main .user-edit-card .form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}