/* Haul CSS
   Hemesh Singh BE2015-0979
   ITECA3-12 Project */

body {
    font-family: 'Segoe UI', 'Trebuchet MS', Verdana, sans-serif;
    background-color: #f5f7f4;
    color: #1c2b25;
    /* sticky footer: body fills the viewport so the footer can sit at the bottom */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* page content grows to fill space, pushing the footer down on short pages */
.site-content {
    flex: 1 0 auto;
    padding-bottom: 40px;
}

footer {
    flex-shrink: 0;
}

/* hero section on home page */
.hero-section {
    background: #1f6f54;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: bold;
}

.hero-section p {
    font-size: 20px;
    color: #ddd;
}

/* product cards */
.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: transform 0.2s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 15px;
}

.product-card .price {
    color: #1f6f54;
    font-size: 22px;
    font-weight: bold;
}

/* buttons */
.btn-primary {
    background-color: #1f6f54 !important;
    border-color: #1f6f54 !important;
}

.btn-primary:hover {
    background-color: #154e3b !important;
}

/* sand accent buttons (replaces Bootstrap's default yellow) */
.btn-warning {
    background-color: #e0a52e !important;
    border-color: #e0a52e !important;
    color: #1c2b25 !important;
}

.btn-warning:hover {
    background-color: #c88f22 !important;
    border-color: #c88f22 !important;
}

/* category filter bar */
.category-bar {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* login and register forms */
.auth-card {
    max-width: 480px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.auth-card h2 {
    color: #1f6f54;
    margin-bottom: 30px;
}

/* profile page */
.profile-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* order status badges */
.status-pending { background-color: #ffc107; color: black; }
.status-processing { background-color: #17a2b8; color: white; }
.status-shipped { background-color: #6f42c1; color: white; }
.status-delivered { background-color: #28a745; color: white; }
.status-cancelled { background-color: #dc3545; color: white; }

/* cart table */
.cart-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* section titles */
.section-title {
    color: #1f6f54;
    font-weight: bold;
    border-left: 5px solid #e0a52e;
    padding-left: 15px;
    margin-bottom: 25px;
}

/* sidebar */
.sidebar-widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* admin styles */
.admin-sidebar {
    background: #1f6f54;
    min-height: 100vh;
    padding-top: 20px;
}

.admin-sidebar .nav-link {
    color: #ccc;
    padding: 10px 20px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: #e0a52e;
    color: #1f6f54;
}

.admin-content {
    padding: 30px;
}

.stats-card {
    border-radius: 10px;
    padding: 25px;
    color: white;
    margin-bottom: 20px;
}

/* responsive fixes */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 30px;
    }
    .auth-card {
        margin: 20px;
        padding: 25px;
    }
}
