/* Custom styles for Borrowers Portal */

:root {
    --primary-color: #0066cc;
    --secondary-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f9fafb;
    line-height: 1.6;
}

@media (max-width: 640px) {
    body {
        font-size: 17px;
    }
}

/* Navbar customizations */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Card styles */
.card {
    border: none;
    border-radius: 0.75rem;
}

.card-shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Form styles */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 0.2rem rgba(20, 184, 166, 0.25);
}

.btn {
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--teal-600);
    border-color: var(--teal-600);
}

.btn-primary:hover {
    background-color: var(--teal-700);
    border-color: var(--teal-700);
}

/* Dashboard styles */
.dashboard-card {
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

.stat-card {
    background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
    color: white;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Progress steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #dee2e6;
    z-index: 1;
}

.progress-step.completed::before {
    background-color: var(--secondary-color);
}

.step-number {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #dee2e6;
    color: #6c757d;
    line-height: 2rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.progress-step.completed .step-number {
    background-color: var(--secondary-color);
    color: white;
}

.progress-step.active .step-number {
    background-color: var(--teal-600);
    color: white;
}

/* File upload styles */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s;
}

.file-upload-area:hover {
    border-color: var(--teal-500);
}

.file-upload-area.dragover {
    border-color: var(--teal-500);
    background-color: rgba(20, 184, 166, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .progress-step::before {
        display: none;
    }
}

/* ========================================
   MOBILE-SPECIFIC STYLES (Common Across All Pages)
   ======================================== */

/* Mobile Typography - Base adjustments */
@media (max-width: 640px) {
    html { 
        font-size: 14px; 
    }
    
    body { 
        line-height: 1.35;
        font-size: 17px;
    }
    
    /* Mobile-friendly padding */
    .mobile-shrink { 
        padding-left: 0.5rem; 
        padding-right: 0.5rem; 
    }
    
    /* Logo sizing */
    .nav-logo { 
        height: 2.5rem; 
    }
    
    /* Footer adjustments for mobile */
    footer h3 { 
        font-size: 1.125rem !important; 
    }
    
    footer h4 { 
        font-size: 0.875rem !important; 
    }
    
    footer p { 
        font-size: 0.875rem !important; 
    }
    
    footer ul li { 
        font-size: 0.875rem !important; 
    }
    
    footer ul li button,
    footer ul li a { 
        font-size: 0.875rem !important; 
    }
    
    footer .text-xs p { 
        font-size: 0.75rem !important; 
    }
    
    /* Card adjustments */
    .card {
        border-radius: 1.25rem !important;
    }
    
    .card-body {
        padding: 1.25rem !important;
    }
    
    /* Form inputs - prevent zoom on focus */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="month"],
    input[type="week"],
    input[type="time"],
    textarea,
    select {
        font-size: 16px !important;
    }
    
    /* Button sizing */
    .btn {
        font-size: 0.9375rem !important;
        padding: 0.8rem 1.25rem !important;
    }
}

@media (max-width: 480px) {
    html { 
        font-size: 13px; 
    }
    
    body { 
        line-height: 1.3; 
    }
}

/* End Mobile-Specific Styles */

/* Utility classes */
.text-primary-custom {
    color: var(--teal-600) !important;
}

.bg-primary-custom {
    background-color: var(--teal-600) !important;
}

.border-primary-custom {
    border-color: var(--teal-600) !important;
}

.shadow-sm-custom {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.shadow-custom {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.rounded-custom {
    border-radius: 0.75rem !important;
}

/* Alert styles */
.alert-info {
    background-color: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}

.alert-success {
    background-color: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

.alert-danger {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}
