:root {
    --primary: #FF4D8D;
    --primary-light: #FF8DAD;
    --primary-dark: #D6336C;
    --secondary: #F8BBD0;
    --dark: #333333;
    --light: #FFFFFF;
    --gray-light: #F9F0F3;
    --gray: #E0E0E0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--gray-light);
    color: var(--dark);
}

/* Navbar Styles */
.navbar {
    background-color: var(--primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.5rem;
    color: var(--light) !important;
}

.nav-link {
    color: var(--light) !important;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--gray-light) !important;
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--primary-light);
    color: var(--light);
    font-weight: 600;
    border: none;
    padding: 1rem 1.5rem;
}

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

.card-title {
    color: var(--primary-dark);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: white;
    border-top: 1px solid var(--secondary);
    padding: 1rem 1.5rem;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(255, 77, 141, 0.2);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 6px 8px rgba(255, 77, 141, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--light);
    border-color: var(--gray);
    color: var(--primary);
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--gray-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 30px;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #FF3860;
    border-color: #FF3860;
    border-radius: 30px;
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 1px solid var(--gray);
    padding: 0.6rem 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 77, 141, 0.25);
}

.form-label {
    color: var(--primary-dark);
    font-weight: 500;
}

/* Utility Classes */
.section-title {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--primary-light);
    display: inline-block;
    padding-bottom: 0.5rem;
}

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

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

.price-tag {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.category-badge {
    background-color: var(--secondary);
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.table thead {
    background-color: var(--primary);
    color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(248, 187, 208, 0.2);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Admin Panel Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.card-header {
    padding: 1.5rem;
}

/* Button Styles */
.btn-primary {
    background-color: #4e73df;
    border-color: #4e73df;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #2e59d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Table Styles */
.table {
    font-size: 0.95rem;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Login Form Specific */
.login-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Animation Classes */
.animate__animated {
    animation-duration: 0.5s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
}

.login-container {
    max-width: 450px;
    width: 100%;
    animation: slideUp 0.8s ease-out;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-card {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    z-index: -1;
    opacity: 0.1;
}

.login-header {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 2rem;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    animation: fadeIn 0.5s ease-in;
}

.login-body {
    padding: 2.5rem;
    animation: fadeIn 0.8s ease-in;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.6s ease-in;
}

.login-subtitle {
    opacity: 0.8;
    font-size: 1rem;
    animation: fadeIn 0.7s ease-in;
}

.error {
    animation: shake 0.5s ease-in-out;
}

.btn-login {
    animation: pulse 2s infinite;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Product Card Specific */
.product-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 77, 141, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .overlay {
    opacity: 1;
}

.stock-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.out-of-stock {
    background-color: #FF3860;
}

/* Filter sidebar */
.filter-section {
    border-radius: 16px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-title {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
}