:root {
    --primary: #2c5aa0;
    --primary-dark: #1e3d72;
    --primary-light: #4a7bc8;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --dark: #343a40;
    --light: #f8f9fa;
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
}

/* Text Colors */
.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

/* Background Colors */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-success {
    background-color: var(--success) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
}

.bg-danger {
    background-color: var(--danger) !important;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
    }

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

    .btn-outline-primary:hover {
        background-color: var(--primary);
        border-color: var(--primary);
        color: white;
    }

/* Gradient Background */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
}

/* Card Styles */
.card {
    border: none;
    transition: all 0.3s ease;
}

    .card:hover {
        transform: translateY(-2px);
    }

.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    }

    .product-card .card-img-top {
        transition: transform 0.5s ease;
    }

    .product-card:hover .card-img-top {
        transform: scale(1.05);
    }

/* Feature Icons */
.feature-icon {
    transition: transform 0.3s ease;
}

    .feature-icon:hover {
        transform: scale(1.1);
    }

/* Success Icon */
.success-icon {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    transition: color 0.3s ease;
}

    .navbar-dark .navbar-nav .nav-link:hover {
        color: white;
    }


.navbar-nav .nav-link i {
    width: 16px;
    text-align: center;
}

.dropdown-menu .dropdown-item i {
    width: 16px;
    text-align: center;
}
/* Form Styles */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* Badge Styles */
.badge {
    font-weight: 500;
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(44, 90, 160, 0.05);
}

/* Toast Styles */
.toast {
    border-radius: 8px;
}

/* Loading Spinner */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Floating Cart Button */
.floating-cart {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1030;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

    .cart-button:hover {
        background: var(--primary-dark);
        transform: scale(1.05);
        color: white;
    }

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--warning);
    color: var(--dark);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Enhanced Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Search Section */
.search-section {
    background: white;
    padding: 2rem 0;
    margin-top: -2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

/* Quick Add Button */
.quick-add-btn {
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .quick-add-btn {
    opacity: 1;
}

/* Utility Classes */
.text-light-50 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Input Group Adjustments */
.input-group .form-control.border-start-0 {
    border-left: 0;
}

.input-group .input-group-text.border-end-0 {
    border-right: 0;
}

/* Quantity Input */
.quantity-input {
    text-align: center;
}

/* Image Styles */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .floating-cart {
        right: 10px;
        bottom: 20px;
        top: auto;
        transform: none;
    }

    .cart-button {
        width: 50px;
        height: 50px;
    }

    .hero-section .col-lg-6:last-child {
        display: none;
    }

    .navbar-collapse {
        margin-top: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .search-section {
        margin-top: -1rem;
        padding: 1.5rem 0;
    }
}


/* Admin Dashboard Styles */
.sidebar {
    transition: all 0.3s ease;
    z-index: 1000;
}

    .sidebar.collapsed {
        transform: translateX(-100%);
    }

#mainContent {
    transition: all 0.3s ease;
}

    #mainContent.expanded {
        margin-left: 0 !important;
    }

/* Stats Cards */
.stats-card {
    transition: all 0.3s ease;
}

    .stats-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    }

.icon-wrapper {
    transition: all 0.3s ease;
}

.stats-card:hover .icon-wrapper {
    transform: scale(1.1);
}

/* Action Cards */
.action-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef !important;
}

    .action-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
        border-color: var(--primary) !important;
    }

.action-icon {
    transition: all 0.3s ease;
}

.action-card:hover .action-icon {
    transform: scale(1.1);
    background-color: var(--primary) !important;
    color: white !important;
}

/* Activity Timeline */
.activity-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

    .activity-item:last-child {
        border-bottom: none;
    }

.activity-icon {
    transition: all 0.3s ease;
}

.activity-item:hover .activity-icon {
    transform: scale(1.1);
}

/* Badge Styles for Admin */
.badge.bg-opacity-10 {
    background-color: rgba(var(--bs-success-rgb), 0.1) !important;
}

/* Responsive Admin Styles */
@media (max-width: 768px) {
    .sidebar:not(.collapsed) {
        width: 100% !important;
    }

    #mainContent {
        margin-left: 0 !important;
    }

    .stats-card .card-body {
        padding: 1rem;
    }
}

/* Background Opacity Utilities */
.bg-primary.bg-opacity-10 {
    background-color: rgba(44, 90, 160, 0.1) !important;
}

.bg-success.bg-opacity-10 {
    background-color: rgba(40, 167, 69, 0.1) !important;
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-info.bg-opacity-10 {
    background-color: rgba(23, 162, 184, 0.1) !important;
}

.bg-danger.bg-opacity-10 {
    background-color: rgba(220, 53, 69, 0.1) !important;
}