:root {
    --bg: #0f172a;
    --surface: rgba(15, 23, 42, 0.95);
    --surface-strong: rgba(30, 41, 59, 0.98);
    --surface-soft: rgba(15, 23, 42, 0.75);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --accent: #7c3aed;
    --accent-soft: #8b5cf6;
    --border: rgba(148, 163, 184, 0.18);
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.24), transparent 26%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 20%),
                var(--bg);
}

.auth-card {
    width: min(460px, 100%);
    padding: 34px 30px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.auth-card h1 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.auth-card p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.5;
}

.auth-group {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-group label {
    font-size: 0.95rem;
    color: var(--muted);
}

.auth-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.password-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.password-field button {
    min-width: 60px;
}

.login-message {
    margin-top: 16px;
    color: #fef08a;
    min-height: 1.25rem;
    font-size: 0.95rem;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.24), transparent 26%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 20%),
                var(--bg);
    color: var(--text);
}

button, input, select {
    font: inherit;
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    padding: 32px 24px;
    border-right: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88));
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), #2563eb);
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.22);
}

.brand h1 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.brand p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav-group {
    display: grid;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 16px;
    color: var(--text);
    text-decoration: none;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    transform: translateX(4px);
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.28);
}

.nav-link span {
    color: var(--muted);
    font-size: 0.95rem;
}

.sidebar-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.95rem;
}

.dashboard {
    padding: 28px 32px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.page-title-block {
    display: grid;
    gap: 8px;
}

.page-title-block h2 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.03em;
}

.page-title-block p {
    margin: 0;
    color: var(--muted);
    max-width: 520px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    min-width: 280px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.05);
}

.search-field input {
    border: none;
    outline: none;
    width: 220px;
    color: var(--text);
    background: transparent;
}

.search-field input::placeholder {
    color: var(--muted);
}

button.primary-btn, .secondary-btn, .pill-btn, .icon-btn {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

button.primary-btn {
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: white;
    font-weight: 700;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.22);
}

button.primary-btn:hover,
button.primary-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(124, 58, 237, 0.28);
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.06);
    color: var(--text);
}

.pill-btn:hover,
.pill-btn:focus-visible {
    background: rgba(255,255,255,0.14);
    transform: translateY(-1px);
}

.secondary-btn {
    padding: 14px 20px;
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
    background: rgba(255,255,255,0.13);
    transform: translateY(-1px);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255,255,255,0.05);
    color: var(--text);
}

.icon-btn:hover,
.icon-btn:focus-visible {
    transform: translateY(-1px);
    background: rgba(124, 58, 237, 0.14);
    border-color: rgba(124, 58, 237, 0.25);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.summary-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
}

.summary-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.22), transparent 28%);
    pointer-events: none;
}

.summary-card h3 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: var(--muted);
}

.summary-card strong {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: var(--text);
    font-size: 0.9rem;
}

.panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.panel-header small {
    color: var(--muted);
}

.table-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.filter-select {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255,255,255,0.05);
    padding: 12px 16px;
    border-radius: 14px;
    color: var(--text);
    min-width: 180px;
}

.filter-select:hover,
.filter-select:focus-visible {
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(255,255,255,0.11);
}

.search-field:hover {
    background: rgba(255,255,255,0.1);
}

.table-wrap {
    overflow-x: auto;
}

table.customer-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 840px;
}

