/* CBD Premium - Global Styles */

:root {
    --primary-color: #4caf50;
    --primary-dark: #2e7d32;
    --primary-light: #81c784;
    --surface-color: #1e1e2d;
    --surface-light: #252538;
    --background-color: #121212;
    --text-primary: #ffffff;
    --text-secondary: #b0bec5;
    --success-color: #66bb6a;
    --warning-color: #ffa726;
    --error-color: #ef5350;
    --info-color: #29b6f6;
}

html, body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background: var(--background-color);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Links */
a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Utilities */
.fw-bold {
    font-weight: 700 !important;
}

.text-center {
    text-align: center;
}

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

/* Glassmorphism effect */
.glass {
    background: rgba(30, 30, 45, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card hover animation */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow effect */
.glow {
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, 
        var(--surface-color) 25%, 
        var(--surface-light) 50%, 
        var(--surface-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Responsive utilities */
@media (max-width: 600px) {
    html {
        font-size: 14px;
    }
    
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 601px) {
    .hide-desktop {
        display: none !important;
    }
}

/* MudBlazor overrides for dark theme consistency */
.mud-table-container {
    background: transparent !important;
}

.mud-table-row:hover {
    background: rgba(76, 175, 80, 0.1) !important;
}

.mud-input-outlined .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.mud-input-outlined:hover .mud-input-outlined-border {
    border-color: var(--primary-color) !important;
}

.mud-chip {
    font-weight: 500;
}

/* Blazor error UI */
#blazor-error-ui {
    background: var(--error-color);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Print styles */
@media print {
    .mud-drawer,
    .mud-appbar {
        display: none !important;
    }
    
    .mud-main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
}