/* Monica Control Panel - Cookie Consent Modal */

.modal--cookie-consent {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal__content {
    position: relative;
    background: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

.modal__content--cookie {
    max-width: 500px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal__title {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
}

.modal__language {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.modal__language:hover {
    border-color: #5CB85C;
}

.modal__language:focus {
    outline: none;
    border-color: #5CB85C;
    box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.2);
}

.modal__text {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: #555;
}

.modal__text--small {
    font-size: 0.9rem;
    color: #777;
}

.cookie-consent__checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    cursor: pointer;
    user-select: none;
}

.cookie-consent__checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cookie-consent__checkbox span {
    font-size: 1rem;
    color: #333;
}

#cookie-consent-button {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    background: #5CB85C;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

#cookie-consent-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc;
}

#cookie-consent-button:not(:disabled):hover {
    background: #4CAE4C;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(92, 184, 92, 0.3);
}

#cookie-consent-button:not(:disabled):active {
    transform: translateY(0);
}

/* Login form blocked state */
.login--blocked {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}
