/* General Styles and Variables */
:root {
    --primary-color: #6cbd45;
    --secondary-color: #920808;
    --accent-color: #ff5722;
    --text-color: #2c3e50;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
}

/* Frontend Styles */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: white !important;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    color: var(--light-color) !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.top-bar {
    background-color: #ff5722;
    padding: 8px 0;
    color: white;
    font-size: 14px;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.top-bar a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-main {
    background-color: #920808;
}

.footer-bottom {
    background-color: #666666;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #5aa53d;
    border-color: #5aa53d;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #7a0909;
    border-color: #7a0909;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Admin Panel Styles */
.sidebar {
    width: 250px;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar .nav-link {
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.main-content {
    min-height: 100vh;
    transition: all 0.3s ease;
}

.main-content.expanded {
    margin-left: -180px;
}

/* Tables */
.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(108, 189, 69, 0.25);
}

/* Dashboard Stats */
.stats-card {
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.stats-card i {
    font-size: 2rem;
    opacity: 0.8;
}

/* Image Preview */
.image-preview {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

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

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

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

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

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-down {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.fade-in-up.visible,
.fade-in-down.visible {
    opacity: 1;
    transform: translate(0);
}

/* Staggered Animation Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-item {
        padding: 0.5rem 0;
    }

    .ms-lg-3 {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand img {
        height: 40px;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}