.logoimg {
    width: auto;
    height: 200px;
}

.text-brown {
    color: #672614 !important;
}

.text-justify {
    text-align: justify !important;
}

.bg-lightbrown {
    background-color: #fef5e4;
}

.htitle h1 {
    font-family: Jost;
    font-size: 18px;
    font-weight: 600;
    line-height: auto;
}

.veri-text-small {
    color: var(--3, #555);
    text-align: center;
    font-family: Jost;
    font-size: 14px;
    font-weight: 400;
    line-height: auto;
}

.themebtn {
    border-radius: 8px;
    background: var(--4, #672614);
    padding: 12px;
    color: var(--1, #FFF);
    text-align: center;
    font-family: Jost;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    display: block;
    width: 100%;
}

.email-pass-main img {
    height: 20px;
    width: auto;
}

/* Additional custom styles for login */
.email-pass-main input.is-invalid {
    border-color: #dc3545;
}

.email-pass-main input.is-valid {
    border-color: #28a745;
}

.email-pass-main .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.email-pass-main .error-message.show {
    display: block;
}

.lastlogin small {
    font-size: 10px !important;
}

.button-main {
    margin-top: 25px;
}

.button-main a {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.button-main a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

.button-main a:active {
    transform: scale(0.98);
}

.button-main a.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.button-main .spinner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.button-main .spinner.show {
    display: flex;
}

.button-main .spinner .spinner-border {
    width: 20px;
    height: 20px;
    border-width: 3px;
}

.alert-custom {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.alert-custom.show {
    display: block;
}

.alert-custom.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc3545;
}

.alert-custom.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #28a745;
}

.alert-custom.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #0dcaf0;
}

/* Biometric button */
.biometric-btn {
    display: none;
    width: 100%;
    padding: 14px;
    background: none;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
    margin-top: 15px;
}

.biometric-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.biometric-btn i {
    color: #667eea;
    margin-right: 10px;
    font-size: 18px;
}

/* Loading overlay for button */
.btn-loading .btn-text {
    display: none;
}

.btn-loading .spinner {
    display: flex !important;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .button-main a {
        padding: 14px;
        font-size: 15px;
    }
}

/* Alert Box Styling */
#alertContainer {
    margin-bottom: 20px;
}

.alert-custom {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
    border: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-custom.show {
    display: block;
}

.alert-custom.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc3545;
}

.alert-custom.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #28a745;
}

.alert-custom.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #0dcaf0;
}

.alert-custom.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #ffc107;
}

.alert-custom .alert-icon {
    margin-right: 10px;
}

.alert-custom .alert-close {
    float: right;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0 4px;
}

.alert-custom .alert-close:hover {
    opacity: 1;
}

/* Light Pastel Background Colors */

.bg-light-blue {
    background: #E3F2FD;
    color: #1565C0;
}

.bg-light-green {
    background: #E8F5E9;
    color: #2E7D32;
}

.bg-light-red {
    background: #FFEBEE;
    color: #C62828;
}

.bg-light-orange {
    background: #FFF3E0;
    color: #EF6C00;
}

.bg-light-yellow {
    background: #FFFDE7;
    color: #F9A825;
}

.bg-light-purple {
    background: #F3E5F5;
    color: #6A1B9A;
}

.bg-light-pink {
    background: #FCE4EC;
    color: #AD1457;
}

.bg-light-cyan {
    background: #E0F7FA;
    color: #00838F;
}

.bg-light-teal {
    background: #E0F2F1;
    color: #00695C;
}

.bg-light-indigo {
    background: #E8EAF6;
    color: #3949AB;
}

.bg-light-lime {
    background: #F9FBE7;
    color: #827717;
}

.bg-light-brown {
    background: #EFEBE9;
    color: #5D4037;
}

.bg-light-gray {
    background: #F5F5F5;
    color: #424242;
}

.bg-light-sky {
    background: #E1F5FE;
    color: #0277BD;
}

.bg-light-mint {
    background: #E6FFF4;
    color: #00875A;
}

.bg-light-lavender {
    background: #F4F0FF;
    color: #5E35B1;
}

.bg-light-peach {
    background: #FFF0E5;
    color: #D84315;
}

.bg-light-rose {
    background: #FFECEF;
    color: #C2185B;
}

.bg-light-aqua {
    background: #E0FFFF;
    color: #00796B;
}

.bg-light-cream {
    background: #FFF8E1;
    color: #8D6E63;
}

