/* Login Page Styles */

/* Unified Logout Button CSS - सभी pages में same styling */
.btn-logout {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    border: none !important;
    color: white !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    text-decoration: none !important;
    font-family: 'Poppins', sans-serif !important;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 14px rgba(231, 76, 60, 0.35) !important;
}

.btn-logout .btn-label {
    color: white !important;
    font-weight: 500 !important;
}

.btn-logout i {
    color: white !important;
    font-size: 1rem !important;
}

/* Login page: NIC search as text link */
.search-nic-text {
    margin-left: 10px;
    padding: 0;
    border: none;
    background: transparent;
    color: #1565c0;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.search-nic-text:hover {
    color: #0d47a1;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* Static Background - No Animation */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    z-index: -1;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem 2.5rem 2.5rem 2.5rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    margin-bottom: 2.5rem;
    position: relative;
}

.login-header i {
    font-size: 4rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group label i {
    color: #3498db;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 4px rgba(52, 152, 219, 0.1),
        0 8px 25px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.form-group input:focus + label i {
    transform: scale(1.1);
    color: #2980b9;
}

.form-group input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

/* Input with Search Button */
.input-with-search {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-search input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 3.2rem;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
}

.input-with-search input:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 4px rgba(52, 152, 219, 0.1),
        0 8px 25px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.search-btn-inline {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
    width: 2.2rem;
    height: 2.2rem;
    z-index: 2;
}

.search-btn-inline:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.search-btn-inline:active {
    transform: translateY(-50%) scale(0.95);
}

.search-btn-inline i {
    font-size: 0.9rem;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(52, 152, 219, 0.4),
        0 5px 15px rgba(52, 152, 219, 0.2);
}

.login-btn:active {
    transform: translateY(-1px);
}

/* Login Hint Button */
.login-hint {
    text-align: center;
    margin-bottom: 1.5rem;
}

.hint-btn {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 0.75rem;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.hint-btn:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.hint-btn:active {
    transform: translateY(0);
}

.hint-btn i {
    font-size: 1.2rem;
}

/* Small Hint Button for Password Hint */
.hint-btn-small {
    background: transparent;
    color: #6c757d;
    border: none;
    padding: 0.3rem;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.hint-btn-small:hover {
    color: #3498db;
    transform: scale(1.1);
}

.hint-btn-small:active {
    transform: scale(0.95);
}

.hint-btn-small i {
    font-size: 0.9rem;
}

/* Forgot Password Link */
#forgotPasswordLink {
    color: #6c5ce7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

#forgotPasswordLink:hover {
    color: #5a4fcf;
    text-decoration: underline;
    transform: translateX(2px);
}

#forgotPasswordLink:active {
    color: #4834d4;
    transform: translateX(0);
}

#forgotPasswordLink i {
    font-size: 0.85rem;
}

/* Default Credentials Note */
.default-credentials-note {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.default-credentials-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: noteShimmer 2s infinite;
}

@keyframes noteShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.default-credentials-note p {
    color: #1976d2;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.default-credentials-note i {
    margin-right: 0.5rem;
    color: #2196f3;
}

/* School Search Section */
.school-search-section {
    margin-bottom: 2rem;
    text-align: center;
}

.search-btn {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(39, 174, 96, 0.4);
}

/* Large Modal for School Search */
.large-modal {
    max-width: 600px !important;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

.search-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.search-input-group input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(10px);
}

.search-input-group input:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.search-btn-small {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.search-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.search-btn-small i {
    font-size: 1.1rem;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.school-result-item {
    padding: 1.25rem;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 1 by 1 हल्का अलग background रंग ताकि list साफ दिखे */
.school-list .school-result-item:nth-child(odd) {
    background: #ffffff;
}

.school-list .school-result-item:nth-child(even) {
    background: #f8fbff;
}

.school-result-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(5px);
}

.school-result-item:last-child {
    border-bottom: none;
}

.school-result-item .school-id {
    font-weight: 700;
    color: #3498db;
    font-size: 1rem;
}

.school-result-item .school-name {
    color: #2c3e50;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* School Not Registered Modal specific styles */
.school-not-registered-info {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffaf3 0%, #fdebd0 100%);
    border: 1px solid #f5cba7;
}

.school-not-registered-info .info-text {
    margin-bottom: 0.75rem;
    color: #7d6608;
    font-size: 0.95rem;
}

.no-results {
    padding: 3rem 2rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 1rem;
}

/* Change NIC ID Section */
.change-nic-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.change-btn {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto;
}

.change-btn:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.change-btn i {
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease;
    overflow-y: auto; /* Allow page scroll when modal content is tall */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: 10% auto;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: slideDown 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-60px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 700;
}

.modal-content input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content input:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.4);
}

.modal-content.small-modal {
    max-width: 400px;
    padding: 2rem;
    max-height: 80vh;          /* Prevent from going out of viewport */
    overflow-y: auto;          /* Enable inner scroll for long content */
}

.modal-content.small-modal h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.modal-content.small-modal h3 i {
    color: #667eea;
    margin-right: 0.5rem;
}

.modal-content.small-modal .form-group {
    margin-bottom: 1rem;
}

.modal-content.small-modal .form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #495057;
    font-weight: 500;
    font-size: 0.95rem;
}

.modal-content.small-modal .form-group label i {
    color: #667eea;
    margin-right: 0.5rem;
}

.modal-content.small-modal input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Error Popup Animations */
@keyframes slideDownError {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(108, 117, 125, 0.4);
}

/* NIC Change Result */
.nic-change-result {
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 600;
}

.nic-change-result.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
}

