/* =====================================================
   CEKGEDUNG - Kalurahan Gilangharjo
   Main Stylesheet - Modern & Fully Responsive
   Updated for Desktop & Mobile Perfection
===================================================== */

:root {
    --primary: #198754;
    --primary-dark: #126b46;
    --primary-darker: #0d4a30;
    --primary-light: #e8f5e9;
    --primary-subtle: #f0fdf4;
    --primary-border: #bbf7d0;
    --primary-gradient: linear-gradient(135deg, #105f3f 0%, #198754 50%, #20c997 100%);
    
    --accent-blue: #0d6efd;
    --accent-blue-subtle: #eff6ff;
    --accent-rose: #e11d48;
    --accent-rose-subtle: #fff1f2;
    --accent-amber: #d97706;
    --accent-amber-subtle: #fffbeb;
    --wa-color: #25D366;
    --wa-dark: #128c4b;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
    --shadow-glow: 0 8px 24px rgba(25, 135, 84, 0.22);
    
    --sidebar-width: 265px;
    --navbar-height: 68px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-secondary);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =====================================================
   APP WRAPPER & LAYOUT
===================================================== */
.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-content {
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - var(--navbar-height));
    padding: 28px 32px 60px;
    transition: margin-left .3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   TOP NAVBAR
===================================================== */
.top-navbar {
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 990;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}

.sidebar-toggle:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-border);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.navbar-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: #ffffff;
    padding: 2px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-color);
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
}

.navbar-brand-text strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--primary-dark);
    line-height: 1.2;
}

.navbar-brand-text span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Navbar Desktop Shortcuts */
.navbar-desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
}

.navbar-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all .2s ease;
}

.navbar-nav-item:hover {
    background: var(--border-subtle);
    color: var(--primary);
}

.navbar-nav-item.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.navbar-nav-highlight {
    background: var(--primary-gradient);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.25);
}

.navbar-nav-highlight:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.navbar-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--border-subtle);
    border: 1px solid var(--border-color);
    transition: all .2s ease;
}

.navbar-action:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: var(--primary);
}

.admin-portal-btn {
    background: #1e293b;
    color: #ffffff;
    border: none;
}

.admin-portal-btn:hover {
    background: #0f172a;
    color: #ffffff;
}

.admin-status {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.admin-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

.navbar-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    transition: all .2s ease;
}

.navbar-logout:hover {
    background: #dc2626;
    color: #ffffff;
}

.navbar-action-booking-mobile {
    display: none;
}

/* =====================================================
   SIDEBAR
===================================================== */
.app-sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 980;
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 10px rgba(15, 23, 42, 0.02);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.sidebar-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
}

.sidebar-header-info {
    display: flex;
    flex-direction: column;
}

.sidebar-header-info strong {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 800;
}

.sidebar-header-info span {
    color: var(--text-muted);
    font-size: 11px;
}

.sidebar-close-btn {
    display: none;
    margin-left: auto;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.sidebar-menu {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.sidebar-label {
    padding: 4px 12px;
    margin-bottom: 6px;
    color: var(--text-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.sidebar-label-space {
    margin-top: 20px;
}

.sidebar-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    margin-bottom: 4px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 600;
    transition: all .2s ease;
    border-left: 3px solid transparent;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    transition: color .2s ease;
}

.sidebar-link:hover {
    background: var(--primary-subtle);
    color: var(--primary-dark);
    transform: translateX(2px);
}

.sidebar-link:hover i {
    color: var(--primary);
}

.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary-darker);
    font-weight: 700;
    border-left-color: var(--primary);
}

.sidebar-link.active i {
    color: var(--primary-dark);
}

.sidebar-link-cta {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.08), rgba(32, 201, 151, 0.12));
    color: var(--primary-dark);
    border: 1px dashed var(--primary-border);
}

.sidebar-link-cta i {
    color: var(--primary);
}

.sidebar-link-cta:hover {
    background: var(--primary-light);
}

.admin-highlight {
    background: #f1f5f9;
    color: #1e293b;
}

.sidebar-logout {
    color: #dc2626 !important;
}

