/* static/css/custom.css */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --dark-color: #212529;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.hover-primary {
    transition: color 0.3s ease;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

.hover-light:hover {
    color: #fff !important;
}

/* Object Fit */
.object-fit-cover {
    object-fit: cover;
}

.transition-transform {
    transition: transform 0.5s ease;
}

.hover-lift:hover .transition-transform {
    transform: scale(1.05);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Form Styling */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Card Enhancements */
.card {
    border-radius: 10px;
    overflow: hidden;
}

/* Badge Enhancements */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

/* Button Enhancements */
.btn {
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

/* Navbar Enhancements */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(33, 37, 41, 0.95) !important;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Footer Links */
.footer-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    transform: translateX(5px);
    color: #fff !important;
}

/* Carousel Enhancements */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    .display-5 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .whatsapp-float {
        display: none !important;
    }
}

/* Dashboard Styles */
.dashboard-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

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

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s ease;
}

.stat-card:hover::before {
    transform: scale(1);
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Form Enhancements */
.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Image Preview */
.img-thumbnail {
    border-radius: 8px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.img-thumbnail:hover {
    border-color: #0d6efd;
    transform: scale(1.02);
}

/* Sticky Sidebar */
.sticky-top {
    z-index: 1020;
}

/* Action Buttons */
.btn-group-sm > .btn, .btn-sm {
    border-radius: 6px;
}

/* Alerts in Tables */
.table-warning {
    --bs-table-bg: #fff3cd;
    --bs-table-striped-bg: #f2e7c3;
    --bs-table-hover-bg: #ecdba8;
}

/* Dashboard Navigation */
.dashboard-nav .nav-link {
    color: #6c757d;
    border-radius: 8px;
    margin-bottom: 4px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.dashboard-nav .nav-link:hover,
.dashboard-nav .nav-link.active {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}

.dashboard-nav .nav-link i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}