/* ============================================
   MIS CUSTOM STYLES - Apply to ALL pages
   ============================================ */

/* === FORM SECTIONS === */
.form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #007bff;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.form-section-title i {
    margin-right: 10px;
    color: #007bff;
}

/* === IMAGE UPLOAD CARDS === */
.image-upload-card {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafafa;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.image-upload-card:hover {
    border-color: #007bff;
    background: #f0f7ff;
}

.image-upload-card img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 10px;
    margin-bottom: 15px;
    object-fit: cover;
}

.image-upload-card .upload-label {
    cursor: pointer;
    color: #007bff;
    font-weight: 500;
}

.image-upload-card .upload-label:hover {
    text-decoration: underline;
}

.image-upload-card input[type="file"] {
    display: none;
}

.image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #adb5bd;
    margin-bottom: 15px;
}

/* === FORM ELEMENTS === */
.form-control-custom {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.form-control-custom-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.form-label-custom {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
    margin-bottom: 5px;
}

.required-field::after {
    content: " *";
    color: #dc3545;
}

/* === DATE RANGE DISPLAY === */
.date-range-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.date-range-box .label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-range-box .value {
    font-size: 18px;
    font-weight: 600;
}

.date-range-box .small-text {
    font-size: 13px;
    opacity: 0.9;
}

/* === FEE SUMMARY BOX === */
.fee-summary-box {
    background: #e7f3ff;
    border-radius: 10px;
    padding: 20px;
    border-left: 5px solid #007bff;
}

.fee-summary-box .fee-amount {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
}

.fee-summary-box .fee-label {
    font-size: 13px;
    color: #6c757d;
}

/* === STATUS BADGES === */
.badge-custom {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-active {
    background: #d4edda;
    color: #155724;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

/* === RESPONSIVE IMPROVEMENTS === */
@media (max-width: 768px) {
    .form-section {
        padding: 15px;
    }
    
    .image-upload-card {
        min-height: 180px;
        padding: 10px;
    }
    
    .image-upload-card img {
        max-width: 100px;
        max-height: 100px;
    }
    
    .date-range-box {
        padding: 12px 15px;
    }
    
    .date-range-box .value {
        font-size: 15px;
    }
}

/* === LOADING OVERLAY === */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === TOOLTIP CUSTOM === */
.tooltip-custom {
    cursor: help;
    color: #007bff;
    margin-left: 5px;
}

/* === PRINT STYLES === */
@media print {
    .no-print {
        display: none !important;
    }
    .form-section {
        background: #fff !important;
        border-left: 2px solid #000 !important;
    }
}