/* Dhenevarna Custom Styles */

:root {
    --primary-color: #28a745;
    --secondary-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

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

/* Header */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Product Cards */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

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

/* Cart Styles */
.cart-item {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
}

.cart-summary {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1.5rem;
    position: sticky;
    top: 20px;
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quantity-input input {
    width: 60px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.25rem;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float button {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
    background: #25d366 !important;
    border: none !important;
    color: white !important;
}

.whatsapp-float button:hover {
    background: #128c7e !important;
    transform: scale(1.1);
}

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

/* New Homepage Styles */
.min-vh-50 {
    min-height: 50vh;
}

.hero-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.btn-gradient {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    font-weight: 600;
}

.btn-gradient:hover {
    background: linear-gradient(45deg, #20c997, #28a745);
    color: white;
    transform: translateY(-2px);
}

.category-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.price-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Toast Notifications */
.alert {
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Category Sidebar */
.list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
}

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

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Success Alert Styling */
.alert-success {
    border-left: 4px solid #28a745;
    background: linear-gradient(90deg, #d4edda, #f8f9fa);
}

/* Header Improvements */
.navbar {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 5px;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745 !important;
}

/* Footer Improvements */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

footer a:hover {
    color: #20c997 !important;
    transition: all 0.3s ease;
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Category Card Improvements */
.bg-gradient-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

/* Badge Improvements */
.badge {
    font-size: 0.7rem;
}

/* Social Media Icons */
footer .fab:hover {
    transform: scale(1.2);
    transition: all 0.3s ease;
}

/* Admin Dashboard Styles */
.admin-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.1;
}

.admin-avatar {
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.admin-nav {
    backdrop-filter: blur(10px);
    border-bottom: 3px solid #e9ecef;
}

.admin-nav .nav-pills .nav-link {
    border-radius: 25px;
    font-weight: 600;
    padding: 12px 24px;
    margin: 0 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.admin-nav .nav-pills .nav-link:hover {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    transform: translateY(-2px);
}

.admin-nav .nav-pills .nav-link.active {
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
}

.stats-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.stats-icon {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
}

.status-dot {
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 10px rgba(40, 167, 69, 0.5); }
    50% { box-shadow: 0 0 20px rgba(40, 167, 69, 0.8); }
    100% { box-shadow: 0 0 10px rgba(40, 167, 69, 0.5); }
}

.status-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.order-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-badge {
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    font-size: 1.1rem;
}

.list-group-item {
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateX(5px);
}

/* Responsive Admin Styles */
@media (max-width: 768px) {
    .admin-header {
        text-align: center;
    }
    
    .admin-header .display-5 {
        font-size: 2rem;
    }
    
    .admin-nav .nav-pills {
        flex-direction: column;
    }
    
    .admin-nav .nav-pills .nav-link {
        margin: 2px 0;
        text-align: center;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
}

/* Blog Post Styles */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-body {
    color: #495057;
}

.content-body p {
    margin-bottom: 1.5rem;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

/* Blog Hero Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post .display-4 {
    animation: fadeInDown 0.8s ease-out;
}

/* Sidebar Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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