.sidebar-logout:hover {
    background: #fee2e2 !important;
}

/* Sidebar Admin Login Box */
.sidebar-admin-box {
    margin: 8px 4px 14px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.sidebar-admin-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.sidebar-admin-label i {
    color: var(--primary);
}

.sidebar-admin-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-input-group i {
    position: absolute;
    left: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-input-group input {
    width: 100%;
    height: 36px;
    padding: 0 10px 0 30px;
    font-size: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-primary);
    outline: none;
    transition: border-color .2s ease;
}

.sidebar-input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

.sidebar-btn-login {
    height: 36px;
    background: #1e293b;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .2s ease;
}

.sidebar-btn-login:hover {
    background: #0f172a;
}

.sidebar-portal-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all .2s ease;
}

.sidebar-portal-link:hover {
    color: var(--primary);
    border-color: var(--primary-border);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 14px 16px;
    margin: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.sidebar-footer-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 13px;
    flex-shrink: 0;
}

.sidebar-footer-text {
    display: flex;
    flex-direction: column;
}

.sidebar-footer-text strong {
    font-size: 11px;
    color: var(--text-primary);
}

.sidebar-footer-text span {
    font-size: 9.5px;
    color: var(--text-muted);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    z-index: 975;
}

/* Sidebar Desktop Collapse */
body.sidebar-collapsed .app-sidebar {
    transform: translateX(-100%);
}

body.sidebar-collapsed .app-content {
    margin-left: 0;
}

body.sidebar-collapsed .app-footer {
    margin-left: 0;
}

/* =====================================================
   HERO / BANNER CEKGEDUNG
===================================================== */
.header {
    position: relative;
    overflow: hidden;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 38px 42px;
    color: #ffffff;
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
}

.header::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    top: -160px;
    right: -80px;
    pointer-events: none;
}

.header::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -120px;
    left: -60px;
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo-header {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: #ffffff;
    padding: 8px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.badge-app {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    margin-bottom: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.header h3 {
    margin: 4px 0 0;
    font-size: 18px;
    font-weight: 600;
    opacity: 0.95;
}

.header p {
    margin: 8px 0 0;
    font-size: 14px;
    opacity: 0.88;
    max-width: 650px;
    line-height: 1.5;
}

/* Quick Action Shortcuts inside Hero */
.header-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
}

.header-btn-white {
    background: #ffffff;
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-btn-white:hover {
    background: #f8fafc;
    color: var(--primary-darker);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.header-btn-glass {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.header-btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Fast Building Showcase Cards in Hero */
.hero-building-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.hero-building-card {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all .2s ease;
}

.hero-building-card:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: translateY(-2px);
    color: #ffffff;
}

.hero-building-card i {
    font-size: 24px;
    opacity: 0.9;
}

.hero-building-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.hero-building-info span {
    display: block;
    font-size: 11.5px;
    opacity: 0.85;
}

/* =====================================================
   MAIN CARDS
===================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card h3 {
    margin: 0 0 18px;
    color: var(--text-primary);
    font-size: 19px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--primary);
}

/* =====================================================
   SCHEDULE SECTION (#jadwal)
===================================================== */
#jadwal, #booking, #kelola, #arsip {
    scroll-margin-top: calc(var(--navbar-height) + 20px);
}

.jadwal-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.jadwal-filter-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-right: 4px;
}

.jadwal-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    font-family: inherit;
}

.jadwal-filter-btn:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-border);
}

.jadwal-filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-xs);
}