.customer-table th,
.customer-table td {
    padding: 18px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.customer-table th {
    color: var(--muted);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.customer-table tbody tr {
    transition: background 0.2s ease, transform 0.2s ease;
}

.customer-table tbody tr:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(4px);
}

.customer-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.secondary-text {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #38bdf8);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: white;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
}

.status-active { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.status-pending { background: rgba(234, 179, 8, 0.14); color: #eab308; }
.status-locked { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.action-group {
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
    transform: translateY(-1px);
    background: rgba(124, 58, 237, 0.14);
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100vh;
    padding: 28px;
    background: rgba(15, 23, 42, 0.98);
    border-left: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: -20px 0 70px rgba(15, 23, 42, 0.4);
    transform: translateX(110%);
    transition: transform 0.32s ease;
    display: grid;
    grid-template-rows: auto 1fr;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.drawer-header h4 {
    margin: 0;
    font-size: 1.35rem;
}

.drawer-close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: var(--text);
    cursor: pointer;
}

.drawer-content {
    overflow-y: auto;
    padding-right: 6px;
}

.detail-row {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.detail-row span:first-child {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.detail-row strong {
    font-size: 1rem;
}

.drawer-section {
    margin-top: 24px;
}

.drawer-section h5 {
    margin: 0 0 14px;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.drawer-card {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #38bdf8, #8b5cf6);
    color: white;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.drawer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.drawer-actions .primary-btn,
.drawer-actions .secondary-btn {
    width: calc(50% - 6px);
}

.secondary-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: var(--text);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.1);
}

@media (max-width: 1080px) {
    .admin-shell { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .dashboard { padding: 20px; }
    .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .topbar { flex-direction: column; align-items: stretch; }
    .search-field { width: 100%; }
    .summary-grid { grid-template-columns: 1fr; }
    .drawer-actions .primary-btn,
    .drawer-actions .secondary-btn { width: 100%; }
}

.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.booking-modal.show {
    display: flex;
}

.booking-modal-content {
    background: var(--surface);
    padding: 32px;
    border-radius: 24px;
    max-width: 520px;
    width: 90%;
    box-shadow: var(--shadow);
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.form-group label {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font: inherit;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(255,255,255,0.08);
}

.form-group textarea {
    min-height: 80px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-actions button {
    flex: 1;
}

.bookings-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(480px, 100%);
    height: 100vh;
    padding: 28px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 70px rgba(15, 23, 42, 0.4);
    transform: translateX(110%);
    transition: transform 0.32s ease;
    display: flex;
    flex-direction: column;
    z-index: 2800;
}

.bookings-panel.open {
    transform: translateX(0);
}

.bookings-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
}

.booking-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(148, 163, 184, 0.12);
    margin-bottom: 14px;
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.booking-card-title {
    font-weight: 700;
    font-size: 1rem;
}

.booking-card-meta {
    display: grid;
    gap: 8px;
    font-size: 0.9rem;
}

.booking-card-meta span {
    color: var(--muted);
}

.booking-card-meta strong {
    color: var(--text);
}

.empty-state {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

.settings-grid {
    display: grid;
    gap: 24px;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    flex: 1;
}

.setting-label strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.setting-label p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.toggle-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.settings-select {
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    cursor: pointer;
}

.danger-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.danger-btn:hover {
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.22) !important;
}

.info-section {
    display: grid;
    gap: 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item span {
    color: var(--muted);
}

.info-item strong {
    font-size: 1.1rem;
    color: var(--text);
}

.report-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.report-item {
    display: grid;
    gap: 10px;
}

.report-item strong {
    display: block;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #2563eb);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.report-item span {
    color: var(--muted);
    font-size: 0.9rem;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.report-card {
    padding: 24px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
}

.report-card h4 {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

.report-card .metric {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.report-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .report-grid { grid-template-columns: 1fr; }
    .setting-item { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    z-index: 3100;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.edit-modal.show {
    display: flex;
}

.edit-modal-content {
    background: var(--surface);
    padding: 32px;
    border-radius: 24px;
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border);
}

.edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.edit-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.success-message {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    margin-bottom: 16px;
    border-left: 4px solid #22c55e;
}

.error-message {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    margin-bottom: 16px;
    border-left: 4px solid #ef4444;
}

.delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    z-index: 3200;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.delete-modal.show {
    display: flex;
}

.delete-modal-content {
    background: var(--surface);
    padding: 32px;
    border-radius: 24px;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow);
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border);
    text-align: center;
}

.delete-modal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.delete-modal-content h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.delete-modal-content p {
    margin: 0 0 24px;
    color: var(--muted);
}

.modal-action-buttons {
    display: flex;
    gap: 12px;
}

.modal-action-buttons button {
    flex: 1;
}

/* ============================================
   ADVANCED ANIMATIONS & TRANSITIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(124, 58, 237, 0.3), 0 20px 40px rgba(124, 58, 237, 0.15);
    }
    50% {
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.5), 0 20px 60px rgba(124, 58, 237, 0.25);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   ENHANCED BUTTON EFFECTS
   ============================================ */

button.primary-btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.22);
}

button.primary-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

button.primary-btn:hover::before {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

button.primary-btn:active {
    transform: scale(0.98);
}

.secondary-btn {
    position: relative;
    overflow: hidden;
}

.secondary-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(124, 58, 237, 0.1);
    transition: left 0.3s ease;
    pointer-events: none;
}

.secondary-btn:hover::after {
    left: 100%;
}

/* ============================================
   ENHANCED SUMMARY CARDS
   ============================================ */

.summary-card {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}

.summary-card:nth-child(1) { animation-delay: 0.05s; }
.summary-card:nth-child(2) { animation-delay: 0.1s; }
.summary-card:nth-child(3) { animation-delay: 0.15s; }
.summary-card:nth-child(4) { animation-delay: 0.2s; }

.summary-card strong {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.summary-card:hover strong {
    transform: scale(1.05);
}

.summary-chip {
    animation: pulse 2s infinite;
}

/* ============================================
   TABLE ENHANCEMENTS
   ============================================ */

.customer-table tbody tr {
    animation: slideRight 0.3s ease-out;
}

.customer-table tbody tr td {
    transition: all 0.2s ease;
}

.customer-table tbody tr:hover {
    background: rgba(124, 58, 237, 0.08);
    box-shadow: inset 0 0 20px rgba(124, 58, 237, 0.08);
}

.customer-table tbody tr:hover td {
    color: var(--accent-soft);
}

.avatar {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
}

/* ============================================
   ENHANCED DRAWER STYLING
   ============================================ */

.drawer {
    backdrop-filter: blur(12px);
    animation: slideUp 0.32s ease;
}

.drawer.open {
    animation: slideUp 0.32s ease;
}

.drawer-section h5 {
    animation: slideDown 0.3s ease;
}

.drawer-card {
    transition: all 0.3s ease;
    animation: fadeIn 0.4s ease;
}

.drawer-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

.drawer-content::-webkit-scrollbar,
.bookings-list::-webkit-scrollbar,
.edit-modal-content::-webkit-scrollbar {
    width: 8px;
}

.drawer-content::-webkit-scrollbar-track,
.bookings-list::-webkit-scrollbar-track,
.edit-modal-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.drawer-content::-webkit-scrollbar-thumb,
.bookings-list::-webkit-scrollbar-thumb,
.edit-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7c3aed, #2563eb);
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.05);
}

.drawer-content::-webkit-scrollbar-thumb:hover,
.bookings-list::-webkit-scrollbar-thumb:hover,
.edit-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8b5cf6, #3b82f6);
}

/* ============================================
   FORM ENHANCEMENTS
   ============================================ */

.form-group input,
.form-group select,
.form-group textarea {
    transition: all 0.3s ease;
    position: relative;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2), inset 0 0 10px rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.5);
}

.form-group label {
    transition: color 0.3s ease;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label {
    color: var(--accent);
}

/* ============================================
   LOADING STATES & SKELETONS
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.05) 0%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0.05) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
}

.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(124, 58, 237, 0.2);
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(124, 58, 237, 0.15);
    border-top: 3px solid #7c3aed;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   BADGE ENHANCEMENTS
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: slideUp 0.3s ease;
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: rgba(37, 99, 235, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* ============================================
   TOOLTIP STYLES
   ============================================ */

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.95);
    color: var(--text);
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
    z-index: 1000;
    animation: slideDown 0.3s ease;
    pointer-events: none;
}

.tooltip:hover::before {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(15, 23, 42, 0.95);
    z-index: 1000;
    pointer-events: none;
}

/* ============================================
   CHART & GRAPH CONTAINERS
   ============================================ */

.chart-container {
    padding: 24px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    animation: slideUp 0.5s ease;
}

.chart-title {
    margin: 0 0 20px;
    font-size: 1.15rem;
    font-weight: 700;
}

.mini-chart {
    height: 200px;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, #7c3aed, #2563eb);
    border-radius: 6px 6px 0 0;
    transition: all 0.3s ease;
    position: relative;
    min-height: 10px;
}

.chart-bar:hover {
    background: linear-gradient(180deg, #8b5cf6, #3b82f6);
    filter: brightness(1.1);
    transform: translateY(-4px);
}

/* ============================================
   NOTIFICATION STYLES
   ============================================ */

.notification {
    padding: 16px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
    border-left: 4px solid;
    margin-bottom: 12px;
}

.notification.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: #22c55e;
}

.notification.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

.notification.warning {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border-color: #eab308;
}

.notification.info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: #3b82f6;
}

.notification-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* ============================================
   PROGRESS INDICATORS
   ============================================ */

.progress-container {
    display: grid;
    gap: 12px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-label {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 100px;
}

.progress-bar {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    height: 14px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed 0%, #2563eb 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent);
    animation: shimmer 2s infinite;
}

.progress-value {
    min-width: 40px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
}

/* ============================================
   HOVER CARD EFFECTS
   ============================================ */

.hover-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(255,255,255,0.08);
}

/* ============================================
   ACTIVE & FOCUSED STATES
   ============================================ */

.active-indicator {
    position: relative;
}

.active-indicator::before {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    animation: pulse 2s infinite;
}

/* ============================================
   FOCUS VISIBLE STATES
   ============================================ */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.icon-btn:focus-visible,
.filter-select:focus-visible {
    outline: 2px solid rgba(124, 58, 237, 0.5);
    outline-offset: 2px;
}

/* ============================================
   DARK MODE TRANSITIONS
   ============================================ */

body.dark-mode {
    --bg: #0f172a;
    --text: #e2e8f0;
}

body.light-mode {
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --surface: rgba(248, 250, 252, 0.95);
    --border: rgba(30, 41, 59, 0.1);
}

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 1200px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 24px;
    }

    .nav-group {
        display: flex;
        gap: 8px;
        overflow-x: auto;
    }

    .nav-link {
        white-space: nowrap;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
        padding: 16px;
    }

    .brand {
        margin-bottom: 16px;
    }

    .topbar {
        flex-direction: column;
        gap: 12px;
    }

    .toolbar-actions {
        flex-direction: column;
    }

    .search-field {
        width: 100%;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }

    .drawer,
    .bookings-panel {
        width: 100% !important;
    }

    .page-title-block h2 {
        font-size: 1.5rem;
    }

    .chart-bar {
        animation: slideUp 0.4s ease backwards;
    }

    .chart-bar:nth-child(1) { animation-delay: 0.05s; }
    .chart-bar:nth-child(2) { animation-delay: 0.1s; }
    .chart-bar:nth-child(3) { animation-delay: 0.15s; }
    .chart-bar:nth-child(4) { animation-delay: 0.2s; }
}

/* ============================================
   PAYMENT PROOF STYLING
   ============================================ */

#drawerPaymentProofs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-proof-card {
    background: linear-gradient(135deg, rgba(0,123,255,0.1) 0%, rgba(40,167,69,0.05) 100%) !important;
    border: 2px solid rgba(0,123,255,0.3) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    transition: all 0.3s ease;
    animation: slideUp 0.4s ease;
}

.payment-proof-card:hover {
    background: linear-gradient(135deg, rgba(0,123,255,0.15) 0%, rgba(40,167,69,0.1) 100%) !important;
    border-color: rgba(0,123,255,0.5) !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,123,255,0.2);
}

.payment-proof-card img {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.payment-proof-card img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,123,255,0.3);
}

.view-proof-btn,
.download-proof-btn {
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.view-proof-btn:hover,
.download-proof-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

.view-proof-btn:active,
.download-proof-btn:active {
    transform: translateY(0);
}