.nic-change-result.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #dc3545;
}

.login-footer {
    margin-top: 1.0rem;
    padding: .5rem 0 0 0;
    border-top: 2px solid #e9ecef;
    background: transparent;
    border-radius: 0;
    margin: 1.0rem 0 0 0;
}

.login-footer p {
    color: #495057;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    font-weight: 500;
}

/* Footer Logo Section */
.logo-section {
    margin-bottom: 1rem;
    text-align: center;
}

.footer-logo {
    height: 1.8em;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    vertical-align: middle;
    margin-right: 0.5rem;
    cursor: pointer;
}

.footer-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.footer-logo:active {
    transform: scale(0.95);
}

/* WhatsApp Section */
.whatsapp-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.whatsapp-section p {
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.whatsapp-btn:active {
    transform: translateY(0);
}

.whatsapp-btn i {
    font-size: 1.1rem;
}

/* Error Message */
.error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    border: 2px solid #dc3545;
    font-weight: 600;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    border: 2px solid #28a745;
    font-weight: 600;
}

/* Loading State */
.login-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.login-btn.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid transparent;
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.75rem;
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .login-header i {
        font-size: 3rem;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-btn-small {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .input-with-search input {
        padding-right: 2.8rem;
    }
    
    .search-btn-inline {
        width: 2rem;
        height: 2rem;
        padding: 0.4rem;
        right: 8px;
    }
    
    .search-btn-inline i {
        font-size: 0.8rem;
    }
    
    .hint-btn {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0.5rem;
    }
    
    .hint-btn i {
        font-size: 1rem;
    }
}

/* Focus Styles for Accessibility */
button:focus,
input:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #c1c1c1 0%, #a8a8a8 100%);
    border-radius: 5px;
    border: 2px solid rgba(241, 241, 241, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a8a8a8 0%, #8f8f8f 100%);
}

/* Additional Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Floating Support (right side, partially hidden; expands on click) */
.support-fab {
    position: fixed;
    right: 12px;
    bottom: 18px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    transform: translateX(48px);
    transition: transform 0.25s ease;
}

.support-fab:hover {
    transform: translateX(18px);
}

.support-fab.active {
    transform: translateX(0);
}

.support-fab__toggle {
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    opacity: 0.92;
    font-family: inherit;
}

.support-fab__badge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #2ecc71;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.support-fab__toggle {
    position: relative;
}

.support-fab__countPill {
    margin-left: auto;
    background: #2ecc71;
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
}

.support-fab:not(.active) .support-fab__toggle {
    padding: 8px 10px;
    gap: 8px;
    opacity: 0.85;
}

.support-fab:not(.active) .support-fab__icon {
    width: 28px;
    height: 28px;
}

