/* Dashboard Custom Styles */

/* Global improvements */
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Sidebar enhancements */
.sidebar .nav-item .nav-link {
    transition: all 0.3s ease;
}

.sidebar .nav-item .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar .nav-item.active .nav-link {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #fff;
    padding-left: 1.25rem;
}

/* Card enhancements */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Dashboard stat cards */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

/* Icon animations */
.card-body .fas,
.card-body .fab {
    transition: transform 0.3s ease;
}

.card:hover .fas,
.card:hover .fab {
    transform: scale(1.1);
}

/* Button enhancements */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(45deg, #4e73df, #3653c7);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #3653c7, #2e59d9);
}

/* List group enhancements */
.list-group-item {
    border: none;
    border-bottom: 1px solid #e3e6f0;
    transition: background-color 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fc;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Badge animations */
.badge {
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Topbar improvements */
.topbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/* Footer styling */
.sticky-footer {
    background-color: #f8f9fc !important;
    border-top: 1px solid #e3e6f0;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(45deg, #4e73df, #3653c7);
}

.bg-gradient-success {
    background: linear-gradient(45deg, #1cc88a, #17a673);
}

.bg-gradient-info {
    background: linear-gradient(45deg, #36b9cc, #2c9faf);
}

.bg-gradient-warning {
    background: linear-gradient(45deg, #f6c23e, #dda20a);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
    }
    
    .sidebar.toggled {
        width: 14rem;
    }
    
    .card-body {
        padding: 1.25rem 1rem;
    }
}

/* Dark mode support (for future enhancement) */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .topbar {
        background-color: rgba(45, 55, 72, 0.95) !important;
    }
}

/* Custom utilities */
.text-gradient-primary {
    background: linear-gradient(45deg, #4e73df, #3653c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg-custom {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Page load animation */
.page-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Notification styles (for future use) */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 300px;
}

/* AI-related styling */
.ai-feature {
    position: relative;
    overflow: hidden;
}

.ai-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.8s;
}

.ai-feature:hover::before {
    left: 100%;
}
