@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --btn-and-title-color: #2D5A27;
    --cta-btn-color: #FFBE0B;
    --icon-color: #E36414;
    --content-background-color: #F9F7F2;
    --text-color: #333333;
    --title-font-family: "Montserrat", sans-serif;
    --text-font-family: "Lato", sans-serif;
}

body {
    background-color: var(--content-background-color);
}

* {
    font-family: var(--text-font-family);
}

p {
    font-family: var(--text-font-family);
    color: var(--text-color);
}
a{
    text-decoration: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--title-font-family);
    color: var(--btn-and-title-color);
}

.simple-btn {
    background-color: var(--btn-and-title-color) !important;
    color: white !important;
}

.cta-btn {
    background-color: var(--cta-btn-color) !important;
    color: white;
}

.icon {
    color: var(--icon-color);
}

/* Header & Hero Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--title-font-family);
    font-weight: 700;
    color: var(--btn-and-title-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    font-family: var(--text-font-family);
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--btn-and-title-color) !important;
}

.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: white;
    background-image: url('images/header2.avif');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 90, 39, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--title-font-family);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--btn-and-title-color) !important;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: var(--text-font-family);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Auth Styles */
.auth-section {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('images/header2.avif');
    background-size: cover;
    background-position: center;
}

.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border: none;
}

.auth-card h2 {
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--btn-and-title-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--btn-and-title-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.25);
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--btn-and-title-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #fecaca;
}

/* Dashboard Styles */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    flex-wrap: nowrap;
}

#sidebar {
    width: 260px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    transition: all 0.3s;
    z-index: 1000;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

#sidebar .sidebar-heading {
    padding: 1.5rem 1.25rem;
    font-family: var(--title-font-family);
    font-weight: 700;
    color: var(--btn-and-title-color);
    font-size: 1.25rem;
    border-bottom: 1px solid #dee2e6;
}

#sidebar .list-group-item {
    padding: 0.8rem 1.25rem;
    background-color: transparent;
    border: none;
    color: var(--text-color);
    font-family: var(--text-font-family);
    transition: all 0.2s;
}

#sidebar .list-group-item:hover {
    background-color: #e9ecef;
    color: var(--btn-and-title-color);
}

#sidebar .list-group-item.active {
    background-color: var(--btn-and-title-color);
    color: white;
}

#sidebar .list-group-item i {
    margin-right: 10px;
}

.main-content {
    flex-grow: 1;
    background-color: #f4f7f6;
    padding: 2rem;
}

.stat-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .card-icon {
    font-size: 2rem;
    color: var(--icon-color);
}

/* Cart badge (sidebar) */
.cart-badge {
    min-width: 1.5rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991.98px) {
    #sidebar {
        margin-left: -260px;
        position: absolute;
        height: 100%;
    }

    #sidebar.active {
        margin-left: 0;
    }

    #sidebarBackdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    #sidebarBackdrop.show {
        display: block;
    }
}