.support-fab:not(.active) .support-fab__icon i {
    font-size: 15px;
}

.support-fab:not(.active) .support-fab__label {
    display: inline;
    font-size: 12px;
    opacity: 0.75;
}

.support-fab__toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    opacity: 1;
}

.support-fab__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.18);
}

.support-fab__icon i {
    font-size: 18px;
}

.support-fab__label {
    font-weight: 700;
    letter-spacing: 0.2px;
    font-size: 14px;
    opacity: 0.85;
}

.support-fab__menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    min-width: 220px;
}

.support-fab.active .support-fab__menu {
    display: flex;
}

.support-fab__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

button.support-fab__item {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.support-fab__item:hover {
    background: rgba(231, 76, 60, 0.10);
    transform: translateX(-2px);
}

.support-fab__item i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex: 0 0 30px;
}

.support-fab__item.call i { background: #27ae60; }
.support-fab__item.email i { background: #e74c3c; }
.support-fab__item.whatsapp i { background: #25D366; }
.support-fab__item.livechat i { background: #3498db; }
.support-fab__item.manual i { background: #9b59b6; }

.support-fab__item span {
    font-size: 14px;
    font-weight: 700;
}

/* Support Chat Modal (User) */
.support-chat-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 14px;
}

.support-chat-modal.active {
    display: flex;
}

.support-chat-card {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    overflow: hidden;
}

.support-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: #fff;
}

.support-chat-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.support-chat-close {
    border: none;
    background: rgba(255,255,255,0.18);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
}

.support-chat-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-chat-meta {
    font-size: 0.9rem;
    color: #666;
}

.support-chat-messages {
    height: 260px;
    overflow: auto;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-chat-bubble {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: break-word;
    position: relative;
}

.support-chat-metaRow {
    margin-top: 4px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.75rem;
    color: #888;
}

.support-chat-metaRow .time {
    color: #8c8c8c;
}

.support-chat-metaRow .ticks {
    font-weight: 900;
    letter-spacing: -1px;
    color: #9aa0a6;
}

.support-chat-metaRow .ticks.seen {
    color: #25D366;
}

.support-chat-dateHeader {
    align-self: center;
    background: rgba(0,0,0,0.06);
    color: #555;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    margin: 6px 0;
}

.support-chat-bubble.user {
    align-self: flex-end;
    background: #eaf3ff;
    border: 1px solid rgba(52, 152, 219, 0.25);
}

.support-chat-bubble.admin {
    align-self: flex-start;
    background: #fff6e6;
    border: 1px solid rgba(243, 156, 18, 0.25);
}

.support-chat-inputRow {
    display: flex;
    gap: 10px;
}

.support-chat-inputRow textarea {
    flex: 1;
    resize: none;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 10px 12px;
    font-family: inherit;
    min-height: 44px;
    outline: none;
}

.support-chat-send {
    border: none;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .support-fab {
        right: 10px;
        bottom: 14px;
        transform: translateX(40px);
    }

    .support-fab:hover {
        transform: translateX(16px);
    }

    .support-fab__toggle {
        padding: 10px 12px;
        gap: 8px;
    }

    .support-fab:not(.active) .support-fab__toggle {
        padding: 7px 9px;
        gap: 6px;
    }

    .support-fab__icon {
        width: 32px;
        height: 32px;
    }

    .support-fab:not(.active) .support-fab__icon {
        width: 26px;
        height: 26px;
    }

    .support-fab:not(.active) .support-fab__icon i {
        font-size: 14px;
    }

    .support-fab__label {
        font-size: 13px;
    }

    .support-fab__menu {
        min-width: 210px;
    }
}

/* Glass Morphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* Developer Modal Specific Styles - close button shows only when scrolled down */
.modal[style*="display: flex"] {
    align-items: center !important;
    justify-content: center !important;
}

/* Ensure modal works well on desktop */
@media (min-width: 769px) {
    .modal[style*="display: flex"] {
        padding: 20px !important;
    }
    
    .modal-content[style*="overflow-y: auto"] {
        max-height: calc(100vh - 40px) !important;
        margin: 0 auto !important;
        display: block !important;
    }
} 