/* Quick Credit Online - Public Styles */

/* Reset and Base Styles */
.qco-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.qco-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.qco-col {
    padding: 0 15px;
    flex: 1;
}

.qco-col-half {
    flex: 0 0 50%;
    padding: 0 15px;
}

.qco-col-third {
    flex: 0 0 33.333%;
    padding: 0 15px;
}

/* Typography */
.qco-heading {
    color: #2c3e50;
    margin-bottom: 20px;
}

.qco-heading-1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.qco-heading-2 {
    font-size: 2rem;
    font-weight: 600;
}

.qco-heading-3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.qco-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Forms */
.qco-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.qco-form-group {
    margin-bottom: 20px;
}

.qco-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.qco-form-label.required:after {
    content: " *";
    color: #e74c3c;
}

.qco-form-input,
.qco-form-select,
.qco-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.qco-form-input:focus,
.qco-form-select:focus,
.qco-form-textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.qco-form-input.error,
.qco-form-select.error,
.qco-form-textarea.error {
    border-color: #e74c3c;
}

.qco-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.qco-form-checkbox {
    margin-right: 8px;
}

.qco-form-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.qco-form-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.qco-form-help {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* File Upload Styles */
.qco-file-upload {
    width: 100%;
    padding: 12px;
    border: 2px dashed #dee2e6;
    border-radius: 5px;
    background-color: #f8f9fa;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qco-file-upload:hover {
    border-color: #007cba;
    background-color: #e7f3ff;
}

.qco-file-upload:focus {
    border-color: #007cba;
    background-color: #e7f3ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.qco-file-upload.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.qco-file-feedback {
    margin-top: 8px;
    font-size: 14px;
}

.qco-file-feedback .qco-form-help {
    color: #28a745;
    margin-top: 0;
}

.qco-file-feedback .qco-form-error {
    margin-top: 0;
}

/* Buttons */
.qco-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.qco-btn-primary {
    background-color: #007cba;
    color: white;
}

.qco-btn-primary:hover {
    background-color: #005a87;
    color: white;
}

.qco-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.qco-btn-secondary:hover {
    background-color: #545b62;
    color: white;
}

.qco-btn-success {
    background-color: #28a745;
    color: white;
}

.qco-btn-success:hover {
    background-color: #1e7e34;
}

.qco-btn-danger {
    background-color: #dc3545;
    color: white;
}

.qco-btn-danger:hover {
    background-color: #c82333;
}

.qco-btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

.qco-btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.qco-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.qco-btn-loading {
    position: relative;
    color: transparent;
}

.qco-btn-loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: qco-spin 1s linear infinite;
}

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

/* Cards */
.qco-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
}

.qco-card-header {
    border-bottom: 1px solid #e1e8ed;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.qco-card-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
}

.qco-card-body {
    padding: 0;
}

/* Alerts */
.qco-alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.qco-alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.qco-alert-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.qco-alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.qco-alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Progress Steps */
.qco-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
}

.qco-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.qco-progress-step:not(:last-child):after {
    content: "";
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: #e1e8ed;
    z-index: 1;
}

.qco-progress-step.completed:not(:last-child):after {
    background-color: #28a745;
}

.qco-progress-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e1e8ed;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.qco-progress-step.active .qco-progress-step-circle {
    background-color: #007cba;
    color: white;
}

.qco-progress-step.completed .qco-progress-step-circle {
    background-color: #28a745;
    color: white;
}

.qco-progress-step-title {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.qco-progress-step.active .qco-progress-step-title {
    color: #007cba;
    font-weight: 600;
}

/* Tables */
.qco-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.qco-table th,
.qco-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

.qco-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.qco-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Status Badges */
.qco-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qco-status-submitted {
    background-color: #e3f2fd;
    color: #1976d2;
}

.qco-status-under-review {
    background-color: #fff3e0;
    color: #f57c00;
}

.qco-status-approved {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.qco-status-declined {
    background-color: #ffebee;
    color: #c62828;
}

.qco-status-disbursed {
    background-color: #e1f5fe;
    color: #0277bd;
}

.qco-status-pending {
    background-color: #fce4ec;
    color: #ad1457;
}

/* Dashboard */
.qco-dashboard {
    padding: 20px 0;
}

.qco-dashboard-header {
    margin-bottom: 30px;
}

.qco-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.qco-stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.qco-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007cba;
    margin-bottom: 10px;
}

.qco-stat-label {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pagination */
.qco-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.qco-pagination a,
.qco-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #e1e8ed;
    color: #007cba;
    text-decoration: none;
    border-radius: 4px;
}

.qco-pagination a:hover {
    background-color: #f8f9fa;
}

.qco-pagination .current {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
}

.qco-pagination .dots {
    border: none;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .qco-container {
        padding: 0 15px;
    }
    
    .qco-col-half,
    .qco-col-third {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .qco-form {
        padding: 20px;
    }
    
    .qco-heading-1 {
        font-size: 2rem;
    }
    
    .qco-heading-2 {
        font-size: 1.5rem;
    }
    
    .qco-progress-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .qco-progress-step {
        margin-bottom: 20px;
    }
    
    .qco-progress-step:not(:last-child):after {
        display: none;
    }
    
    .qco-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .qco-table {
        font-size: 14px;
    }
    
    .qco-table th,
    .qco-table td {
        padding: 8px 10px;
    }
}

/* Loading States */
.qco-loading {
    text-align: center;
    padding: 40px;
}

.qco-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: qco-spin 1s linear infinite;
}

/* Utilities */
.qco-text-center { text-align: center; }
.qco-text-left { text-align: left; }
.qco-text-right { text-align: right; }
.qco-mb-0 { margin-bottom: 0; }
.qco-mb-1 { margin-bottom: 10px; }
.qco-mb-2 { margin-bottom: 20px; }
.qco-mb-3 { margin-bottom: 30px; }
.qco-mt-0 { margin-top: 0; }
.qco-mt-1 { margin-top: 10px; }
.qco-mt-2 { margin-top: 20px; }
.qco-mt-3 { margin-top: 30px; }
.qco-hidden { display: none; }
.qco-visible { display: block; }

