/* Global Styles */
:root {
    --primary-color: #4f46e5;
    --primary-color-light: #6366f1;
    --primary-color-dark: #4338ca;
    --secondary-color: #e5e7eb;
}

/* Utilities */
.rotate-180 {
    transform: rotate(180deg);
}

/* Layout */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Sidebar & Content Layout */
.content-area {
    margin-left: 16rem; /* w-64 = 16rem */
    transition: margin 0.3s ease;
}

@media (max-width: 768px) {
    .content-area {
        margin-left: 0;
    }
    
    body.overflow-hidden {
        overflow: hidden;
    }
}

/* Menu Items */
.menu-item.active {
    background-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-item.active div {
    background-color: #4f46e5;
    color: white;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
}

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

/* Badge Styles */
.badge-new {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
}

.badge-sale {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.badge-stock {
    background: linear-gradient(135deg, #10b981, #34d399);
}

/* Transitions and Effects */
.transition-all {
    transition: all 0.3s ease;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.25);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.35);
}

/* Form Elements */
input:focus, textarea:focus, select:focus {
    outline: none;
    --tw-ring-color: var(--primary-color);
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
    border-color: var(--primary-color);
}

/* Global Styles */

/* Menu Styles */
.sidebar {
    height: 100vh;
    position: fixed;
    width: 16rem; /* 64 = 16rem */
    overflow-y: auto;
    transition: all 0.3s;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

/* Content Area Styles */
.content-area {
    margin-left: 16rem; /* w-64 = 16rem */
    transition: all 0.3s;
    width: calc(100% - 16rem);
}

/* Footer Styles */
footer {
    width: 100%;
    background-color: #2346a0;
    color: white;
    padding-top: 2.5rem;
    padding-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    .content-area {
        margin-left: 0;
        width: 100%;
    }
}

/* Navigation Link Styles */
.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
}
.nav-link.active {
    background-color: rgba(0, 0, 0, 0.05);
    border-left: 4px solid #4f46e5;
}

/* Submenu Styles */
.submenu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}
.submenu:not(.hidden) {
    max-height: 500px;
}

/* Animation for menu transition */
.rotate-180 {
    transform: rotate(180deg);
}

.cursor-pointer {
    cursor: pointer;
} 