@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Noto+Serif+TC:wght@500;600;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --gold-300: #fde68a;
    --gold-400: #f5b041;
    --gold-500: #e59819;
    --gold-600: #c67d0a;
    --gold-700: #b87b14;
    --bg-main: #0a0709;
    --bg-surface: #140d12;
    --bg-card: rgba(24, 15, 21, 0.88);
    --border-gold: rgba(245, 176, 65, 0.22);
    --border-gold-glow: rgba(245, 176, 65, 0.45);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', 'Noto Serif TC', sans-serif;
    background-color: var(--bg-main);
    color: #e7e5e4;
    overflow-x: hidden;
}

/* Sacred Typography */
.font-sacred {
    font-family: 'Cinzel', 'Noto Serif TC', serif;
    letter-spacing: 0.5px;
}

.gold-gradient-text {
    background: linear-gradient(135deg, #fff2cc 0%, #f5b041 50%, #c67d0a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-gradient-bg {
    background: linear-gradient(135deg, #f5b041 0%, #e59819 50%, #c67d0a 100%);
}

.gold-gradient-border {
    border-image: linear-gradient(135deg, #f5b041, #8a1f32) 1;
}

/* Glassmorphic Surfaces */
.glass-admin-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-gold);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-admin-card:hover {
    border-color: var(--border-gold-glow);
}

.glass-interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -8px rgba(245, 176, 65, 0.15);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0d090b;
}

::-webkit-scrollbar-thumb {
    background: #382531;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-600);
}

/* Badge & Indicator Styles */
.sacred-seal {
    border: 1.5px solid #b87b14;
    position: relative;
}

.sacred-seal::after {
    content: '';
    position: absolute;
    inset: 2px;
    border: 0.5px solid rgba(184, 123, 20, 0.5);
    pointer-events: none;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(18, 12, 16, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(245, 176, 65, 0.2);
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    background: rgba(26, 16, 23, 0.96);
    border: 1px solid var(--gold-500);
    backdrop-filter: blur(16px);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(245, 176, 65, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    max-width: 360px;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Table & Cards for Mobile */
@media (max-width: 768px) {
    .desktop-table-view {
        display: none !important;
    }
    .mobile-cards-view {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
    }
    main {
        padding-bottom: 80px !important;
    }
}

@media (min-width: 769px) {
    .desktop-table-view {
        display: block !important;
    }
    .mobile-cards-view {
        display: none !important;
    }
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Print Optimization */
@media print {
    .no-print, header, nav, .mobile-bottom-nav, #toast-container, button, .action-bar {
        display: none !important;
    }
    body {
        background: #fff !important;
        color: #000 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .print-sheet {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