/* Background Colors */

.bg-brown {
    background: #5D4037;
    color: #EFEBE9;
}

.bg-red {
    background-color: #dc3545;
    color: #fff;
}

.bg-pink {
    background-color: #e83e8c;
    color: #fff;
}

.bg-purple {
    background-color: #6f42c1;
    color: #fff;
}

.bg-indigo {
    background-color: #6610f2;
    color: #fff;
}

.bg-blue {
    background-color: #0d6efd;
    color: #fff;
}

.bg-sky {
    background-color: #0dcaf0;
    color: #000;
}

.bg-cyan {
    background-color: #17a2b8;
    color: #fff;
}

.bg-teal {
    background-color: #20c997;
    color: #fff;
}

.bg-green {
    background-color: #198754;
    color: #fff;
}

.bg-lime {
    background-color: #84cc16;
    color: #000;
}

.bg-yellow {
    background-color: #ffc107;
    color: #000;
}

.bg-orange {
    background-color: #fd7e14;
    color: #fff;
}

.bg-brown {
    background-color: #8B4513;
    color: #fff;
}

.bg-gold {
    background-color: #d4af37;
    color: #000;
}

.bg-silver {
    background-color: #c0c0c0;
    color: #000;
}

.bg-black {
    background-color: #212529;
    color: #fff;
}

.bg-dark {
    background-color: #343a40;
    color: #fff;
}

.bg-gray {
    background-color: #6c757d;
    color: #fff;
}

.bg-light {
    background-color: #f8f9fa;
    color: #000;
}

.bg-white {
    background-color: #ffffff;
    color: #000;
}

.bg-maroon {
    background-color: #800000;
    color: #fff;
}

.bg-navy {
    background-color: #001f3f;
    color: #fff;
}

.bg-olive {
    background-color: #808000;
    color: #fff;
}

.bg-violet {
    background-color: #8a2be2;
    color: #fff;
}

.bg-magenta {
    background-color: #ff00ff;
    color: #fff;
}

.bg-turquoise {
    background-color: #40e0d0;
    color: #000;
}

.bg-coral {
    background-color: #ff7f50;
    color: #000;
}

.gujarati-search-wrapper {
    position: relative;
    max-width: 900px;
    margin: 16px auto 0;
    
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1.5px solid transparent;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.search-bar:focus-within {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}
.search-bar > i.fa-search {
    color: #a0aec0;
    font-size: 15px;
    flex-shrink: 0;
}
.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #1a202c;
    background: transparent;
    min-width: 0;
    padding: 0;
    font-family: 'Noto Sans Gujarati', -apple-system, sans-serif;
}
.search-bar input::placeholder {
    color: #a0aec0;
}
.clear-search-btn {
    background: none;
    border: none;
    color: #cbd5e0;
    font-size: 15px;
    padding: 4px 6px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.clear-search-btn:hover { color: #718096; }

/* Transliteration suggestions dropdown */
.transliteration-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 16px;
    right: 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}
.transliteration-suggestions.show { display: block; }
.transliteration-suggestions .trans-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s;
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
}
.transliteration-suggestions .trans-item:last-child { border-bottom: none; }
.transliteration-suggestions .trans-item:hover,
.transliteration-suggestions .trans-item.active {
    background: #f7fafc;
}
.transliteration-suggestions .trans-item .trans-num {
    color: #a0aec0;
    font-size: 12px;
    font-weight: 700;
    min-width: 18px;
}
.transliteration-suggestions .trans-item .trans-text {
    flex: 1;
    font-family: 'Noto Sans Gujarati', sans-serif;
}
.transliteration-suggestions .trans-item .trans-tag {
    font-size: 10.5px;
    color: #667eea;
    background: #f0f3ff;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 700;
}
.transliteration-suggestions .trans-item .trans-tag.tag-village { color: #d53f8c; background: #fce7f3; }
.transliteration-suggestions .trans-item .trans-tag.tag-city    { color: #3182ce; background: #dbeafe; }
.transliteration-suggestions .trans-item .trans-tag.tag-state   { color: #047857; background: #d1fae5; }
.transliteration-suggestions .trans-item .trans-tag.tag-surname { color: #b7791f; background: #fef3c7; }
.transliteration-suggestions .trans-loading,
.transliteration-suggestions .trans-empty {
    padding: 14px 16px;
    font-size: 13px;
    color: #a0aec0;
    text-align: center;
    font-style: italic;
}