/* Zentauro Custom Modal System - Clean Studio V2 */
.zentauro-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.zentauro-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.zentauro-modal-box {
    background: #EBF5F0; /* Subtle solid green tint */
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2.5rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--text-main);
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

.zentauro-modal-overlay.active .zentauro-modal-box {
    transform: translateY(0) scale(1);
}

.zentauro-modal-text {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    white-space: pre-wrap;
    color: var(--text-muted);
}

.zentauro-modal-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.zentauro-modal-input:focus {
    border-color: var(--emerald-green);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02), 0 0 0 3px rgba(181, 107, 62, 0.1);
}

.zentauro-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.zentauro-modal-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-family: inherit;
    text-align: center;
}

/* Primary Button (Matches .tool-btn) */
.zentauro-modal-btn-primary {
    background-color: var(--emerald-green);
    color: #FFFFFF;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 12px rgba(181, 107, 62, 0.25);
}
.zentauro-modal-btn-primary:hover {
    transform: translateY(-2px);
    background-color: transparent;
    color: var(--emerald-green);
    box-shadow: 0 6px 16px rgba(181, 107, 62, 0.15);
}

/* Secondary Button (Matches .btn-secondary) */
.zentauro-modal-btn-secondary {
    background-color: transparent;
    color: var(--emerald-green);
    border: 1px solid var(--primary);
}
.zentauro-modal-btn-secondary:hover {
    transform: translateY(-2px);
    background-color: var(--emerald-green);
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(181, 107, 62, 0.35);
}

/* Ensure any labels in modals are readable */
.zentauro-modal-box label {
    color: var(--text-main);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Custom Checkbox */
.zentauro-modal-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    outline: none;
    background: #FFFFFF;
    transition: all 0.2s ease;
}

.zentauro-modal-checkbox:checked {
    background: var(--primary);
}

.zentauro-modal-checkbox:checked::after {
    content: '✔';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
