/* Custom Modal Overrides & Enhancements */

/* Modal Content Container */
.modal-content {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background: #ffffff;
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, rgba(71, 178, 228, 0.05) 0%, rgba(71, 178, 228, 0.01) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 20px 24px !important;
}
.modal-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #37517e !important;
}
.modal-header .btn-close {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 10px;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.7;
}
.modal-header .btn-close:hover {
    background-color: rgba(0, 0, 0, 0.08);
    opacity: 1;
}

/* Modal Body Form Elements */
.modal-body {
    padding: 24px !important;
}
.modal-body .mb-3 {
    margin-bottom: 20px !important;
}
.modal-body .form-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #37517e;
    font-size: 14px;
    margin-bottom: 8px;
}
.modal-body .form-control {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #495057;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.2s ease;
    background: #ffffff;
}
.modal-body .form-control:focus {
    box-shadow: none;
    border-color: #47b2e4;
    background: #ffffff;
}
.modal-body textarea.form-control {
    resize: vertical;
}

/* Success Laporan Screen in Modal */
.success-screen-modal {
    padding: 30px 15px;
    text-align: center;
}
.success-screen-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
    animation: scaleUp 0.4s ease-out;
}
.success-screen-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #37517e;
    margin-bottom: 12px;
}
.success-screen-code {
    font-family: monospace;
    font-size: 18px;
    background: #f8f9fa;
    border: 1px dashed rgba(71, 178, 228, 0.5);
    padding: 10px 20px;
    border-radius: 8px;
    color: #47b2e4;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 24px;
    letter-spacing: 1px;
}
.btn-copy-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    transition: all 0.2s ease;
}
.btn-copy-code:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.3);
}

/* Modal Footer */
.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 16px 24px !important;
    background: #fafcfe;
}
.modal-footer .btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.modal-footer .btn-secondary {
    background: #e9ecef;
    border: none;
    color: #495057;
}
.modal-footer .btn-secondary:hover {
    background: #dee2e6;
    color: #212529;
}
.modal-footer .btn-primary {
    background: linear-gradient(135deg, #47b2e4 0%, #359ecf 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(71, 178, 228, 0.2);
}
.modal-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(71, 178, 228, 0.3);
    background: linear-gradient(135deg, #51bdf0 0%, #3dafe4 100%);
}

/* Error message in Status Modal */
.status-error-msg {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    color: #842029;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

/* Status Table styling */
.status-results-container {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}
.status-results-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #37517e;
    margin-bottom: 15px;
}
.status-results-table {
    margin: 0 !important;
}
.status-results-table th {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 12px;
}
.status-results-table td {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #495057;
    padding: 14px 12px;
    vertical-align: middle;
}
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-badge.status-baru {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}
.status-badge.status-proses {
    background: rgba(255, 193, 7, 0.12);
    color: #b58100;
}
.status-badge.status-selesai {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
