/* Kichai - Main CSS */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

html {
    scroll-behavior: smooth;
}

/* Colors */
:root {
    --primary: #00A86B;
    --secondary: #2563eb;
    --dark: #0F172A;
    --light: #f8f9fa;
    --border: #e0e0e0;
    --text: #333;
    --text-light: #666;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: #008b57;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Hind Siliguri', sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #008b57;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-dark {
    background-color: var(--dark);
    color: white;
}

.btn-dark:hover {
    background-color: #1a2332;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Hind Siliguri', sans-serif;
    transition: border-color 0.3s ease;
}

select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--dark);
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    text-align: left;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.logo img {
    height: 40px;
    width: auto;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-left: auto;
}

.nav-links li {
    display: flex;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    background: linear-gradient(135deg, #0F172A 0%, #1a2f5a 100%);
    height: 500px;
    overflow: hidden;
    margin-bottom: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: grid;
    place-items: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
}

.slide-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0F172A 0%, #1a2f5a 100%);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 12px;
    width: min(92vw, 680px);
    max-width: calc(100% - 32px);
}

.hero {
    padding: 90px 0 80px;
    background: linear-gradient(135deg, #0F172A 0%, #13294b 55%, #00A86B 170%);
    color: white;
    text-align: center;
}

.hero .container {
    max-width: 980px;
}

.hero h1,
.hero p {
    color: white;
}

.hero h1 {
    font-size: clamp(34px, 4vw, 56px);
    margin-bottom: 16px;
}

.hero p {
    font-size: 18px;
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
}

.section-title {
    text-align: center;
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 34px;
    color: var(--text-light);
    font-size: 18px;
}

.feature-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    align-items: stretch;
}

.feature-card,
.contact-panel,
.contact-form-panel,
.info-panel,
.value-card {
    background: white;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    padding: 36px;
}

.feature-card,
.info-panel,
.value-card {
    text-align: center;
}

.feature-card p,
.info-panel p,
.value-card p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.stat-item {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 14px;
    padding: 18px 14px;
}

.stat-item h3 {
    margin-bottom: 4px;
}

.search-shell {
    max-width: 1080px;
    margin: 0 auto;
}

.services-section,
.contact-section {
    background-color: #f8f9fa;
}

.soft-section {
    background: #f8f9fa;
}

.slide-content h1 {
    font-size: 36px;
    color: white;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary);
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 340px;
    }
    
    .slide-content {
        padding: 20px;
        width: calc(100% - 24px);
    }
    
    .slide-content h1 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 14px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .nav-links li {
        flex: 0 1 auto;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 8px 12px;
    }

    .btn {
        padding: 10px 14px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo img {
        height: 40px;
        width: auto;
        display: inline-block;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .header-content {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .nav-links {
        gap: 5px;
    }
    
    .nav-links a {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .btn {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.service-card p {
    color: var(--text-light);
}

/* Search Card */
.search-card {
    background: white;
    border-radius: 12px;
    padding: 42px;
    box-shadow: var(--shadow-lg);
    margin-top: -44px;
    position: relative;
    z-index: 10;
    max-width: 100%;
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.card-body {
    color: var(--text-light);
}

/* Riders List */
.riders-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.rider-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.rider-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.rider-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.rider-location {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.rider-btn {
    width: 100%;
    background-color: var(--primary);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Hind Siliguri', sans-serif;
}

.rider-btn:hover {
    background-color: #008b57;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Sections */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

/* How It Works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
    background: white;
    border-radius: 16px;
    padding: 28px 22px;
    box-shadow: var(--shadow);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
    line-height: 60px;
    margin-bottom: 20px;
}

.step h3 {
    margin-bottom: 10px;
}

/* Trust Section */
.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.trust-item {
    text-align: center;
    background: white;
    border-radius: 16px;
    padding: 28px 22px;
    box-shadow: var(--shadow);
}

.trust-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Admin Login */
.login-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    margin-bottom: 10px;
}

/* Admin Dashboard */
.dashboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-hero {
    background: linear-gradient(135deg, #0F172A 0%, #12325f 52%, #00A86B 165%);
    color: white;
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow-lg);
    margin-top: 40px;
}

.dashboard-hero h2,
.dashboard-hero p {
    color: white;
    margin-bottom: 0;
}

.dashboard-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
}

.dashboard-hero-copy {
    max-width: 760px;
}

.dashboard-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: white;
    font-size: 14px;
}

.dashboard-summary {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 22px;
    display: grid;
    gap: 12px;
}

.dashboard-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
}

.dashboard-summary-item strong {
    color: white;
}

.dashboard-panel {
    background: white;
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
}

.dashboard-panel + .dashboard-panel {
    margin-top: 24px;
}

.dashboard-section-title {
    font-size: 26px;
    margin-bottom: 18px;
    text-align: left;
}

.dashboard-muted {
    color: var(--text-light);
}

.dashboard-stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
    padding: 26px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 168, 107, 0.08);
    position: relative;
    overflow: hidden;
}

.dashboard-stat-card::after {
    content: '';
    position: absolute;
    inset: auto -30px -30px auto;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(0, 168, 107, 0.08);
}

.dashboard-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 168, 107, 0.12);
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 14px;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.quick-action-card {
    display: block;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0F172A 0%, #17345e 100%);
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.24);
    color: white;
}

.quick-action-card span {
    display: block;
    font-size: 15px;
    opacity: 0.9;
    margin-top: 8px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-light);
    margin-top: 5px;
}

/* Table */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

thead {
    background-color: var(--dark);
    color: white;
}

th {
    padding: 15px;
    text-align: right;
    font-weight: 600;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

tbody tr:hover {
    background-color: var(--light);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons .btn {
    padding: 8px 12px;
    font-size: 14px;
}

.btn-edit {
    background-color: #3b82f6;
    color: white;
}

.btn-edit:hover {
    background-color: #2563eb;
}

.btn-delete {
    background-color: #ef4444;
    color: white;
}

.btn-delete:hover {
    background-color: #dc2626;
}

.btn-view {
    background-color: #8b5cf6;
    color: white;
}

.btn-view:hover {
    background-color: #7c3aed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    animation: slideDown 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--dark);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .search-card {
        padding: 20px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .header-content {
        gap: 14px;
        justify-content: center;
        text-align: center;
    }

    .nav-links {
        width: 100%;
        gap: 8px;
        justify-content: center;
        margin-left: 0;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 8px 12px;
    }

    .btn {
        padding: 10px 14px;
    }

    .feature-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .contact-panel,
    .contact-form-panel,
    .info-panel,
    .value-card {
        padding: 26px 20px;
    }

    .search-card {
        margin-top: 0;
    }

    .dashboard-hero-grid,
    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section-title {
        text-align: center;
        font-size: 22px;
    }
}
