/* Main Styles for Noor Bakery */

/* Custom Variables */
:root {
    --bakery-primary: #8B5A2B;
    --bakery-secondary: #D2B48C;
    --bakery-accent: #F5DEB3;
    --bakery-dark: #3C2415;
    --bakery-light: #FFF8E7;
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bakery-light);
    color: var(--bakery-dark);
}

.bakery-heading {
    font-family: 'Playfair Display', serif;
    color: var(--bakery-dark);
}

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

.bakery-btn-primary:hover {
    background-color: var(--bakery-dark);
    border-color: var(--bakery-dark);
    color: white;
}

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

.bakery-btn-secondary:hover {
    background-color: var(--bakery-accent);
    border-color: var(--bakery-accent);
    color: var(--bakery-dark);
}

/* Navigation */
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: bold;
}

.navbar {
    background-color: var(--bakery-primary);
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--bakery-light);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--bakery-accent);
}

/* Order Now button in navbar - ensure visibility */
.navbar .nav-item .bakery-btn-primary {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: var(--bakery-primary) !important;
    border: 2px solid white !important;
    color: white !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.navbar .nav-item .bakery-btn-primary:hover {
    background-color: white !important;
    color: var(--bakery-primary) !important;
    border-color: white !important;
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    background-color: rgba(210, 180, 140, 0.2);
    padding: 60px 0;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Category Cards */
.category-card {
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.category-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.category-title {
    background-color: rgba(60, 36, 21, 0.7);
    color: white;
    padding: 10px;
}

/* Product Cards */
.product-card {
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    height: 100%;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-price {
    font-weight: bold;
    color: var(--bakery-primary);
}

/* Featured Products Section */
.featured-products {
    padding: 40px 0;
    background-color: white;
}

/* About Section */
.about-section {
    padding: 60px 0;
    background-color: rgba(210, 180, 140, 0.1);
}

/* Gallery */
.gallery-container {
    padding: 40px 0;
}

.gallery-item {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact Form */
.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: var(--bakery-dark);
    color: var(--bakery-light);
    padding: 40px 0 20px;
}

.footer-links {
    list-style-type: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--bakery-light);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--bakery-accent);
}

.social-icons a {
    color: var(--bakery-light);
    font-size: 1.5rem;
    margin-right: 15px;
}

.social-icons a:hover {
    color: var(--bakery-accent);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
    padding-top: 20px;
}

/* Shopping Cart */
.cart-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Order Tracking */
.order-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending {
    background-color: #ffc107;
    color: #212529;
}

.status-processing {
    background-color: #17a2b8;
    color: white;
}

.status-completed {
    background-color: #28a745;
    color: white;
}

.status-canceled {
    background-color: #dc3545;
    color: white;
}

/* Admin Dashboard */
.admin-sidebar {
    background-color: var(--bakery-dark);
    min-height: calc(100vh - 56px);
    color: var(--bakery-light);
}

.admin-sidebar .nav-link {
    color: var(--bakery-light);
    padding: 10px 15px;
    margin-bottom: 5px;
}

.admin-sidebar .nav-link:hover, 
.admin-sidebar .nav-link.active {
    background-color: var(--bakery-primary);
    color: white;
    border-radius: 5px;
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
}

.admin-content {
    padding: 20px;
}

/* Admin and Staff Panel */
.list-group-item-action {
    transition: all 0.3s ease;
}

.list-group-item-action:hover {
    background-color: var(--bakery-accent);
    color: var(--bakery-dark);
}

.list-group-item-action.active {
    background-color: var(--bakery-primary);
    border-color: var(--bakery-primary);
}

.list-group-item-action i {
    width: 20px;
    text-align: center;
}

.card-header.bg-primary {
    background-color: var(--bakery-primary) !important;
}

.summary-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.summary-card .icon {
    font-size: 3rem;
    color: var(--bakery-primary);
}

.summary-card .number {
    font-size: 2rem;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .admin-sidebar {
        min-height: auto;
        margin-bottom: 20px;
    }
}

/* About Section */
.about-section {
    position: relative;
    background-color: var(--bakery-light);
    padding: 80px 0;
    border-top: 3px solid var(--bakery-primary);
    border-bottom: 3px solid var(--bakery-primary);
    margin: 60px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1555507036-ab1f4038808a?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.about-section .bakery-heading {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-section .bakery-heading:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--bakery-primary);
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-section .lead {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: var(--bakery-primary);
    font-size: 1.5rem;
}

/* Cart badge */
.cart-badge {
    position: relative;
    top: -10px;
    right: 5px;
    background-color: var(--bakery-accent);
    color: var(--bakery-dark);
}

/* Floating Order Button */
.floating-order-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--bakery-primary);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
    border: none;
    cursor: pointer;
}

.floating-order-button.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.floating-order-button:hover {
    background-color: var(--bakery-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.floating-order-button i {
    font-size: 1.2rem;
}

/* Mobile responsive floating button */
@media (max-width: 768px) {
    .floating-order-button {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .floating-order-button span {
        display: none;
    }
    
    .floating-order-button i {
        margin-right: 0 !important;
        font-size: 1.5rem;
    }
}
