/* Base styles inspired by old.css */
html, body {
    min-height: 100vh;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
    overscroll-behavior-y: none; /* Prevent elastic bounce on mobile */
}

/* Navigation styles */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #198754 !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #198754 !important;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Button styles - Global Green Theme */
.btn-primary {
    background: #198754 !important;
    border: 1px solid #198754 !important;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.2);
    color: #ffffff !important;
}

.btn-primary:hover {
    background: #146c43 !important;
    border-color: #146c43 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
    color: #ffffff !important;
}

.btn-primary:focus,
.btn-primary.focus {
    background: #146c43 !important;
    border-color: #0f5132 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.5) !important;
    color: #ffffff !important;
}

.btn-primary:active,
.btn-primary.active {
    background: #146c43 !important;
    border-color: #0f5132 !important;
    color: #ffffff !important;
}

.btn-outline-primary {
    border: 2px solid #198754;
    color: #198754;
    background: transparent;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #198754;
    border-color: #198754;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

/* Secondary button styles */
.btn-secondary {
    background: #007bff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    color: white;
}

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

.btn-outline-secondary {
    border: 2px solid #007bff;
    color: #007bff;
    background: transparent;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    color: white;
}

/* Hero section */
.hero-section {
    background: #198754;
    color: white;
    padding: 10rem 0 6rem 0;
    margin-top: 80px; 
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 12px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Features section */
.features-section {
    padding: 5rem 0;
    background: white;
}

.section-title {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature cards inspired by old.css */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(23, 162, 184, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #198754;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.feature-description {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Footer styles */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #198754;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-title:hover::after {
    width: 60px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    color: #198754;
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
}

.footer-links a:hover {
    color: #198754;
    transform: translateX(5px);
}

.footer-links a:hover i {
    color: #20c997;
}

/* Special styling for contact items */
.footer-links li:has(a[href^="mailto:"]) a,
.footer-links li:has(a[href^="tel:"]) a,
.footer-links li:has(a[href*="t.me"]) a {
    padding: 0.3rem 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-links li:has(a[href^="mailto:"]) a:hover,
.footer-links li:has(a[href^="tel:"]) a:hover,
.footer-links li:has(a[href*="t.me"]) a:hover {
    background: rgba(23, 162, 184, 0.1);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #bbb;
}

/* Privacy Page Styles - Modern Green Theme */
.privacy-page {
    padding: 8rem 0 4rem 0;
    margin-top: 80px;
    background: #ffffff;
    min-height: 100vh;
}

.privacy-header {
    padding: 2rem 0 3rem 0;
}

.privacy-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.2);
}

.privacy-title {
    font-size: 3rem;
    font-weight: 700;
    color: #212529;
    margin: 2rem 0 1rem 0;
    text-align: center;
}

.privacy-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
    text-align: center;
    font-weight: 500;
}

.privacy-content {
    background: white;
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-top: 2rem;
}

.privacy-section {
    margin-bottom: 3rem;
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.privacy-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #198754;
    position: relative;
}

.privacy-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #198754;
    border-radius: 2px;
}

.privacy-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.5rem;
}

.privacy-list {
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.privacy-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1rem;
    position: relative;
}

.privacy-list li::marker {
    color: #198754;
}

.contact-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
    border-left: 4px solid #198754;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #333;
}

.contact-item i {
    color: #198754;
    width: 20px;
}

/* FAQ Page Styles - Modern Green Theme */
.faq-accordion {
    margin-bottom: 3rem;
}

.accordion-item {
    border: none;
    margin-bottom: 1.5rem;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.accordion-button {
    background: white;
    border: none;
    padding: 1.5rem 2rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: #212529;
    border-radius: 16px !important;
    box-shadow: none;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e8 100%);
    color: #198754;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    background-image: none;
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #198754;
    font-size: 1.2rem;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.accordion-button.collapsed::after {
    transform: rotate(-90deg);
}

.accordion-button:hover {
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e8 100%);
    transform: translateY(-2px);
}

.accordion-body {
    padding: 2.5rem;
    background: white;
    border-top: 1px solid #e8f5e8;
}

.faq-list {
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.faq-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.2rem;
    position: relative;
}

.faq-list li strong {
    color: #198754;
    font-weight: 600;
}

.faq-note {
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e8 100%);
    border-left: 4px solid #198754;
    padding: 1.5rem 2rem;
    border-radius: 0 12px 12px 0;
    margin-top: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: 0 2px 10px rgba(25, 135, 84, 0.1);
}

