/**
 * =====================================================
 * YOUMEPROJECT - MAIN STYLESHEET
 * =====================================================
 * इस CSS फाइल में पूरी वेबसाइट की स्टाइलिंग है
 * =====================================================
 */

/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --whatsapp-color: #25d366;
    --facebook-color: #3b5998;
    --instagram-color: #e4405f;
    --youtube-color: #ff0000;
    
    --font-primary: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    --font-hindi: 'Noto Sans Devanagari', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f5f5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #0056b3;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== TOP BAR ==================== */
.top-bar {
    font-size: 0.9rem;
}

.top-bar i {
    color: var(--primary-color);
}

/* ==================== NAVIGATION ==================== */
.navbar {
    padding: 0.8rem 0;
}

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

.logo-text {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color) !important;
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
}

.dropdown-menu-large {
    min-width: 280px;
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.dropdown-item i {
    width: 20px;
}

/* ==================== HERO SECTION / BANNER SLIDER ==================== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3;
}

.banner-nav:hover {
    background: rgba(255,255,255,0.4);
}

.banner-nav.prev {
    left: 20px;
}

.banner-nav.next {
    right: 20px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.banner-dot.active {
    background: white;
    transform: scale(1.2);
}

/* ==================== SECTION STYLES ==================== */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    margin: 1rem auto;
    border-radius: 2px;
}

/* ==================== SERVICE CARDS ==================== */
.service-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    border: 1px solid #e9ecef;
}

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

.service-card .card-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: none;
}

.service-card .card-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card .card-body {
    padding: 1.5rem;
}

.service-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.service-card .card-text {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-card .btn {
    width: 100%;
    padding: 0.8rem;
    font-weight: 500;
}

/* ==================== CATEGORY CARDS ==================== */
.category-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e9ecef;
}

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

.category-card .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.category-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==================== SHOP CARDS ==================== */
.shop-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e9ecef;
}

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

.shop-card .shop-image {
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.shop-card .shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-card .shop-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.shop-card .card-body {
    padding: 1.5rem;
}

.shop-card .shop-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.shop-card .shop-location {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.shop-card .shop-location i {
    color: var(--danger-color);
}

.shop-card .shop-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shop-card .shop-services span {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
}

.shop-card .shop-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.shop-card .shop-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success-color);
}

/* ==================== SEARCH BOX ==================== */
.search-box {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.search-box .form-control {
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-box .btn {
    padding: 1rem 2rem;
    font-weight: 600;
}

/* ==================== STATS SECTION ==================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==================== FEATURES SECTION ==================== */
.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-item .feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-item .feature-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-item .feature-content p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* ==================== SERVICE DETAIL PAGE ==================== */
.service-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.service-detail-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-detail-header .breadcrumb {
    background: transparent;
    padding: 0;
}

.service-detail-header .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.service-detail-header .breadcrumb-item.active {
    color: white;
}

.service-info-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.service-info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e9ecef;
}

.documents-list {
    list-style: none;
    padding: 0;
}

.documents-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.documents-list li:last-child {
    border-bottom: none;
}

.documents-list li i {
    color: var(--success-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* ==================== APPLICATION FORM ==================== */
.application-form {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.application-form .form-label {
    font-weight: 500;
    color: var(--dark-color);
}

.application-form .form-control,
.application-form .form-select {
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
}

.application-form .form-control:focus,
.application-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ==================== PAYMENT SECTION ==================== */
.payment-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
}

.payment-section .fee-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--success-color);
}

.payment-section .qr-code {
    max-width: 250px;
    margin: 1.5rem auto;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.payment-section .upi-id {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-family: monospace;
    font-size: 1.1rem;
    margin: 1rem 0;
    border: 2px dashed var(--primary-color);
}

/* ==================== TABS ==================== */
.nav-tabs-custom {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.nav-tabs-custom .nav-link {
    border: none;
    padding: 1rem 2rem;
    font-weight: 500;
    color: var(--secondary-color);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.nav-tabs-custom .nav-link:hover {
    border-color: transparent;
    color: var(--primary-color);
}

.nav-tabs-custom .nav-link.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #1e7e34 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, var(--success-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-whatsapp {
    background: var(--whatsapp-color);
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background: #128c7e;
    color: white;
    transform: translateY(-2px);
}

/* ==================== ALERTS ==================== */
.alert {
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

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

.footer ul li a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}

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

/* ==================== FLOATING WHATSAPP BUTTON ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
}

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

/* ==================== CSC LOCATOR ==================== */
.csc-locator-form {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* ==================== TRACK APPLICATION ==================== */
.track-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.track-result {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}

.status-timeline {
    position: relative;
    padding-left: 30px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.status-item {
    position: relative;
    padding-bottom: 2rem;
}

.status-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.status-item.completed::before {
    background: var(--success-color);
    box-shadow: 0 0 0 2px var(--success-color);
}

.status-item.active::before {
    background: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
    animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ==================== ADMIN PANEL STYLES ==================== */
.admin-sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding-top: 1rem;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.8rem 1.5rem !important;
    border-radius: 0;
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white !important;
    border-left-color: var(--primary-color);
}

.admin-sidebar .nav-link i {
    width: 25px;
}

.admin-content {
    padding: 2rem;
    background: #f5f5f5;
    min-height: 100vh;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.stat-card .stat-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 991.98px) {
    .banner-slider {
        height: 350px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-md);
        margin-top: 1rem;
    }
    
    .dropdown-menu-large {
        min-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .banner-slider {
        height: 300px;
    }
    
    .banner-content h1 {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .stat-item .stat-number {
        font-size: 2rem;
    }
    
    .search-box {
        margin-top: 0;
        padding: 1.5rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .top-bar,
    .navbar,
    .footer,
    .whatsapp-float,
    .banner-nav,
    .banner-dots {
        display: none !important;
    }
    
    .banner-slider {
        height: auto !important;
    }
    
    .service-card,
    .shop-card {
        break-inside: avoid;
    }
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}
