/* =========================================
   UI/UX Pro Max - Global Styles
   ========================================= */

/* --- NProgress Customization --- */
#nprogress .bar {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899) !important;
    height: 3px !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

#nprogress .peg {
    box-shadow: 0 0 15px #3b82f6, 0 0 10px #8b5cf6;
}

#nprogress .spinner-icon {
    border-top-color: #3b82f6 !important;
    border-left-color: #8b5cf6 !important;
}

/* --- Global Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- Global Transitions --- */
a,
button,
.btn,
.nav-link,
.card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Glassmorphism Utilities --- */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Enhanced Shadows --- */
.shadow-pro {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.shadow-pro-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.shadow-pro-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-2px);
}

/* --- Typography Enhancements --- */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Loader Overlay --- */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.loader-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner-pro {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spinner-pro 0.8s linear infinite;
}

@keyframes spinner-pro {
    to {
        transform: rotate(360deg);
    }
}

/* --- Phase 2: Pro Max Utilities --- */

/* Text Gradients */
.text-gradient-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-pink {
    background: linear-gradient(135deg, #e94574 0%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Sidebar Enhancements */
.nav-aside .nav-link {
    border-radius: 8px;
    margin-bottom: 4px;
    padding: 10px 15px;
    transition: all 0.2s ease;
}

.nav-aside .nav-link:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0) 100%);
    color: #3b82f6;
    transform: translateX(4px);
}

.nav-aside .nav-link.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #2563eb;
    font-weight: 600;
}

.nav-aside .nav-link i {
    transition: transform 0.2s ease;
}

.nav-aside .nav-link:hover i {
    transform: scale(1.1);
}

/* Card Pro Hover */
.card-pro-hover {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.card-pro-hover:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Modern Badges */
.badge-pro {
    padding: 0.5em 0.8em;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Modal Pro Max */
.modal-content-pro {
    border: none;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header-pro {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 1.5rem 1rem;
}

.modal-title-pro {
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.form-control-pro {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

.form-control-pro:focus {
    background-color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-gradient-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

.btn-gradient-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
    color: white;
}