/* Modal Container */
.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    background: rgba(0,0,0,0.4);
}

.modal-content-custom {
    max-width: 900px;
    width: 96%;
    background: #ffffff;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 24px 32px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .modal-content-custom::-webkit-scrollbar {
        display: none;
    }

/* Typography & Headers */
.sb-title {
    font-size: 1.35rem;
    margin: 0;
    font-weight: 700;
    color: #1f2937;
}

.sb-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 4px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    margin-top: 24px;
}

/* Close Button */
.btn-close-custom {
    background: transparent;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-close-custom:hover {
        background: #f3f4f6;
    }

/* Red Alert Box */
.alert-red {
    background: #fef2f2;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.icon-circle-red {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-title-red {
    font-weight: 700;
    color: #b91c1c;
    margin: 0 0 4px 0;
    font-size: 0.95rem;
}

.alert-body-red {
    color: #7f1d1d;
    margin: 0;
    font-size: 0.85rem;
}

/* Textarea */
.reason-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    min-height: 120px;
    resize: vertical;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

    .reason-textarea:focus {
        border-color: #9ca3af;
    }

.char-count {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Corrections Grid (Checkboxes) */
.corrections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.correction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

    .correction-item.selected {
        border-color: #10b981; /* Green border */
    }

/* Custom Checkbox Design */
.custom-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #e5e7eb;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.correction-item.selected .custom-checkbox {
    background: #059669;
    border-color: #059669;
}

    .correction-item.selected .custom-checkbox::after {
        content: '\2713'; /* Checkmark */
        color: white;
        font-size: 14px;
        font-weight: bold;
    }

.correction-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

/* Priority Radio Buttons */
.priority-group {
    display: flex;
    gap: 24px;
    align-items: center;
}

.priority-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
}
    /* Custom Radio for Red styling */
    .priority-item input[type="radio"] {
        appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid #d1d5db;
        border-radius: 50%;
        outline: none;
        cursor: pointer;
        position: relative;
    }

        .priority-item input[type="radio"]:checked {
            border-color: #dc2626;
        }

            .priority-item input[type="radio"]:checked::before {
                content: "";
                position: absolute;
                top: 3px;
                left: 3px;
                width: 8px;
                height: 8px;
                background-color: #dc2626;
                border-radius: 50%;
            }

/* Yellow Alert Box */
.alert-yellow {
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.icon-circle-yellow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fef08a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-title-yellow {
    font-weight: 700;
    color: #a16207;
    margin: 0 0 4px 0;
    font-size: 0.95rem;
}

.alert-body-yellow {
    color: #713f12;
    margin: 0;
    font-size: 0.85rem;
}

/* Footer Buttons */
.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.btn-cancel {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #4b5563;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-send-back {
    background: #dc2626;
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .btn-send-back:disabled, .btn-cancel:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

@media (max-width: 768px) {
    .corrections-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .modal-content-custom {
        padding: 16px;
    }
}

