/* ================================
ACTIONS MODAL
================================ */

#actions-modal-overlay {

    position:fixed;

    inset:0;

    background:rgba(38,52,69,.45);

    backdrop-filter:blur(6px);

    display:flex;

    align-items:center;

    justify-content:center;

    padding:20px;

    z-index:1000;

}


.actions-modal {

    width:100%;

    max-width:600px;

    max-height:90vh;

    overflow-y:auto;

    background:var(--ivory);

    border-radius:28px;

    padding:35px;

    box-shadow:
        0 25px 70px rgba(38,52,69,.3);

}


.actions-modal-header {

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:30px;

}


.actions-modal h2 {

    margin:0;

    color:var(--ink);

}


.actions-modal-close {

    width:38px;

    height:38px;

    border:none;

    border-radius:50%;

    background:white;

    color:var(--ink);

    font-size:26px;

    line-height:1;

    cursor:pointer;

}


/* FORM */

.action-form-field {

    margin-bottom:24px;

}


.action-form-field > label {

    display:block;

    margin-bottom:9px;

    color:var(--ink);

    font-weight:600;

}


.action-form-field input[type="text"],
.action-form-field input[type="number"],
.action-form-field input[type="date"],
.action-form-field select {

    width:100%;

    box-sizing:border-box;

    padding:13px 15px;

    border:1px solid #ddd;

    border-radius:14px;

    background:white;

    color:var(--ink);

    font-size:16px;

}


.action-form-field input:focus,
.action-form-field select:focus {

    outline:none;

    border-color:var(--gold);

}


.optional {

    font-size:12px;

    font-weight:normal;

    color:var(--muted);

    margin-left:5px;

}


/* RADIO BUTTONS */

.action-radio-group {

    display:flex;

    gap:15px;

}


.action-radio {

    flex:1;

    display:flex;

    align-items:center;

    gap:10px;

    padding:14px 16px;

    background:white;

    border:1px solid #ddd;

    border-radius:14px;

    cursor:pointer;

    color:var(--ink);

}


.action-radio input {

    margin:0;

    accent-color:var(--gold);

}


.action-radio span {

    font-weight:500;

}


/* CONDITIONAL SECTIONS */

.action-conditional-section {

    margin-top:-5px;

    margin-bottom:24px;

}


.action-checkbox-label {

    display:flex;

    align-items:center;

    gap:10px;

    color:var(--ink);

    cursor:pointer;

    margin-bottom:15px;

}


.action-checkbox-label input {

    margin:0;

    accent-color:var(--gold);

}


.action-date-container {

    margin-top:10px;

}


.action-date-container label {

    display:block;

    margin-bottom:9px;

    color:var(--ink);

    font-weight:600;

}


.action-date-container input {

    width:100%;

    box-sizing:border-box;

    padding:13px 15px;

    border:1px solid #ddd;

    border-radius:14px;

    background:white;

    color:var(--ink);

    font-size:16px;

}


.action-date-container input:focus {

    outline:none;

    border-color:var(--gold);

}


/* REPEAT SETTINGS */

.action-repeat-row {

    display:flex;

    gap:12px;

}


.action-repeat-row select {

    flex:1;

}


/* BUTTONS */

.actions-modal-buttons {

    display:flex;

    justify-content:flex-end;

    gap:12px;

    margin-top:30px;

}


.actions-modal-buttons button {

    border:none;

    padding:12px 22px;

    border-radius:30px;

    font-size:15px;

    cursor:pointer;

}


.actions-modal-cancel {

    background:white;

    color:var(--ink);

}


.actions-modal-save {

    background:var(--coral);

    color:white;

}


.actions-modal-save:disabled {

    opacity:.6;

    cursor:not-allowed;

}


/* MOBILE */

@media (max-width:700px) {

    .actions-modal {

        padding:25px;

        border-radius:24px;

        max-height:92vh;

    }


    .action-radio-group {

        flex-direction:column;

        gap:10px;

    }


    .action-repeat-row {

        flex-direction:column;

    }


    .actions-modal-buttons {

        flex-direction:column-reverse;

    }


    .actions-modal-buttons button {

        width:100%;

    }

}