.faq-note i {
    color: #198754;
    margin-top: 0.2rem;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.faq-note span {
    color: #495057;
    line-height: 1.7;
    font-size: 1rem;
}

.example-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3d3 100%);
    border: 1px solid #ffd700;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.example-box h5 {
    color: #b8860b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.example-box h5 i {
    color: #ffd700;
}

.example-box p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.example-box p:last-child {
    margin-bottom: 0;
}

.faq-contact .contact-info {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
}

/* Mobile responsive for FAQ */
@media (max-width: 768px) {
    .accordion-button {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1.2rem;
        font-size: 0.875rem;
    }
    
    .faq-contact .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .example-box {
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    .privacy-page {
        padding: 3rem 0 2rem 0;
        margin-top: 70px;
    }
    
    .privacy-title {
        font-size: 2rem;
    }
    
    .privacy-subtitle {
        font-size: 1rem;
    }
    
    .privacy-content {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .privacy-section h2 {
        font-size: 1.3rem;
    }
    
    .privacy-section h3 {
        font-size: 1.1rem;
    }
    
    .privacy-section p, .privacy-section li {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .contact-info {
        gap: 0.8rem;
    }
}

@media (max-width: 576px) {
    .accordion-button {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .faq-note {
        font-size: 0.75rem;
        padding: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .btn-primary, .btn-outline-primary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .privacy-title {
        font-size: 1.6rem;
    }
    
    .privacy-subtitle {
        font-size: 0.9rem;
    }
    
    .privacy-content {
        padding: 1rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .privacy-section h2 {
        font-size: 1.1rem;
    }
    
    .privacy-section h3 {
        font-size: 1rem;
    }
    
    .privacy-section p, .privacy-section li {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding: 8rem 0 4rem 0;
        margin-top: 80px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
    
    .footer {
        text-align: left;
    }
    
    .footer-title {
        margin-top: 2rem;
        text-align: left;
    }
    
    .privacy-page {
        padding: 4rem 0 2rem 0;
        margin-top: 80px;
    }
    
    .privacy-title {
        font-size: 2.2rem;
    }
    
    .privacy-content {
        padding: 2rem 1.5rem;
    }
    
    .privacy-section h2 {
        font-size: 1.5rem;
    }
    
    .contact-info {
        gap: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .btn-primary, .btn-outline-primary {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .privacy-title {
        font-size: 1.8rem;
    }
    
    .privacy-content {
        padding: 1.5rem 1rem;
    }
    
    .privacy-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
}

/* Authentication Pages Styles */
.auth-page {
    padding: 6rem 0 4rem 0;
    margin-top: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #198754;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-icon {
    width: 70px;
    height: 70px;
    background: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.8rem;
    color: #198754;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 1rem 0 0.5rem 0;
}

.auth-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Form Styles */
.auth-form {
    margin-top: 2rem;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #198754;
    z-index: 10;
    font-size: 1rem;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.8rem 1rem 0.8rem 3rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
    z-index: 1;
}

.form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.1);
    background: white;
    z-index: 1;
}

.form-control:focus + .input-icon,
.input-group .form-control:focus ~ .input-icon {
    color: #198754;
    z-index: 10;
}

.form-control::placeholder {
    color: #adb5bd;
    font-size: 0.95rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #198754;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #ff4757;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
}

/* Custom Checkbox */
.custom-checkbox {
    position: relative;
}

/* Ensure input icons remain visible during typing and focus */
.input-group .input-icon {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.form-control:focus ~ .input-icon,
.form-control:active ~ .input-icon,
.form-control[value]:not([value=""]) ~ .input-icon {
    opacity: 1 !important;
    visibility: visible !important;
    color: #198754;
}

/* Specific fix for when input has text content */
.input-group:has(.form-control:not(:placeholder-shown)) .input-icon {
    opacity: 1 !important;
    visibility: visible !important;
}

.custom-checkbox .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    background: white;
    margin-right: 0.75rem;
    position: relative;
}

.custom-checkbox .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.custom-checkbox .form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1;
}

.custom-checkbox .form-check-label {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    cursor: pointer;
}

.terms-link {
    color: #198754;
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    color: #146c43;
    text-decoration: underline;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.forgot-password {
    color: #198754;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password:hover {
    color: #146c43;
    text-decoration: underline;
}

/* Auth Button */
.auth-btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.3);
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Social Login */
.social-login .btn {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-login .btn:hover {
    border-color: #198754;
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* Auth Footer */
.auth-footer p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.auth-link {
    color: #198754;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    color: #146c43;
    text-decoration: underline;
}

/* Validation tooltip styling */
.validation-tooltip {
    position: absolute;
    background: #dc3545;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    z-index: 1000;
    max-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    line-height: 1.3;
}

.validation-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 10px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #dc3545;
}

/* Enhanced input validation states */
.form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.1);
    animation: shake 0.3s ease-in-out;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #28a745;
    background-color: #f8fff8;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.1);
}

.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Shake animation for invalid inputs */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Settings panel input group enhancements */
.settings-panel .input-group {
    position: relative;
    margin-bottom: 0.5rem;
}

/* Clear button styling */
.btn-link {
    color: #198754;
    text-decoration: none;
    font-size: 0.7rem;
}

.btn-link:hover {
    color: #138496;
    text-decoration: underline;
}

/* Mobile responsive for Auth Pages */
@media (max-width: 768px) {
    .auth-page {
        padding: 3rem 0 2rem 0;
        margin-top: 60px;
    }
    
    .auth-card {
        padding: 2.5rem 2rem;
        border-radius: 16px;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .auth-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    /* Ensure alerts stay within the normal document flow on mobile */
    .auth-card .alert {
        position: relative;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 0.75rem 1rem 0.75rem 3.2rem;
        font-size: 0.95rem;
    }
    
    .input-icon {
        left: 0.9rem;
        font-size: 0.9rem;
        z-index: 10;
        pointer-events: none;
    }
    
    .password-toggle {
        right: 0.9rem;
        font-size: 0.9rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .form-control {
        padding: 0.75rem 0.9rem 0.75rem 3.4rem;
        font-size: 0.9rem;
    }
    
    .input-icon {
        left: 1rem;
        font-size: 0.85rem;
        z-index: 10;
        pointer-events: none;
    }
    
    .password-toggle {
        right: 1rem;
        font-size: 0.85rem;
    }
    
    .form-control::placeholder {
        font-size: 0.85rem;
    }
}

/* Password fields with both icon and toggle button need extra right padding on mobile */
@media (max-width: 576px) {
    input[type="password"].form-control {
        padding-right: 3rem;
    }
}

@media (max-width: 480px) {
    input[type="password"].form-control {
        padding-right: 3.2rem;
    }
}

/* Animation for auth cards */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: slideUp 0.6s ease-out;
}

/* Dashboard Layout Styles */
.dashboard-body {
    background: #f8f9fa;
    padding-top: 70px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .dashboard-body {
        padding-left: 220px;
    }
}

/* Dashboard Navbar */
.dashboard-navbar {
    background: white !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 1.5rem;
    z-index: 1030;
    height: 70px;
}

.dashboard-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: #198754 !important;
    text-decoration: none;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #333;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.sidebar-toggle:hover {
    background: #f8f9fa;
    color: #198754;
}

/* Navbar Right Side */
.navbar-right {
    gap: 1rem;
}

.wallet-balance {
    display: flex;
    align-items: center;
}

.balance-card {
    background: #198754;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.2);
}

.balance-label {
    margin-right: 0.5rem;
}

.balance-amount {
    font-weight: 700;
    font-size: 0.7rem;
}

/* User Dropdown */
.user-dropdown {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    color: #333;
    transition: all 0.3s ease;
}

.user-dropdown:hover {
    background: #e9ecef;
    border-color: #198754;
    color: #198754;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #198754;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Dashboard styles */
.service-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.service-row:hover {
    background-color: rgba(25, 135, 84, 0.05);
}

.favorite-btn {
    cursor: pointer;
    user-select: none;
}

.favorite-btn:hover span {
    transform: scale(1.1);
}

.settings-panel {
    animation: slideDown 0.3s ease;
}

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

.countdown-timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #dc3545;
}

.table-warning {
    background-color: rgba(255, 193, 7, 0.1);
}

/* Interactive features */
.service-name {
    transition: color 0.2s ease;
}

.service-row:hover .service-name {
    color: #198754;
}

/* Dashboard compact font sizes */
.dashboard-content h1 {
    font-size: 1.5rem;
}

.dashboard-content h2 {
    font-size: 1.3rem;
}

.dashboard-content h3 {
    font-size: 1.1rem;
}

.dashboard-content h4 {
    font-size: 1rem;
}

.dashboard-content h5 {
    font-size: 0.9rem;
}

.dashboard-content h6 {
    font-size: 0.8rem;
}

.dashboard-content p {
    font-size: 0.85rem;
}

.dashboard-content .text-muted {
    font-size: 0.75rem;
}

.dashboard-content small {
    font-size: 0.7rem;
}

.dashboard-content .table {
    font-size: 0.8rem;
}

.dashboard-content .table th {
    font-size: 0.75rem;
    padding: 0.5rem;
}

.dashboard-content .table td {
    font-size: 0.8rem;
    padding: 0.5rem;
}

.dashboard-content .form-control {
    font-size: 0.8rem;
}

.dashboard-content .input-group-text {
    font-size: 0.8rem;
}

.dashboard-content .btn {
    font-size: 0.8rem;
}

.dashboard-content .fw-medium {
    font-size: 0.8rem;
}

.dashboard-content .form-check-label {
    font-size: 0.8rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .border-end {
        border-bottom: 1px solid var(--bs-border-color) !important;
        border-right: none !important;
    }
    
    .col-12.col-lg-6 {
        min-height: auto;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Enhanced button styles */
.btn-success {
    background: #198754;
    border-color: #198754;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: #146c43;
    border-color: #146c43;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.3);
}

.btn-outline-success {
    transition: all 0.3s ease;
    border-color: #198754;
    color: #198754;
}

.btn-outline-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.2);
    background-color: #198754;
    border-color: #198754;
}

/* Custom form controls */
.input-group-text {
    background-color: var(--bs-light);
    border-color: var(--bs-border-color);
    font-weight: 500;
}

.form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Table enhancements */
.table-hover tbody tr:hover {
    background-color: rgba(25, 135, 84, 0.05);
}

.sticky-top {
    z-index: 10;
}

/* Modal enhancements */
.modal-content {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--bs-border-color);
    padding: 1rem 1.5rem;
}

/* Desktop Sidebar */
.desktop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: white;
    border-right: 1px solid #dee2e6;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    padding-top: 70px;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
}

@media (min-width: 992px) {
    .desktop-sidebar {
        display: block;
    }
    
    .dashboard-body {
        padding-left: 220px;
    }
}

@media (max-width: 991.98px) {
    .desktop-sidebar {
        display: none;
    }
}

.sidebar-content {
    padding: 1.5rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #198754;
    transform: translateX(5px);
}

.nav-link.active {
    background: #198754;
    color: white;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.2);
}

.nav-link i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
}

/* Sidebar Actions */
.sidebar-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.action-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
}

