/* --- Modal Core Base Styles --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-card {
    background-color: #121420;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    color: #f8fafc;
    font-family: inherit;
}

.modal-card-lg {
    max-width: 440px;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

/* --- Form Inputs & Textareas --- */
.modal-input,
.modal-textarea,
.modal-select {
    width: 100%;
    background-color: #1a1d2e;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #e2e8f0;
    outline: none;
    transition: all 0.2s ease;
    margin-bottom: 14px;
}

.modal-input:focus,
.modal-textarea:focus,
.modal-select:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.modal-textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

/* --- Buttons Layout --- */
.modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.btn-cancel {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-cancel:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background-color: #ea580c;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.4);
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #c2410c;
    box-shadow: 0 6px 10px -1px rgba(234, 88, 12, 0.6);
}

.btn-orange {
    background-color: #ea580c;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-orange:hover {
    background-color: #c2410c;
}

.btn-indigo {
    background-color: #4f46e5;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4);
    transition: all 0.2s;
}

.btn-indigo:hover {
    background-color: #4338ca;
}