/* General Styles */
:root {
    --primary-blue: #0d6efd;
    --primary-orange: #ff6b00;
    --primary-yellow: #ffd700;
    --primary-red: #dc3545;
    --dark-black: #1a1a1a;
    --light-white: #ffffff;
    --gradient-orange-yellow: linear-gradient(135deg, #ff6b00 0%, #ffd700 100%);
    --gradient-blue-black: linear-gradient(135deg, #0d6efd 0%, #1a1a1a 100%);
    --gradient-red-orange: linear-gradient(135deg, #dc3545 0%, #ff6b00 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #ff6b00 50%, #ffd700 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(13, 110, 253, 0.3) 100%);
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 107, 0, 0.2);
}

.product-image {
    height: 200px;
    object-fit: cover;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    height: 2.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--dark-black);
}

.product-price {
    font-size: 1.1rem;
    color: var(--primary-orange);
    font-weight: 700;
}

/* Category Cards */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

/* Cart Styles */
.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/* Admin Sidebar */
.admin-sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d6efd 100%);
}

.admin-sidebar .nav-link {
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b00 0%, #ffd700 100%);
    transform: translateX(5px);
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* Admin Cards */
.stat-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 107, 0, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #ff6b00 0%, #ffd700 100%);
    border: none;
    color: var(--dark-black);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ff6b00 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4);
    color: var(--dark-black);
}

.btn-outline-primary {
    border: 2px solid #ff6b00;
    color: #ff6b00;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #ff6b00 0%, #ffd700 100%);
    border-color: #ffd700;
    color: var(--dark-black);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d6efd 100%);
    border: none;
    color: white;
    border-radius: 8px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #1a1a1a 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b00 100%);
    border: none;
    border-radius: 8px;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff6b00 0%, #dc3545 100%);
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #0d6efd 100%);
    border: none;
    border-radius: 8px;
}

.btn-success:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
}

/* Table Styles */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.table thead {
    background: linear-gradient(135deg, #0d6efd 0%, #1a1a1a 100%);
    color: white;
}

.table thead th {
    border: none;
    color: white;
    font-weight: 600;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(255, 107, 0, 0.05);
}

/* Badge Styles */
.badge {
    padding: 0.5em 0.75em;
    border-radius: 8px;
    font-weight: 600;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alert-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #1a1a1a 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff6b00 100%);
    color: var(--dark-black);
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b00 100%);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, #198754 0%, #0d6efd 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
    color: white;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #0d6efd 0%, #1a1a1a 100%);
    color: white;
    border: none;
    border-radius: 16px 16px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Pagination */
.pagination .page-link {
    color: #0d6efd;
    border-radius: 8px;
    margin: 0 0.25rem;
    border: 2px solid #0d6efd;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #ff6b00 0%, #ffd700 100%);
    border-color: #ffd700;
    color: var(--dark-black);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #ff6b00 0%, #ffd700 100%);
    border-color: #ffd700;
    color: var(--dark-black);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .product-image {
        height: 150px;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Toast */
.toast-container {
    z-index: 1060;
}

/* Checkout Steps */
.checkout-steps {
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active {
    background: linear-gradient(135deg, #ff6b00 0%, #ffd700 100%);
    color: var(--dark-black);
    transform: scale(1.1);
}

.step.completed {
    background: linear-gradient(135deg, #198754 0%, #0d6efd 100%);
    color: white;
}

/* Payment Methods */
.payment-method {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-method:hover,
.payment-method.selected {
    border-color: #ff6b00;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.2);
}

.payment-method i {
    font-size: 2rem;
    color: var(--primary-orange);
}

/* Order Status */
.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.order-status.pending {
    background: linear-gradient(135deg, #ffc107 0%, #ff6b00 100%);
    color: var(--dark-black);
}

.order-status.confirmed {
    background: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
    color: white;
}

.order-status.processing {
    background: linear-gradient(135deg, #0d6efd 0%, #1a1a1a 100%);
    color: white;
}

.order-status.shipped {
    background: linear-gradient(135deg, #6f42c1 0%, #0d6efd 100%);
    color: white;
}

.order-status.delivered {
    background: linear-gradient(135deg, #198754 0%, #0d6efd 100%);
    color: white;
}

.order-status.cancelled {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b00 100%);
    color: white;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.15);
}

.card-header {
    border-radius: 12px 12px 0 0;
    font-weight: 600;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.navbar-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d6efd 100%);
}

.navbar-brand {
    font-weight: 700;
    color: #ffd700 !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700 !important;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d6efd 100%);
    color: white;
}

footer a {
    color: #ffd700;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ff6b00;
}

/* Section Headers */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-black);
    font-weight: 700;
}

.text-primary {
    color: var(--primary-orange) !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b00 0%, #ffd700 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ff6b00 100%);
}
