:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}


.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero-section .btn-outline-light:hover {
    background-color: white;
    color: #0d6efd;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

.feature-card {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.icon-box {
    display: inline-block;
    padding: 20px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
}

.item-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.item-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-card-body h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

.card {
    border: none;
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

footer {
    margin-top: auto;
}

.btn {
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.badge {
    padding: 5px 10px;
    font-weight: 500;
}

.form-control, .form-select {
    border-radius: 5px;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.table {
    background: white;
}

.table thead {
    background-color: #f8f9fa;
}

.list-group-item {
    border-radius: 5px !important;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.shadow-sm {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.alert {
    border-radius: 5px;
    border: none;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .item-card img {
        height: 150px;
    }
    
    .container-fluid .row .col-md-2 {
        margin-bottom: 20px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .feature-card, .item-card {
    animation: fadeIn 0.5s ease-in-out;
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Table responsive improvements */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    overflow-x: auto;
}



.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Nav tabs styling */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 10px 20px;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background-color: transparent;
}

/* Status badges */
.badge {
    font-size: 0.85rem;
}

/* Image preview */
#imagePreview img {
    max-width: 100%;
    height: auto;
    border: 2px solid #dee2e6;
}
html, body {
    height: 100%;
    margin: 0;
}

/* Make the page a flex column so footer can sit at bottom */
body {
    display: flex;
    flex-direction: column;
}



/* ===== Footer styles ===== */
footer {
    background-color: #212529;   /* dark */
    color: #f8f9fa;              /* light text */
}

.footer-text {
    color: #f8f9fa;
    font-size: 0.9rem;
}

.footer-link {
    color: #f8f9fa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #17a2b8;
    text-decoration: underline;
    transform: translateX(3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.3);
}


