:root {
    --brass-500: #AD7F2E;
    --brass-600: #8C6526;
}

html { scroll-behavior: smooth; }

body.font-inter {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-feature-settings: 'ss01' 1, 'tnum' 1;
}

body#body {
    background-color: #F6F3EC;
    background-image:
        radial-gradient(1100px 620px at 92% -8%, rgba(173, 127, 46, 0.14), transparent 60%),
        radial-gradient(900px 700px at -10% 110%, rgba(173, 127, 46, 0.08), transparent 55%);
    background-attachment: fixed;
}
body#body.dark {
    background-color: #0C0D11;
    background-image:
        radial-gradient(1200px 700px at 92% -10%, rgba(173, 127, 46, 0.10), transparent 60%),
        radial-gradient(1000px 800px at -10% 110%, rgba(173, 127, 46, 0.06), transparent 55%);
    background-attachment: fixed;
}

.brand-serif { font-family: 'Fraunces', ui-serif, Georgia, serif; }

.gradient-text {
    background-image: linear-gradient(120deg, #8C6526 0%, #C89C46 55%, #AD7F2E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sidebar-gradient {
    background-image: linear-gradient(175deg, #171920 0%, #0C0D11 62%, #0A0B0E 100%);
    position: relative;
}
.sidebar-gradient::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(173,127,46,0.35), rgba(173,127,46,0.05) 40%, transparent);
}
.modal-header-gradient {
    background-image: linear-gradient(120deg, #171920 0%, #0C0D11 100%);
}
.form-title-gradient {
    background-image: linear-gradient(120deg, #8C6526 0%, #C89C46 100%);
}

.glass-panel {
    background-color: rgba(255,255,255,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(12,13,17,0.06);
}
.dark .glass-panel {
    background-color: rgba(23,25,32,0.55);
    border: 1px solid rgba(255,255,255,0.06);
}

.brass-underline {
    display: inline-block;
    position: relative;
}
.brass-underline::after {
    content: '';
    position: absolute;
    left: 1px; right: 1px; bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #AD7F2E, rgba(173,127,46,0.15));
}

.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: rgba(120, 113, 108, 0.08); border-radius: 3px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(173, 127, 46, 0.35); border-radius: 3px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(173, 127, 46, 0.55); }

.notification {
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    transform: translateY(-150%);
    opacity: 0;
}
.notification.show {
    transform: translateY(0);
    opacity: 1;
}
.notification-progress {
    animation: progress-bar-animation linear;
}

input:focus, select:focus, textarea:focus, button:focus-visible { outline: none; }
::selection { background: rgba(173, 127, 46, 0.25); }

/* Loading Indicators */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(173, 127, 46, 0.1);
    border-top-color: #AD7F2E;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(173, 127, 46, 0.1);
    border-top-color: #AD7F2E;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-lg {
    width: 64px;
    height: 64px;
    border: 5px solid rgba(173, 127, 46, 0.1);
    border-top-color: #AD7F2E;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #8C6526;
    letter-spacing: 0.5px;
}

.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background-color: #AD7F2E;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.dark .skeleton {
    background: linear-gradient(90deg, #2a2d35 25%, #3a3d45 50%, #2a2d35 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pulse-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pulse-loader span {
    width: 12px;
    height: 12px;
    background-color: #AD7F2E;
    border-radius: 50%;
    animation: pulse 1.2s ease-in-out infinite;
}

.pulse-loader span:nth-child(2) { animation-delay: 0.2s; }
.pulse-loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}
