@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
}

* {
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-icon {
    font-size: 150px;
    opacity: 0.1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Feature Cards */
.feature-card {
    background: white;
    color: #1e293b;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
}

/* Product Cards */
.product-card {
    background: white;
    color: #1e293b;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Product Image Styles - Updated */
.product-image {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.default-product-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.product-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.product-card:hover .product-image .image-overlay {
    opacity: 1;
}

.product-title {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.product-description {
    font-size: 0.9rem;
    line-height: 1.5;
    height: 3.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: #6c757d;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Admin Product Images */
.product-image-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    background: #f8f9fa;
}

.image-upload-preview {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.image-upload-preview:hover {
    border-color: var(--primary-color);
    background: #e3f2fd;
    transform: scale(1.02);
}

.image-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.image-upload-preview .upload-text {
    text-align: center;
    color: #6c757d;
    transition: color 0.3s ease;
}

.image-upload-preview:hover .upload-text {
    color: var(--primary-color);
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.remove-image:hover {
    background: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Image Loading States */
.product-image img[src=""] {
    opacity: 0;
}

.product-image .loading-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
}

/* Image Error Handling */
.image-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
}

/* About Section */
.about-icon {
    font-size: 200px;
    color: var(--primary-color);
    opacity: 0.1;
}

/* Section Titles */
.section-title {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
    color: white;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    border-radius: 20px;
}

/* Enhanced Button Styles */
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
    background: white;
    color: #1e293b;
}

.form-select {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
    background: white;
    color: #1e293b;
}

/* Dashboard */
.dashboard-card {
    background: white;
    color: #1e293b;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.stat-card:hover::before {
    transform: scale(1.5);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.stat-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
    font-weight: 500;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(45deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(45deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(45deg, #fef3c7, #fde68a);
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: linear-gradient(45deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

/* Tables */
.table {
    background: white;
    color: #1e293b;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
}

.table thead {
    background: var(--primary-color);
    color: white;
}

.table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table tbody td {
    padding: 1rem;
    border-color: #f1f5f9;
    vertical-align: middle;
    color: #1e293b;
}

.table tbody tr:hover {
    background: #f8fafc;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Cards */
.card {
    background: white;
    color: #1e293b;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Modal Enhancements */
.modal-content {
    background: white;
    color: #1e293b;
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 15px 15px;
    padding: 1.25rem 1.5rem;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.list-group-item {
    border: none;
    padding: 0.875rem 1.25rem;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

.list-group-item:hover {
    background: #f8fafc;
    transform: translateX(5px);
}

.list-group-item.active {
    background: var(--primary-color);
    color: white;
}

/* Search */
.form-control[type="search"] {
    border-radius: 25px;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0;
        min-height: 350px;
    }
    
    .hero-icon {
        font-size: 100px;
    }
    
    .about-icon {
        font-size: 150px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .image-upload-preview {
        width: 120px;
        height: 120px;
    }
    
    .stat-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .table-responsive {
        border-radius: 15px;
    }
}

@media (max-width: 576px) {
    .product-image {
        height: 160px;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* Loading Animation */
.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); }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

/* Utility Classes */
.shadow-soft {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.shadow-strong {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

.border-radius-lg {
    border-radius: 15px !important;
}

.text-primary-gradient {
    background: linear-gradient(45deg, var(--primary-color), #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer Styles - Clean & Organized */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* Footer Sections */
.footer-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.footer-text {
    color: #cbd5e1 !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #cbd5e1;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    border-color: var(--primary-color);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 0.25rem 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-right: 8px;
}

.footer-links a:hover::before {
    width: 20px;
}

/* Contact Info */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
    margin-left: 12px;
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-contact span {
    flex: 1;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.enamad-link {
    display: inline-block;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.enamad-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.enamad-img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
}

/* Footer Divider */
.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    margin: 2rem 0 1.5rem 0;
}

/* Copyright */
.copyright-text {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Feature Badges */
.footer-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(255,255,255,0.1);
    color: #cbd5e1;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(255,255,255,0.15);
    color: white;
    transform: translateY(-1px);
}

.feature-badge i {
    margin-left: 6px;
    color: var(--primary-color);
    font-size: 0.75rem;
}

/* Enhanced navbar */
.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* Pulse animation */
.pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Glow effect */
.glow-on-hover {
    position: relative;
    overflow: hidden;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.glow-on-hover:hover::before {
    left: 100%;
}

/* Enhanced buttons */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-warning {
    background: linear-gradient(45deg, #ffc107, #ffb300);
    border: none;
    font-weight: 600;
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(45deg, #ffb300, #ffa000);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    color: white;
}

/* Search improvements */
.search-input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: white;
}

.search-input-group .form-control {
    border: none;
    border-radius: 0;
    background: white;
    color: #333;
    padding: 0.5rem 1rem;
    height: 38px;
    box-shadow: none
}

.search-input-group .form-control:focus {
   border: none;
   box-shadow: none;
   background: white;
   color: #333;
}

.search-input-group .form-control::placeholder {
   color: #999;
   font-size: 0.9rem;
}

.search-input-group .btn {
   border: none;
   border-radius: 0;
   background: var(--primary-color);
   color: white;
   padding: 0.5rem 1rem;
   height: 38px;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.3s ease;
}

.search-input-group .btn:hover {
   background: #1d4ed8;
   transform: none;
   box-shadow: none;
}

.search-input-group .btn:focus {
   box-shadow: none;
}

/* Alternative search with border */
.search-input-group-alt {
   display: flex;
   border-radius: 25px;
   overflow: hidden;
   border: 2px solid rgba(255,255,255,0.3);
   background: rgba(255,255,255,0.1);
   backdrop-filter: blur(10px);
}

.search-input-group-alt .form-control {
   border: none;
   background: transparent;
   color: white;
   padding: 0.5rem 1rem;
   border-radius: 0;
   height: 36px;
}

.search-input-group-alt .form-control:focus {
   border: none;
   box-shadow: none;
   background: rgba(255,255,255,0.1);
   color: white;
}

.search-input-group-alt .form-control::placeholder {
   color: rgba(255,255,255,0.8);
   font-size: 0.9rem;
}

.search-input-group-alt .btn {
   border: none;
   background: rgba(255,255,255,0.2);
   color: white;
   padding: 0.5rem 1rem;
   border-radius: 0;
   height: 36px;
   transition: all 0.3s ease;
}

.search-input-group-alt .btn:hover {
   background: rgba(255,255,255,0.3);
   color: white;
   transform: none;
   box-shadow: none;
}

/* Form validation styles */
.form-control.is-valid {
   border-color: var(--success-color);
   box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.15);
}

.form-control.is-invalid {
   border-color: var(--danger-color);
   box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.15);
}

/* Value/Feature items */
.value-item {
   background: white;
   color: #1e293b;
   text-align: center;
   padding: 2rem;
   border-radius: 15px;
   box-shadow: 0 5px 20px rgba(0,0,0,0.1);
   transition: all 0.3s ease;
   height: 100%;
}

.value-item:hover {
   transform: translateY(-5px);
   box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.value-item h5 {
   color: #1e293b;
   font-weight: 600;
   margin-bottom: 1rem;
}

.value-item p {
   color: #6c757d;
   margin-bottom: 0;
}

/* Testimonial cards */
.testimonial-card {
   background: white;
   color: #1e293b;
   border-radius: 15px;
   box-shadow: 0 5px 20px rgba(0,0,0,0.1);
   transition: all 0.3s ease;
   border-left: 4px solid var(--primary-color);
}

.testimonial-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.testimonial-card p {
   color: #6c757d;
}

.testimonial-card strong {
   color: #1e293b;
}

/* Achievement cards */
.achievement-card {
   background: linear-gradient(135deg, var(--success-color), #059669);
   color: white;
   padding: 2rem;
   border-radius: 20px;
   text-align: center;
   height: 100%;
}

.achievement-card h5,
.achievement-card p {
   color: white;
}

/* Team cards */
.team-card {
   background: white;
   color: #1e293b;
   border-radius: 20px;
   box-shadow: 0 10px 30px rgba(0,0,0,0.1);
   overflow: hidden;
   transition: all 0.4s ease;
   height: 100%;
}

.team-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.team-card h5 {
   color: #1e293b;
   font-weight: 600;
}

.team-card p {
   color: #6c757d;
}

/* Contact cards */
.contact-card {
   background: white;
   color: #1e293b;
   border-radius: 20px;
   box-shadow: 0 15px 50px rgba(0,0,0,0.1);
   padding: 3rem;
   margin-top: -100px;
   position: relative;
   z-index: 3;
}

.contact-info-card {
   background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
   color: white;
   border-radius: 20px;
   padding: 2.5rem;
   height: 100%;
   position: relative;
   overflow: hidden;
}

.contact-info-card h4,
.contact-info-card h6 {
   color: white;
}

.contact-info-card p {
   color: rgba(255,255,255,0.9);
}

/* FAQ items */
.faq-item {
   background: white;
   color: #1e293b;
   border-radius: 15px;
   box-shadow: 0 5px 20px rgba(0,0,0,0.05);
   margin-bottom: 1rem;
   overflow: hidden;
}

.faq-header {
   padding: 1.5rem;
   cursor: pointer;
   border: none;
   background: none;
   width: 100%;
   text-align: right;
   display: flex;
   justify-content: space-between;
   align-items: center;
   transition: background-color 0.3s ease;
   color: #1e293b;
}

.faq-header:hover {
   background: #f8f9fa;
}

.faq-header.active {
   background: var(--primary-color);
   color: white;
}

.faq-content {
   padding: 0 1.5rem;
   max-height: 0;
   overflow: hidden;
   transition: all 0.3s ease;
   color: #6c757d;
}

.faq-content.active {
   max-height: 200px;
   padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
   .footer .col-lg-3 {
       margin-bottom: 2.5rem;
   }
   
   .footer-section {
       text-align: center;
   }
   
   .footer-title::after {
       left: 50%;
       transform: translateX(-50%);
   }
   
   .social-links {
       justify-content: center;
   }
   
   .trust-badges {
       justify-content: center;
   }
}

@media (max-width: 768px) {
   .footer {
       padding-top: 3rem;
       padding-bottom: 2rem;
   }
   
   .footer .col-md-6 {
       text-align: center;
       margin-bottom: 1.5rem;
   }
   
   .footer-badges {
       justify-content: center;
       margin-top: 1rem;
   }
   
   .copyright-text {
       text-align: center;
       margin-bottom: 1rem;
   }
   
   .contact-hero {
       padding: 4rem 0 2rem;
   }
   
   .contact-card {
       margin-top: -50px;
       padding: 2rem;
   }
   
   .contact-info-card {
       padding: 2rem;
       margin-bottom: 2rem;
   }
}

@media (max-width: 576px) {
   .footer-title {
       font-size: 1.1rem !important;
   }
   
   .footer-text,
   .footer-links a,
   .footer-contact li {
       font-size: 0.9rem;
   }
   
   .social-link {
       width: 36px;
       height: 36px;
       font-size: 1rem;
   }
   
   .feature-badge {
       padding: 0.25rem 0.5rem;
       font-size: 0.75rem;
   }
   
   .enamad-img {
       max-width: 70px;
   }
}

@media (max-width: 991px) {
   .navbar-collapse {
       background: rgba(37, 99, 235, 0.95);
       backdrop-filter: blur(10px);
       border-radius: 15px;
       padding: 1rem;
       margin-top: 1rem;
   }
   
   .navbar-collapse .mx-auto {
       margin: 1rem 0 !important;
       text-align: center;
   }
   
   .navbar-collapse .d-flex.align-items-center {
       flex-direction: column;
       gap: 1rem !important;
   }
   
   .navbar-collapse form {
       width: 100%;
   }
   
   .navbar-collapse .input-group input {
       min-width: auto !important;
   }
   
   .search-input-group,
   .search-input-group-alt {
       width: 100%;
       max-width: 300px;
       margin: 0 auto;
   }
   
   .search-input-group .form-control,
   .search-input-group-alt .form-control {
       min-width: auto !important;
   }
}

/* Animation */
.footer .col-lg-3 {
   animation: fadeInUp 0.6s ease-out both;
}

.footer .col-lg-3:nth-child(1) { animation-delay: 0.1s; }
.footer .col-lg-3:nth-child(2) { animation-delay: 0.2s; }
.footer .col-lg-3:nth-child(3) { animation-delay: 0.3s; }
.footer .col-lg-3:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
   from {
       opacity: 0;
       transform: translateY(30px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

/* Print Styles */
@media print {
   .footer {
       background: #333 !important;
       color: #000 !important;
   }
   
   body {
       background: white !important;
       color: black !important;
   }
   
   .card,
   .dashboard-card,
   .product-card,
   .feature-card {
       background: white !important;
       color: black !important;
   }
}

/* Ensure proper text colors in all contexts */
h1, h2, h3, h4, h5, h6 {
   color: #1e293b;
}

p, span, div {
   color: #6c757d;
}

.text-muted {
   color: #6c757d !important;
}

.text-primary {
   color: var(--primary-color) !important;
}

.text-success {
   color: var(--success-color) !important;
}

.text-warning {
   color: var(--warning-color) !important;
}

.text-danger {
   color: var(--danger-color) !important;
}

.text-info {
   color: var(--info-color) !important;
}

.text-dark {
   color: #1e293b !important;
}

.text-white {
   color: white !important;
}

/* Ensure proper background colors */
.bg-light {
   background-color: #f8fafc !important;
}

.bg-white {
   background-color: white !important;
}

.bg-primary {
   background-color: var(--primary-color) !important;
}

.bg-success {
   background-color: var(--success-color) !important;
}

.bg-warning {
   background-color: var(--warning-color) !important;
}

.bg-danger {
   background-color: var(--danger-color) !important;
}

.bg-info {
   background-color: var(--info-color) !important;
}

.bg-dark {
   background-color: #1e293b !important;
}

/* Fix for specific elements that might inherit wrong colors */
.card .card-title,
.card .card-text,
.feature-card h5,
.feature-card p,
.product-card .product-title,
.product-card .product-description {
   color: #1e293b;
}

.feature-card .text-muted,
.product-card .text-muted {
   color: #6c757d !important;
}

/* Specific fixes for problematic areas */
.value-item h5,
.testimonial-card strong,
.team-card h5,
.contact-card h3,
.contact-card h5,
.contact-card h6,
.faq-header span {
   color: #1e293b !important;
}

.value-item p,
.testimonial-card p,
.team-card p,
.contact-card p,
.faq-content p {
   color: #6c757d !important;
}