/* css/styles.css */
:root {
    --primary-color: #1a3a6c;
    --secondary-color: #e63946;
    --accent-color: #f4a261;
    --light-color: #f1faee;
    --dark-color: #1d3557;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --black: #000;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color)) !important;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    transition: var(--transition);
    margin: 0 0.5rem;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 58, 108, 0.3);
}

.btn-accent {
    background: var(--accent-color);
    border: none;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-accent:hover {
    background: #e6893e;
    transform: translateY(-2px);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    border-radius: 15px 15px 0 0;
    height: 200px;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

/* WhatsApp Button Styles */
.btn-success {
    background: #25D366;
    border-color: #25D366;
}

.btn-success:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Carousel Styles */
.carousel-item img {
    border-radius: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 15px;
}

/* Product Specifications */
#productSpecifications {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

#specsContent {
    font-size: 0.9rem;
}

/* Action Buttons Container */
.d-grid.gap-2 {
    margin: 1.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-item img {
        height: 250px !important;
    }
    
    .d-grid.gap-2 .btn {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

/* Enhanced Product Badges */
.product-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    z-index: 10;
}

/* Price Styling */
.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* Table Styling in Modal */
.modal-body .table {
    margin-bottom: 1.5rem;
}

.modal-body .table td {
    border: none;
    padding: 0.5rem 0.5rem 0.5rem 0;
}

.modal-body .table td:first-child {
    font-weight: 600;
    color: var(--text-color);
    width: 40%;
}

.modal-body .table td:last-child {
    color: var(--text-light);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Features */
.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.feature-icon i {
    transition: var(--transition);
}

.feature-icon:hover i {
    transform: scale(1.2);
}

/* Testimonials */
.testimonial-card {
    border-left: 4px solid var(--accent-color);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer h4, .footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent-color);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Product Details */
.product-detail-img {
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.status-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Forms */
.form-control, .form-select {
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    background: #f8f9fa;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 58, 108, 0.1);
    background: var(--white);
}

/* Dashboard Styles */
.dashboard-card {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow);
}

.stat-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.stat-card p {
    color: var(--text-light);
    margin: 0.5rem 0 0;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h4 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary-light { background: rgba(26, 58, 108, 0.1); }
.bg-success-light { background: rgba(40, 167, 69, 0.1); }
.bg-warning-light { background: rgba(255, 193, 7, 0.1); }
.bg-info-light { background: rgba(23, 162, 184, 0.1); }

/* Print Styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
}