﻿/* --- Modal Styles --- */

/* The semi-transparent background overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top of everything */
    transition: opacity 0.2s ease;
}

/* The modal box itself */
.modal-content {
    background-color: var(--surface-color, #1e1e1e);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color, #333333);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 500px; /* Or your preferred width */
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

    .modal-content h2 {
        margin-top: 0;
        font-weight: 400;
        border-bottom: 1px solid var(--border-color, #333333);
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        color: var(--secondary-text, #a0a0a0);
        font-size: 0.9rem;
    }

    .form-group input {
        width: 100%;
        padding: 0.75rem;
        background-color: #2c2c2c;
        border: 1px solid var(--border-color, #333333);
        border-radius: 6px;
        color: var(--primary-text, #e0e0e0);
        font-size: 1rem;
        box-sizing: border-box; /* Important for padding and width */
    }

        .form-group input:focus {
            outline: none;
            border-color: var(--accent-color, #4CAF50);
        }

/* Modal Buttons */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-color, #4CAF50);
    color: white;
}

    .btn-primary:hover {
        background-color: #5cb85c;
    }

.btn-secondary {
    background-color: #444;
    color: var(--primary-text, #e0e0e0);
}

.btn-secondary:hover {
    background-color: #555;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between checkbox and label */
    margin-top: 0.5rem; /* Add some space above */
    text-align: left; /* Align label text to the left */
}

/* Ensure the label within the checkbox group doesn't take full width */
.checkbox-group label {
    display: inline-block; /* Keep label next to checkbox */
    margin-bottom: 0; /* Override default margin */
    font-weight: normal; /* Normal font weight for checkbox label */
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto; /* Let checkbox size itself */
    margin-right: 0.5rem;
    cursor: pointer;
}