/* Custom CSS for VCCI Website */
:root {
    --primary-color: #2C5AA0;
    --secondary-color: #1E4176;
    --accent-color: #FFD700;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Bootstrap Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

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

.btn-warning {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--dark-color);
    font-weight: 600;
}

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

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    color: #444242;
}

    .nav-link:hover {
        color: var(--accent-color) !important;
    }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0;
    margin-top: 0;
}

    .hero-section h1 {
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

    .hero-section .lead {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

/* Page Header */
.page-header {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Search Section */
.search-section {
    padding: 60px 0;
}

    .search-section .card {
        border: none;
        border-radius: 15px;
    }

/* Main Content Sections */
.section-header h3 {
    font-weight: 600;
    color: var(--dark-color);
}

.listings-container {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

    .listings-container::-webkit-scrollbar {
        width: 6px;
    }

    .listings-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .listings-container::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }

/* Listing Cards */
.listing-card .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.business-logo img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.contact-info i {
    color: var(--primary-color);
    width: 16px;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.1);
    }

    .form-control.is-invalid {
        border-color: var(--danger-color);
    }

    .form-control.is-valid {
        border-color: var(--success-color);
    }

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* OTP Inputs */
.otp-input {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

    .otp-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
    }

.otp-icon i {
    color: var(--primary-color);
}

/* Contact Page */
.contact-item {
    padding: 20px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

    .contact-item:hover {
        background: #e9ecef;
        transform: translateY(-2px);
    }

.contact-icon i {
    color: var(--primary-color);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
}

/* Admin Styles */
.admin-sidebar {
    background: var(--dark-color);
    min-height: 100vh;
    padding: 0;
}

    .admin-sidebar .nav-link {
        color: #adb5bd;
        padding: 15px 20px;
        border-radius: 0;
        transition: all 0.3s ease;
    }

        .admin-sidebar .nav-link:hover,
        .admin-sidebar .nav-link.active {
            background: var(--primary-color);
            color: white;
        }

        .admin-sidebar .nav-link i {
            width: 20px;
            margin-right: 10px;
        }

.admin-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

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

    .stats-card i {
        font-size: 3rem;
        opacity: 0.8;
        margin-bottom: 15px;
    }

    .stats-card h3 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 10px;
    }

/* WhatsApp Support */
.whatsapp-support {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

    .whatsapp-support .btn {
        width: 60px;
        height: 60px;
        font-size: 31px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

    footer h5, footer h6 {
        color: white;
        font-weight: 600;
    }

    footer .social-links a {
        display: inline-block;
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        color: white;
        text-align: center;
        line-height: 40px;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

        footer .social-links a:hover {
            background: var(--accent-color);
            color: var(--dark-color);
            transform: translateY(-3px);
        }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

        .hero-section h1 {
            font-size: 2.5rem;
        }

    .listings-container {
        max-height: 400px;
    }

    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .contact-item {
        padding: 15px;
    }

    .whatsapp-support {
        bottom: 20px;
        right: 20px;
    }

        .whatsapp-support .btn {
            width: 50px;
            height: 50px;
            font-size: 1.2rem;
        }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .business-logo img {
        width: 50px;
        height: 50px;
    }

    .stats-card {
        padding: 20px;
    }

        .stats-card h3 {
            font-size: 2rem;
        }

        .stats-card i {
            font-size: 2.5rem;
        }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rounded-custom {
    border-radius: 15px;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border: 0.4em solid transparent;
    border-top: 0.4em solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success/Error Messages */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d1edff, #87ceeb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

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

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

    .btn-hover:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.loader {
    border: 10px solid #f3f3f3;
    border-top: 10px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}