/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}*/

/* Global Styles */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

    .btn-primary:hover {
        background-color: #0b5ed7;
        border-color: #0a58ca;
    }

/* Navbar */
.navbar {
    padding: 1rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

.shadow {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

/* Dashboard Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning,
.card.bg-danger {
    transition: transform 0.2s;
}

    .card.bg-primary:hover,
    .card.bg-success:hover,
    .card.bg-info:hover,
    .card.bg-warning:hover,
    .card.bg-danger:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 2rem rgba(0,0,0,.2) !important;
    }

/* Tables */
.table {
    background-color: white;
}

    .table thead {
        font-weight: 600;
    }

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* Buttons */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,.2);
    }

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #80bdff;
        box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    }

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: 5px;
    border: none;
}

.alert-dismissible .btn-close {
    padding: 1rem;
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: white;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid #dee2e6;
}

/* Jumbotron */
.jumbotron {
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    background-color: #e9ecef;
    border-radius: 0.3rem;
}

/* List Group */
.list-group-item {
    border: 1px solid rgba(0,0,0,.125);
    transition: all 0.3s;
}

    .list-group-item:hover {
        background-color: #f8f9fa;
        transform: translateX(5px);
    }

    .list-group-item i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

/* Progress Bar */
.progress {
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 5px;
    font-weight: 600;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    border-radius: 5px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
    }

    .dropdown-item i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

/* Custom Utilities */
.text-muted {
    color: #6c757d !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .table {
        font-size: 0.875rem;
    }

    h1, h2 {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .alert {
    animation: fadeIn 0.5s ease-in;
}

/* Validation */
.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.input-validation-error {
    border-color: #dc3545;
}

.validation-summary-errors {
    color: #dc3545;
}

    .validation-summary-errors ul {
        list-style: none;
        padding-left: 0;
    }

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Status Colors */
.status-pending {
    background-color: #ffc107;
    color: #000;
}

.status-approved {
    background-color: #28a745;
    color: #fff;
}

.status-rejected {
    background-color: #dc3545;
    color: #fff;
}

.status-verified {
    background-color: #17a2b8;
    color: #fff;
}

/* Document Upload */
.document-upload-area {
    border: 2px dashed #ced4da;
    border-radius: 5px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

    .document-upload-area:hover {
        border-color: #0d6efd;
        background-color: #f8f9fa;
    }

/* EMI Schedule */
.emi-schedule-row {
    transition: background-color 0.2s;
}

    .emi-schedule-row:hover {
        background-color: #e9ecef;
    }

.emi-paid {
    background-color: #d4edda !important;
}

.emi-overdue {
    background-color: #f8d7da !important;
}

.emi-pending {
    background-color: #fff3cd !important;
}

/* Dashboard Statistics */
.stat-card {
    border-left: 4px solid;
    transition: all 0.3s;
}

    .stat-card:hover {
        transform: translateX(5px);
    }

    .stat-card.primary {
        border-left-color: #0d6efd;
    }

    .stat-card.success {
        border-left-color: #28a745;
    }

    .stat-card.warning {
        border-left-color: #ffc107;
    }

    .stat-card.danger {
        border-left-color: #dc3545;
    }

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .no-print {
        display: none !important;
    }

    .card {
        page-break-inside: avoid;
    }
}