/* Building Section Headings */
.jadwal-header-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.jadwal-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.jadwal-header-title i {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.title-pendopo i { background: #fef3c7; color: #b45309; }
.title-aula i { background: #e0f2fe; color: #0369a1; }
.title-lembaga i { background: #ecfdf5; color: #047857; }

.jadwal-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    background: var(--bg-main);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Modern Responsive Table */
.tabel-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: #ffffff;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
}

.tabel-gedung {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.tabel-gedung thead th {
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.tabel-gedung tbody tr {
    transition: background-color .15s ease;
}

.tabel-gedung tbody tr:not(:last-child) {
    border-bottom: 1px solid var(--border-subtle);
}

.tabel-gedung tbody tr:hover {
    background: #fbfcfd;
}

.tabel-gedung td {
    padding: 14px 16px;
    color: var(--text-secondary);
    vertical-align: middle;
}

/* Date Pill */
.date-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.date-pill i {
    color: var(--primary);
    font-size: 13px;
}

/* Time Pill */
.time-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* User Name */
.user-cell {
    font-weight: 600;
    color: var(--text-primary);
}

/* WhatsApp Link Button */
.wa-cell-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: var(--radius-sm);
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s ease;
}

.wa-cell-link:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
}

.wa-cell-empty {
    color: var(--text-light);
    font-size: 12px;
}

/* Action Buttons */
.action-cell {
    white-space: nowrap;
}

.btn-edit-action, .btn-delete-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.btn-edit-action {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    margin-right: 4px;
}

.btn-edit-action:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.btn-delete-action {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.btn-delete-action:hover {
    background: #b91c1c;
    color: #ffffff;
}

/* Empty Schedule State */
.jadwal-empty-card {
    padding: 28px 20px;
    background: #f8fafc;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 24px;
}

.jadwal-empty-card i {
    font-size: 32px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.jadwal-empty-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.jadwal-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
}

.jadwal-empty-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

/* =====================================================
   ADMIN EDIT / INPUT CARD (#kelola)
===================================================== */
#kelola {
    border-left: 4px solid var(--primary);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    color: var(--primary);
    font-size: 12px;
}

.form-control {
    width: 100%;
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13.5px;
    transition: all .2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12);
}

.admin-form-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    min-height: 44px;
    padding: 0 22px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    min-height: 44px;
    padding: 0 18px;
    background: #f1f5f9;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all .2s ease;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

/* =====================================================
   BOOKING FORM SECTION (#booking)
===================================================== */
.booking-card {
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.booking-header {
    padding: 30px 36px;
    background: var(--primary-gradient);
    color: #ffffff;
    position: relative;
}

.booking-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.booking-header p {
    margin: 8px 0 0;
    font-size: 14px;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.5;
}

.booking-steps-banner {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 600;
}

.booking-step-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.16);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.booking-body {
    padding: 32px 36px;
    background: #ffffff;
}

.booking-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.booking-form-grid .form-group-full {
    grid-column: 1 / -1;
}

.booking-form-grid label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.booking-form-grid label i {
    color: var(--primary);
}

.req-star {
    color: #dc2626;
    margin-left: 2px;
}

.field-hint {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.booking-error-alert {
    padding: 14px 18px;
    margin-bottom: 22px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    color: #991b1b;
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.booking-error-alert i {
    font-size: 18px;
    margin-top: 1px;
}

/* WhatsApp Submit Button */
.wa-submit-wrapper {
    margin-top: 14px;
}

.btn-booking-wa {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #25D366 0%, #16a34a 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: all .2s ease;
}

.btn-booking-wa i {
    font-size: 20px;
}

.btn-booking-wa:hover {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.wa-submit-note {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wa-submit-note i {
    color: var(--primary);
}

/* =====================================================
   FACILITY & OVERVIEW PAGES
   (gedung.php, pertemuan.php, pernikahan.php, olahraga.php)
===================================================== */
.facility-hero {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    color: #ffffff;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.facility-hero-wedding {
    background: linear-gradient(135deg, #9d174d 0%, #e11d48 50%, #f43f5e 100%);
}

.facility-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.facility-hero p {
    font-size: 15px;
    opacity: 0.92;
    max-width: 650px;
    margin: 0 auto;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.facility-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.facility-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all .25s ease;
}

.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.facility-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.facility-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.facility-card:hover .facility-img-wrapper img {
    transform: scale(1.04);
}

.facility-badge-float {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
}

.facility-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.facility-body h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.facility-capacity-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 16px;
}

.facility-capacity-pill-wedding {
    background: var(--accent-rose-subtle);
    color: var(--accent-rose);
}

.facility-price-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.facility-price-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.facility-price-box strong {
    color: var(--primary-dark);
    font-size: 16px;
}

.facility-features-box {
    margin-bottom: 18px;
    flex: 1;
}

.facility-features-box h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.facility-features-box ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.facility-features-box li {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.facility-features-box li i {
    color: var(--primary);
    margin-top: 3px;
    font-size: 12px;
}

.facility-note {
    font-size: 12px;
    color: var(--accent-amber);
    background: var(--accent-amber-subtle);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-facility-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s ease;
}

.btn-facility-cta:hover {
    background: var(--primary-dark);
    color: #ffffff;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 220px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Facility Advantages Section */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}

.advantage-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 18px 14px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-xs);
}

.advantage-item i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

.advantage-item strong {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
}

/* =====================================================
   APP FOOTER
===================================================== */
.app-footer {
    margin-left: var(--sidebar-width);
    padding: 24px 32px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: margin-left .3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 15px;
    flex-shrink: 0;
}

.footer-text {
    display: flex;
    flex-direction: column;
}

.footer-text strong {
    color: var(--text-primary);
    font-size: 13px;
}

.footer-text span {
    color: var(--text-muted);
    font-size: 11.5px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
}

.footer-divider {
    color: var(--text-light);
}

/* =====================================================
   MOBILE FLOATING BOTTOM NAVIGATION BAR
===================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    z-index: 999;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    gap: 3px;
    flex: 1;
    height: 100%;
    transition: color .2s ease;
}

.mobile-nav-item i {
    font-size: 18px;
}

.mobile-nav-item.active {
    color: var(--primary);
    font-weight: 800;
}

.mobile-nav-highlight {
    position: relative;
    color: var(--primary);
}

.mobile-nav-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -24px;
    box-shadow: 0 4px 14px rgba(25, 135, 84, 0.4);
    font-size: 18px;
    border: 3px solid #ffffff;
    transition: transform .2s ease;
}

.mobile-nav-circle:active {
    transform: scale(0.92);
}

/* =====================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
===================================================== */

/* Tablet (<= 992px) */
@media (max-width: 992px) {
    .app-sidebar {
        width: 280px;
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(15, 23, 42, 0.15);
    }
    
    .sidebar-close-btn {
        display: flex;
    }
    
    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }
    
    body.sidebar-open .sidebar-overlay {
        display: block;
    }
    
    .app-content {
        margin-left: 0;
        padding: 20px 20px 70px;
    }
    
    .app-footer {
        margin-left: 0;
    }
    
    .navbar-desktop-nav {
        display: none;
    }
    
    .navbar-action-booking-mobile {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: var(--radius-full);
        background: var(--primary-gradient);
        color: #ffffff !important;
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
    }
    
    .admin-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-building-grid {
        grid-template-columns: 1fr;
    }
    
    .facility-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantage-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }
    
    body {
        padding-bottom: 64px; /* Space for bottom navigation bar */
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .top-navbar {
        padding: 0 16px;
    }
    
    .navbar-brand-text strong {
        font-size: 15px;
    }
    
    .navbar-brand-text span {
        font-size: 10px;
    }
    
    .admin-status span:not(.admin-dot),
    .navbar-action span,
    .navbar-logout span {
        display: none;
    }
    
    .header {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }
    
    .logo-area {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    
    .logo-header {
        width: 72px;
        height: 72px;
    }
    
    .header h1 {
        font-size: 26px;
    }
    
    .header h3 {
        font-size: 16px;
    }
    
    .header p {
        font-size: 13px;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .header-btn {
        width: 100%;
        justify-content: center;
    }
    
    .card {
        padding: 18px 16px;
        border-radius: var(--radius-md);
    }
    
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-body {
        padding: 22px 18px;
    }
    
    .booking-header {
        padding: 22px 18px;
    }
    
    .booking-header h2 {
        font-size: 19px;
    }
    
    .booking-form-grid {
        grid-template-columns: 1fr;
    }
    
    .facility-grid,
    .facility-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .app-footer {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px 30px;
    }
    
    .footer-left {
        flex-direction: column;
    }
    
    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* =====================================================
       MOBILE TABLE CARD TRANSFORMATION
       For exceptional phone readability
    ===================================================== */
    .tabel-responsive-wrapper {
        border: none;
        background: transparent;
        overflow-x: visible;
    }
    
    .tabel-gedung {
        display: block;
        width: 100%;
    }
    
    .tabel-gedung thead {
        display: none;
    }
    
    .tabel-gedung tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .tabel-gedung tbody tr {
        display: block;
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 14px 16px;
        box-shadow: var(--shadow-xs);
    }
    
    .tabel-gedung tbody tr:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
    }
    
    .tabel-gedung td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px dashed var(--border-subtle);
        font-size: 13px;
        text-align: right;
    }
    
    .tabel-gedung td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .tabel-gedung td:first-child {
        padding-top: 0;
    }
    
    .tabel-gedung td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-muted);
        font-size: 12px;
        text-align: left;
        margin-right: 12px;
        white-space: nowrap;
    }
    
    .tabel-gedung td .wa-cell-link {
        font-size: 11.5px;
    }
}


/* =====================================================
   FILTER AGENDA HARI INI & PWA STYLES
===================================================== */

/* Agenda Hari Ini Filter Button */
.filter-btn-today {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border-color: #f59e0b !important;
    color: #92400e !important;
    font-weight: 700 !important;
}

.filter-btn-today i {
    color: #d97706;
}

.filter-btn-today:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%) !important;
    color: #78350f !important;
}

.filter-btn-today.active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35) !important;
}

