/* assets/css/style.css */

:root {
    --bntu-green: #1a472a;
    --bntu-light-green: #2d5a3b;
    --bntu-gold: #c6a43e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-card .card-img-top {
    transition: transform 0.3s;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Buttons */
.btn-bntu {
    background-color: var(--bntu-green);
    border-color: var(--bntu-green);
    color: white;
}

.btn-bntu:hover {
    background-color: var(--bntu-light-green);
    border-color: var(--bntu-light-green);
    color: white;
}

/* Rating Stars */
.rating-stars {
    color: #ffc107;
}

.rating-stars .fas.fa-star,
.rating-stars .far.fa-star {
    font-size: 0.9rem;
}

/* Cart Badge */
.cart-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
}

/* Order Timeline */
.order-timeline {
    position: relative;
    padding-left: 30px;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bntu-green);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--bntu-green);
}

.timeline-item.completed::before {
    background: var(--bntu-gold);
    box-shadow: 0 0 0 2px var(--bntu-gold);
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Checkout Form */
.checkout-form .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Admin Sidebar */
.admin-sidebar {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3b 100%);
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    transition: all 0.3s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

.admin-sidebar .nav-link i {
    width: 25px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        padding: 0;
        margin: 0;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}