/* Kavinora Admin Portal - Custom Styles */

:root {
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --surface-light: #ffffff;
    --surface-dark: #1e293b;
    --text-primary-light: #1e293b;
    --text-primary-dark: #f1f5f9;
    --text-secondary-light: #64748b;
    --text-secondary-dark: #94a3b8;
}

/* Base Styles */
html, body {
    font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-secondary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary-light);
}

/* Card Hover Effects */
.mud-paper {
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.mud-paper:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Navigation Menu */
.mud-nav-link {
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.2s ease;
}

.mud-nav-link:hover {
    background-color: var(--primary-50) !important;
}

.mud-nav-link.active {
    background-color: var(--primary-100) !important;
    color: var(--primary-600) !important;
}

/* Buttons */
.mud-button-root {
    text-transform: none !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
}

/* Input Fields */
.mud-input-control {
    border-radius: 8px !important;
}

.mud-input-outlined .mud-input-outlined-border {
    border-radius: 8px !important;
}

/* Table Styles */
.mud-table {
    border-radius: 12px !important;
    overflow: hidden;
}

.mud-table-head .mud-table-cell {
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--text-secondary-light) !important;
}

.mud-table-row:hover {
    background-color: var(--primary-50) !important;
}

/* Chips */
.mud-chip {
    font-weight: 500 !important;
    border-radius: 6px !important;
}

/* Avatars */
.mud-avatar {
    font-weight: 600 !important;
}

/* Dialog */
.mud-dialog {
    border-radius: 16px !important;
}

/* Alerts */
.mud-alert {
    border-radius: 10px !important;
}

/* Charts */
.mud-chart {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

/* Page Transitions */
.page-enter {
    opacity: 0;
    transform: translateY(10px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Custom Classes */
.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

.animate-slideUp {
    animation: slideUp 0.4s ease-out;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .mud-drawer {
        width: 100% !important;
    }
}

/* Print styles */
@media print {
    .mud-appbar,
    .mud-drawer,
    .no-print {
        display: none !important;
    }
    
    .mud-main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
}
