@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar - Dark */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #3f3f46; /* zinc-700 */
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #52525b; /* zinc-600 */
}

/* Glass panel elements for dashboard cards */
.glass-card, .dark-glass-card {
    background: rgba(24, 24, 27, 0.6); /* zinc-900 / 0.6 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.glass-card:hover, .dark-glass-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.3); /* brand-500 hover */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Shader Button CSS (Global) */
@property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes spin {
    to { --border-angle: 360deg; }
}

.shader-button {
    position: relative;
    padding: 1px;
    border-radius: 9999px;
    background: conic-gradient(
        from var(--border-angle),
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.05) 60%,
        #93c5fd 80%,
        #d8b4fe 90%,
        rgba(255, 255, 255, 0.05) 100%
    );
    animation: spin 3s linear infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.shader-button:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

.shader-button:active {
    transform: translateY(1px);
}

.shader-button-inner {
    background: linear-gradient(180deg, #27272a 0%, #18181b 100%);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-weight: 500;
    padding: 0.875rem 1.5rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Custom Input */
.glass-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.2s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
    outline: none;
}

/* Viewport Color Scheme */
:root {
    color-scheme: dark;
}

/* Global Form Elements - Premium Glassmorphism */
input, select, textarea {
    background: rgba(9, 9, 11, 0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f4f4f5 !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* Specific Select Styling */
select {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a78bfa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.25rem !important;
    padding-right: 2.5rem !important;
}

/* Premium Glass Buttons */
.btn-glass-premium {
    background: rgba(139, 92, 246, 0.1) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    color: #a78bfa !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}

.btn-glass-premium:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2) !important;
    color: #fff !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
    opacity: 0;
}

/* Chart Canvas Responsive Container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

