/* =========================================================
   VTWIN CUSTOM MODALS (Global for all pages)
========================================================= */
.vtwin-custom-modal .modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(7, 85, 237, 0.25);
    background-color: #ffffff;
}

.vtwin-custom-modal .modal-header {
    background: #0178f9;
    color: #ffffff;
    padding: 0px 28px 0px 0px;
    border-bottom: none;
    align-items: center;
}

.vtwin-custom-modal .modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vtwin-custom-modal .modal-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    flex-shrink: 0;
}

.vtwin-custom-modal .modal-title {
    font-weight: 700;
    font-size: 22px;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.vtwin-custom-modal .modal-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin: 4px 0 0 0;
}

.vtwin-custom-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.vtwin-custom-modal .btn-close:hover {
    opacity: 1;
}

.vtwin-custom-modal .modal-body {
    padding: 30px;
}

.vtwin-custom-modal .form-label {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 6px;
    display: block;
}

.vtwin-custom-modal .input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.vtwin-custom-modal .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #64748b;
    z-index: 5;
    pointer-events: none;
}

.vtwin-custom-modal .textarea-icon {
    top: 18px;
    transform: none;
}

.vtwin-custom-modal .form-control,
.vtwin-custom-modal .form-select {
    padding-left: 42px !important;
    height: 48px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.2s ease;
    background-color: #f8fafc;
    width: 100%;
}

.vtwin-custom-modal textarea.form-control {
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
}

.vtwin-custom-modal .form-control:focus,
.vtwin-custom-modal .form-select:focus {
    background-color: #ffffff;
    border-color: #0178f9;
    box-shadow: 0 0 0 4px rgba(7, 85, 237, 0.12);
    outline: none;
}

/* Bypass nice-select plugin inside modals */
.vtwin-custom-modal .nice-select {
    display: none !important;
}

.vtwin-custom-modal select.form-select {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    /* appearance: auto; */
}

.vtwin-custom-modal .vtwin-submit-btn {
    background: #0178f9;
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    box-shadow: 0 4px 14px rgba(7, 85, 237, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vtwin-custom-modal .vtwin-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 85, 237, 0.45);
}

.vtwin-custom-modal .btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.vtwin-custom-modal .btn-secondary:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

/* Success state animation */
.vtwin-modal-success {
    text-align: center;
    padding: 40px 20px;
}

.vtwin-modal-success .success-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.vtwin-modal-success .success-icon-wrap i {
    font-size: 52px;
    color: #10b981;
}

.vtwin-modal-success h3 {
    font-weight: 700;
    font-size: 24px;
    color: #0f172a;
    margin-bottom: 8px;
}

.vtwin-modal-success p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}