/* ===== momConfirm ===== */

/* Overlay */
.mc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
    padding: 20px;
}

.mc-overlay.mc-visible {
    opacity: 1;
}

.mc-overlay.mc-hiding {
    opacity: 0;
}

/* Card */
.mc-card {
    width: 100%;
    max-height: 85vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    transform: scale(0.92) translateY(10px);
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mc-visible .mc-card {
    transform: scale(1) translateY(0);
}

.mc-hiding .mc-card {
    transform: scale(0.95) translateY(5px);
}

/* Accent bar */
.mc-accent {
    width: 8px;
    min-height: 100%;
    flex-shrink: 0;
    border-radius: 12px 0 0 12px;
}

/* Body */
.mc-body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

/* Header */
.mc-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mc-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.mc-desc {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

/* Fields */
.mc-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mc-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 180px;
}

.mc-field--inline {
    flex-direction: row;
    align-items: center;
    min-width: auto;
}

.mc-field-break {
    width: 100%;
    height: 0;
}

.mc-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
}

.mc-req {
    color: #ef4444;
    margin-left: 2px;
}

/* Inputs */
.mc-field-input,
.mc-field-select,
.mc-field-textarea,
.mc-field-date {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.mc-field-input:focus,
.mc-field-select:focus,
.mc-field-textarea:focus,
.mc-field-date:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.15);
    background: #fff;
}

.mc-field-textarea {
    resize: vertical;
    min-height: 60px;
}

/* Invalid state */
.mc-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    animation: mc-shake 0.3s ease;
}

@keyframes mc-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Checkbox */
.mc-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    user-select: none;
    margin: 0;
}

.mc-checkbox input {
    display: none;
}

.mc-checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.mc-checkbox-mark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s;
}

.mc-checkbox input:checked + .mc-checkbox-mark {
    background: #2e7d32;
    border-color: #2e7d32;
}

.mc-checkbox input:checked + .mc-checkbox-mark::after {
    transform: rotate(45deg) scale(1);
}

/* Radio */
.mc-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mc-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    user-select: none;
    margin: 0;
}

.mc-radio input {
    display: none;
}

.mc-radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.mc-radio-mark::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
    transition: transform 0.15s;
}

.mc-radio input:checked + .mc-radio-mark {
    border-color: #1565c0;
    background: #1565c0;
}

.mc-radio input:checked + .mc-radio-mark::after {
    transform: scale(1);
}

/* Actions */
.mc-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.mc-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mc-shortcut {
    font-size: 10px;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.mc-btn {
    padding: 9px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    outline: none;
}

.mc-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.mc-btn--confirm {
    color: #fff;
}

.mc-btn--confirm:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mc-btn--confirm:active {
    transform: scale(0.97);
}

.mc-btn--extra {
    color: #fff;
}

.mc-btn--extra:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mc-btn--extra:active {
    transform: scale(0.97);
}

.mc-btn--cancel {
    background: #f1f5f9;
    color: #475569;
}

.mc-btn--cancel:hover {
    background: #e2e8f0;
}

.mc-btn--cancel:active {
    transform: scale(0.97);
}

/* Responsive */
@media (max-width: 480px) {
    .mc-card {
        max-width: 100% !important;
    }

    .mc-body {
        padding: 18px;
    }

    .mc-field {
        min-width: 100%;
    }

    .mc-actions {
        flex-direction: column-reverse;
    }

    .mc-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== Welcome Cards (inside momConfirm) ===== */
.mc-welcome {
    padding: 8px 0;
}

.mc-welcome-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mc-welcome-card {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.15s;
}

.mc-welcome-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mc-welcome-card i {
    font-size: 20px;
    color: #64748b;
}

.mc-welcome-card__value {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.mc-welcome-card__label {
    font-size: 11px;
    color: #64748b;
    text-align: center;
}

.mc-welcome-hide {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
}

.mc-welcome-hide input {
    width: 14px;
    height: 14px;
    cursor: pointer;
}
