/* Awoof Market Modern Design System */

/* CSS Variables for Consistent Theming */
:root {
    /* Primary Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    /* Neutral Colors */
    --dark: #1f2937;
    --darker: #111827;
    --light: #f8fafc;
    --lighter: #ffffff;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* Global Base Styles */
html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--lighter);
}

/* Enhanced Link Styles */
a, .btn-link {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover, .btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), var(--secondary-dark));
    border: none;
    color: white;
    font-weight: 600;
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--warning));
    transform: translateY(-2px);
}

/* Form Enhancements */
.form-control, .form-select {
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    outline: none;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: var(--radius-md);
    border-left: 4px solid;
}

.alert-primary {
    background-color: rgba(37, 99, 235, 0.1);
    border-left-color: var(--primary);
    color: var(--primary-dark);
}

/* Content Spacing */
.content {
    padding-top: var(--space-xl);
}

/* Modern Blazor Error Boundary */
.blazor-error-boundary {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin: var(--space-md);
    box-shadow: var(--shadow-md);
}

.blazor-error-boundary::after {
    content: "An unexpected error has occurred. Please refresh the page.";
    font-weight: 600;
}

/* Spinner Overlay - Enhanced */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-container {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: box-shadow var(--transition-normal);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* Responsive Typography */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

/* Focus States for Accessibility */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    outline: none;
}

/* Validation States */
.valid.modified:not([type=checkbox]) {
    outline: 2px solid var(--success);
}

.invalid {
    outline: 2px solid var(--danger);
}

.validation-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

/* Darker checkbox border */
.darker-border-checkbox.form-check-input {
    border-color: #6b7280;
}

a:hover {
    text-decoration: none;
}

a {
    cursor: pointer;
}