.action-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    text-align: center;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1040;
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    transform: translateX(0);
    -webkit-overflow-scrolling: touch;
}

.mobile-sidebar.open {
    transform: translateX(280px);
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1039;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Mobile Sidebar Header */
.mobile-sidebar-header {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    height: 80px;
    flex-shrink: 0;
}

.sidebar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #198754;
    display: flex;
    align-items: center;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: #e9ecef;
    color: #198754;
}

/* Mobile Sidebar Content */
.mobile-sidebar-content {
    padding: 1.5rem 1rem;
    height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #198754 #f8f9fa;
}

/* Custom scrollbar for mobile sidebar */
.mobile-sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.mobile-sidebar-content::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.mobile-sidebar-content::-webkit-scrollbar-thumb {
    background: #198754;
    border-radius: 3px;
}

.mobile-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #146c43;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.mobile-user-info .user-avatar {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.user-details {
    flex: 1;
}

.user-details .user-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.user-details .user-balance {
    font-size: 0.85rem;
    color: #666;
}

/* Mobile Navigation */
.mobile-nav {
    margin-top: 1rem;
    padding-bottom: 2rem; /* Extra padding at bottom for easier scrolling */
}

.mobile-nav .nav-link {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Prevent sidebar bounce on iOS */
@supports (-webkit-overflow-scrolling: touch) {
    .mobile-sidebar {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    .mobile-sidebar-content {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* Mobile sidebar performance optimizations */
@media (max-width: 767.98px) {
    .mobile-sidebar {
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .mobile-sidebar-overlay {
        will-change: opacity;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* Global Mobile Table Responsive Styles - Enhanced Padding */
@media (max-width: 767.98px) {
    /* Base table padding increase for all tables on mobile */
    table, .table {
        font-size: 0.85rem !important;
    }
    
    .table th, .table td,
    table th, table td {
        padding: 1rem 0.75rem !important;
        font-size: 0.85rem !important;
        line-height: 1.4;
        vertical-align: middle;
    }
    
    .table-sm th, .table-sm td {
        padding: 0.9rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Special enhanced padding for service rows (already defined but ensuring consistency) */
    .service-row td {
        padding: 1rem 0.75rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Enhanced padding for history/stats tables */
    .history-table td,
    .stats-table td,
    .rental-table td {
        padding: 1.2rem 0.8rem !important;
    }
    
    /* Buttons within tables - better touch targets */
    .table .btn, table .btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
        min-height: 36px;
        min-width: 36px;
    }
    
    .table .btn-sm, table .btn-sm {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.75rem !important;
        min-height: 32px;
        min-width: 32px;
    }
    
    /* Copy buttons and action buttons in tables */
    .copy-btn, .btn-copy, .table .fa-copy {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
        min-height: 36px;
        min-width: 36px;
    }
    
    /* Table headers - better spacing */
    .table thead th,
    table thead th {
        padding: 1rem 0.75rem !important;
        font-weight: 600;
        font-size: 0.8rem !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Responsive table containers */
    .table-responsive {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Status badges in tables */
    .table .badge, table .badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
        border-radius: 6px;
    }
    
    /* TTL timers and countdown elements */
    .ttl-timer, .countdown-timer {
        font-size: 0.8rem !important;
        padding: 0.2rem 0.4rem;
        background: rgba(23, 162, 184, 0.1);
        border-radius: 4px;
    }
    
    /* Icon buttons in tables */
    .table .fas, .table .far, table .fas, table .far {
        font-size: 0.9rem !important;
        padding: 0.2rem;
    }
    
    /* Hover effects for table rows */
    .table-hover tbody tr:hover,
    table.table-hover tbody tr:hover {
        background-color: rgba(23, 162, 184, 0.08) !important;
        transform: scale(1.01);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
}

/* Extra small devices (phones in portrait mode) - Even more padding */
@media (max-width: 575.98px) {
    .table th, .table td,
    table th, table td {
        padding: 0.7rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    
    .table-sm th, .table-sm td {
        padding: 0.7rem 0.7rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Service rows get even more padding on very small screens */
    .service-row td {
        padding: 0.7rem 0.8rem !important;
    }
    
    /* Table headers on very small screens */
    .table thead th,
    table thead th {
        padding: 1.2rem 0.8rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Larger touch targets for very small screens */
    .table .btn, table .btn {
        padding: 0.6rem 0.8rem !important;
        min-height: 40px;
        min-width: 40px;
    }
    
    .copy-btn, .btn-copy {
        padding: 0.5rem 0.7rem !important;
        min-height: 40px;
        min-width: 40px;
    }
}

/* Table loading states and animations */
@media (max-width: 767.98px) {
    .table tbody tr {
        transition: all 0.2s ease;
    }
    
    .table tbody tr:active {
        background-color: rgba(23, 162, 184, 0.15) !important;
        transform: scale(0.98);
    }
    
    /* Better spacing for nested elements in table cells */
    .table td > div,
    table td > div {
        padding: 0.2rem 0;
        line-height: 1.4;
    }
    
    .table td > span,
    table td > span {
        display: inline-block;
        padding: 0.1rem 0;
    }
}

/* Improve mobile form UX */
@media (max-width: 576px) {
    .form-control {
        min-height: 48px; /* Better touch target */
        line-height: 1.4;
    }
    
    .input-icon {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .password-toggle {
        min-width: 44px;
        min-height: 44px;
    }
    
    .form-label {
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 480px) {
    .form-control {
        min-height: 44px;
    }
    
    .password-toggle {
        min-width: 40px;
        min-height: 40px;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
}

/* Service Not Listed styles */
#service-not-listed-row {
    background: rgba(25, 135, 84, 0.1);
    border-left: 3px solid #198754;
    transition: all 0.3s ease;
}

#service-not-listed-row:hover {
    background: rgba(25, 135, 84, 0.15);
    transform: translateX(2px);
    cursor: pointer;
}

#service-not-listed-row .service-name i {
    color: #198754;
}

#service-not-listed-row .service-name small {
    color: #6c757d;
    font-style: italic;
}

/* Mobile scrolling fixes */
@media (max-width: 768px) {
    /* Prevent scroll issues on mobile */
    html {
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: none;
        overscroll-behavior-y: none;
        height: auto !important;
        min-height: 100vh;
    }
    
    /* Ensure footer doesn't cause scroll jumps */
    footer {
        position: relative;
        transform: translateZ(0); /* Force hardware acceleration */
    }
    
    /* Prevent viewport jumping */
    .container, .container-fluid {
        max-width: 100%;
        overflow-x: hidden;
    }
}