.filter-btn-today.active i {
    color: #ffffff;
}

.filter-btn-today.active .filter-count-badge {
    background: #ffffff;
    color: #b45309;
}

.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    font-size: 10.5px;
    font-weight: 800;
    background: #f59e0b;
    color: #ffffff;
}

/* Badge Hari Ini Live Pulse */
.badge-today-pulse {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #b45309;
    font-size: 11px;
    font-weight: 800;
    margin-left: 6px;
    vertical-align: middle;
}

.badge-today-pulse i {
    font-size: 8px;
    color: #d97706;
    animation: pulseDot 1.5s infinite;
}

/* Empty Today Card */
.jadwal-empty-today {
    padding: 32px 24px;
    background: #ffffff;
    border: 1px dashed #f59e0b;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 24px;
}

.jadwal-empty-today i {
    font-size: 38px;
    color: #f59e0b;
    margin-bottom: 12px;
}

.jadwal-empty-today h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.jadwal-empty-today p {
    font-size: 13.5px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 16px;
}

/* =====================================================
   PWA INSTALL BUTTONS & BANNERS
===================================================== */

/* Navbar Install Button */
.btn-pwa-install {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    font-weight: 700;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
    transition: all .2s ease;
}

.btn-pwa-install:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

/* Sidebar PWA Card */
.sidebar-pwa-card {
    margin: 12px 6px;
    padding: 12px;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-pwa-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.sidebar-pwa-info {
    flex: 1;
    min-width: 0;
}

.sidebar-pwa-info strong {
    display: block;
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.2;
}

.sidebar-pwa-info span {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
}

.btn-install-trigger {
    padding: 5px 10px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s ease;
}

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

/* Floating Bottom Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 520px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    z-index: 998;
    animation: slideUpBanner .35s ease;
}

@keyframes slideUpBanner {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.pwa-banner-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 2px;
    flex-shrink: 0;
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
}

.pwa-banner-text strong {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
}

.pwa-banner-text span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-banner-install {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s ease;
}

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

.btn-banner-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-banner-close:hover {
    color: var(--text-primary);
}

/* iOS Safari Install Guide Modal */
.ios-install-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ios-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.ios-modal-box {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 440px;
    padding: 26px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    z-index: 2;
    animation: scaleModal .25s ease;
}

@keyframes scaleModal {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.ios-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.ios-modal-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
}

.ios-modal-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
}

.ios-modal-header p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.ios-modal-close {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    color: var(--text-muted);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-modal-body p {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.ios-modal-steps {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ios-modal-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ios-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ios-icon-share {
    color: #0284c7;
    margin: 0 2px;
}

@media (max-width: 768px) {
    .pwa-install-banner {
        bottom: 74px; /* Above the mobile floating bottom navigation bar */
    }
}
