﻿
/* Custom styles for RTS forms */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
        transform: translateY(-1px);
    }

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.navbar-brand {
    font-weight: bold;
}

.dropdown-menu {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.is-invalid {
    border-color: #dc3545 !important;
}

.is-valid {
    border-color: #28a745 !important;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Home page cards */
.card:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.card-body i {
    transition: all 0.3s ease;
}

.card:hover .card-body i {
    transform: scale(1.1);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .card {
        margin-bottom: 20px;
    }
}
/* Track Application Button Styling */
.track-btn {
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

    .track-btn:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-color: #667eea;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

    .track-btn .track-text {
        font-weight: 600;
        font-size: 0.9rem;
    }

    .track-btn .marathi-small {
        font-size: 0.75rem;
        opacity: 0.8;
        line-height: 1;
        margin-top: -2px;
    }

    .track-btn:hover .marathi-small {
        opacity: 1;
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .track-btn {
        padding: 6px 12px;
    }

        .track-btn .track-text {
            font-size: 0.85rem;
        }

        .track-btn .marathi-small {
            font-size: 0.7rem;
        }
}

/* Dropdown menu icons styling */
.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}
/* Compact Service Card Styling */
.service-card {
    min-height: 180px;
    max-height: 180px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
}

    .service-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .service-card .card-body {
        padding: 15px 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .service-card .card-title {
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 5px;
        min-height: 2.4em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .service-card .card-text {
        font-size: 0.75rem;
        line-height: 1.1;
        margin-bottom: 10px;
        color: #6c757d;
        min-height: 1.5em;
    }

    .service-card i {
        margin-bottom: 8px;
    }

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

/* Header adjustments */
.display-5 {
    font-size: 2rem;
    font-weight: 600;
}

.lead {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Container adjustments */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Responsive grid gaps */
.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .service-card {
        min-height: 160px;
        max-height: 160px;
    }

        .service-card .card-body {
            padding: 12px 8px;
        }

        .service-card .card-title {
            font-size: 0.85rem;
            min-height: 2.2em;
        }

        .service-card .card-text {
            font-size: 0.7rem;
        }

    .btn-sm {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }
}

/* Extra large screens - 4 cards per row */
@media (min-width: 1400px) {
    .row-cols-xl-4 > * {
        flex: 0 0 auto;
        width: 23%;
    }
}
/* 3x3 Grid Layout for Service Cards */
.service-card {
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 10px;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: #007bff;
    }

    .service-card .card-body {
        padding: 15px 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }

    .service-card .card-title {
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 8px;
        height: 2.4em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: center;
    }

    .service-card .card-text {
        font-size: 0.75rem;
        color: #6c757d;
        margin-bottom: 10px;
        line-height: 1.1;
        text-align: center;
    }

    .service-card i {
        margin-bottom: 8px;
    }

.btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    min-width: 90px;
}

/* Ensure exactly 3 columns per row */
.row-cols-3 > * {
    flex: 0 0 auto;
    width: 33.3333%;
    max-width: 33.3333%;
}

/* Header adjustments for better spacing */
.display-5 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #495057;
}

.lead {
    font-size: 1rem;
    color: #6c757d;
}

/* Container adjustments */
.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Gap between rows and columns */
.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .row-cols-3 > * {
        width: 50%;
        max-width: 50%;
    }

    .service-card {
        height: 160px;
        min-height: 160px;
        max-height: 160px;
    }

        .service-card .card-title {
            font-size: 0.85rem;
        }

        .service-card .card-text {
            font-size: 0.7rem;
        }

    .btn-sm {
        padding: 5px 12px;
        font-size: 0.75rem;
        min-width: 80px;
    }
}

@media (max-width: 576px) {
    .row-cols-3 > * {
        width: 100%;
        max-width: 100%;
    }

    .service-card {
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .display-5 {
        font-size: 1.5rem;
    }
}
/* Change all h5 headings with text-secondary to blue */
h5.text-secondary {
    color: #0d6efd !important;
}

/* OR target specific icon */
h5:has(.fa-user-times) {
    color: #0d6efd !important;
}
