/* Pragati Elegant Theme - Custom Bootstrap Theme */

:root {
    /* Primary color palette - elegant and professional */
    --theme-primary: #8e44ad;       /* Rich purple */
    --theme-secondary: #2c3e50;     /* Dark blue-gray */
    --theme-accent: #e67e22;        /* Warm orange */
    --theme-success: #27ae60;       /* Green */
    --theme-info: #3498db;          /* Blue */
    --theme-warning: #f39c12;       /* Amber */
    --theme-danger: #e74c3c;        /* Red */
    
    /* Neutral colors */
    --theme-light: #f8f9fa;
    --theme-dark: #343a40;
    --theme-white: #ffffff;
    --theme-black: #000000;
    --theme-gray-100: #f8f9fa;
    --theme-gray-200: #e9ecef;
    --theme-gray-300: #dee2e6;
    --theme-gray-400: #ced4da;
    --theme-gray-500: #adb5bd;
    --theme-gray-600: #6c757d;
    --theme-gray-700: #495057;
    --theme-gray-800: #343a40;
    --theme-gray-900: #212529;
    
    /* Typography */
    --theme-font-family: 'Poppins', sans-serif;
    --theme-font-family-hindi: 'Noto Sans Devanagari', sans-serif;
    
    /* Shadows */
    --theme-shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);
    --theme-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    --theme-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);
    
    /* Gradients */
    --theme-gradient-primary: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    --theme-gradient-secondary: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    --theme-gradient-accent: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

/* Body and general styles */
body {
    font-family: var(--theme-font-family);
    color: var(--theme-gray-800);
    background-color: var(--theme-gray-100);
    line-height: 1.6;
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--theme-secondary);
    margin-bottom: 1rem;
}

.hindi-text {
    font-family: var(--theme-font-family-hindi);
}

/* Navbar styling */
.navbar {
    background: var(--theme-white) !important;
    box-shadow: var(--theme-shadow);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 600;
    color: var(--theme-primary) !important;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--theme-gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--theme-primary);
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--theme-primary);
    font-weight: 600;
}

/* Button styling */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #7d3c98;
    border-color: #7d3c98;
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
}

.btn-secondary {
    background-color: var(--theme-secondary);
    border-color: var(--theme-secondary);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #1a252f;
    border-color: #1a252f;
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.btn-accent {
    background-color: var(--theme-accent);
    border-color: var(--theme-accent);
    color: white;
}

.btn-accent:hover, .btn-accent:focus {
    background-color: #d35400;
    border-color: #d35400;
    color: white;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.btn-outline-primary {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--theme-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
}

/* Card styling */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--theme-shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--theme-shadow);
    transform: translateY(-5px);
}

.card-header {
    background-color: var(--theme-white);
    border-bottom: 1px solid var(--theme-gray-200);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

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

/* Form controls */
.form-control {
    border: 1px solid var(--theme-gray-300);
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.2rem rgba(142, 68, 173, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--theme-gray-700);
}

/* Table styling */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: var(--theme-gray-100);
    border-bottom: 2px solid var(--theme-gray-300);
    color: var(--theme-gray-700);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: rgba(142, 68, 173, 0.05);
}

/* Footer styling */
footer {
    background: var(--theme-gradient-secondary) !important;
    color: var(--theme-white);
    padding: 3rem 0 2rem;
}

footer h5, footer h6 {
    color: var(--theme-white);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

footer a {
    color: var(--theme-gray-300);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--theme-white);
    text-decoration: none;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--theme-white);
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--theme-primary);
    transform: translateY(-3px);
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-primary {
    background-color: rgba(142, 68, 173, 0.15);
    color: var(--theme-primary);
}

.alert-secondary {
    background-color: rgba(44, 62, 80, 0.15);
    color: var(--theme-secondary);
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.15);
    color: var(--theme-success);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.15);
    color: var(--theme-danger);
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 0.25rem;
}

.badge-primary {
    background-color: var(--theme-primary);
}

.badge-secondary {
    background-color: var(--theme-secondary);
}

.badge-accent {
    background-color: var(--theme-accent);
}

/* Responsive utilities */
@media (max-width: 767.98px) {
    .navbar-brand .brand-text {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.4rem 1.2rem;
    }
}

@media (max-width: 575.98px) {
    body {
        padding-top: 80px;
    }
    
    .navbar-brand img {
        height: 50px !important;
    }
    
    .navbar-brand .brand-text {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Hero section styling */
.hero-section {
    background: var(--theme-gradient-primary);
    color: var(--theme-white);
    padding: 5rem 0;
    margin-top: -20px;
    margin-bottom: 3rem;
    border-radius: 0 0 50% 50% / 20px;
}

.hero-section h1 {
    color: var(--theme-white);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Product rating styling */
.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.product-rating .fas.fa-star,
.product-rating .far.fa-star,
.product-rating .fas.fa-star-half-alt {
    color: #ffc107;
    font-size: 0.9rem;
    margin-right: 1px;
}

.product-rating .text-muted {
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Responsive adjustments for ratings */
@media (max-width: 576px) {
    .product-rating {
        justify-content: center;
    }
    
    .product-rating .fas.fa-star,
    .product-rating .far.fa-star,
    .product-rating .fas.fa-star-half-alt {
        font-size: 0.8rem;
    }
}

/* Product card styling - Enhanced for responsiveness */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--theme-shadow-sm);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--theme-shadow-md);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.product-card .card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.product-card .card-text {
    flex: 1;
    color: var(--theme-text-secondary);
    font-size: 0.9rem;
}

.product-card .price {
    font-weight: 700;
    color: var(--theme-primary);
    font-size: 1.25rem;
    margin: 0.75rem 0;
}

.product-card .product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--theme-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-card .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

/* Responsive adjustments for product cards */
@media (max-width: 767.98px) {
    .product-card .card-img-top {
        height: 180px;
    }
    
    .product-card .card-body {
        padding: 1.25rem;
    }
    
    .product-card .card-title {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-card .card-img-top {
        height: 160px;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
}

/* Testimonial styling */
.testimonial-card {
    text-align: center;
    padding: 2rem;
}

.testimonial-card .testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--theme-primary);
}

.testimonial-card .testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card .testimonial-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Utility classes */
.bg-primary-gradient {
    background: var(--theme-gradient-primary);
}

.bg-secondary-gradient {
    background: var(--theme-gradient-secondary);
}

.bg-accent-gradient {
    background: var(--theme-gradient-accent);
}

.text-primary-theme {
    color: var(--theme-primary);
}

.text-secondary-theme {
    color: var(--theme-secondary);
}

.text-accent-theme {
    color: var(--theme-accent);
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: var(--theme-shadow);
    transform: translateY(-5px);
}