body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

h1 {
    text-align: center;
    margin: 20px;
    font-size: 24px;
}

.form-container, .range-selection, .export-section {
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 5px;
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
}

.number {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #e9ecef;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.number.selected {
    background-color: #d4edda;
    color: #155724;
}

.number:hover {
    background-color: #cce5ff;
    transform: scale(1.05);
    color: #004085;
}

.range-selection button, .export-section button {
    margin-top: 10px;
}

.instructions {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    font-size: 16px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.instructions-icon {
    font-size: 24px;
    color: #007bff;
    flex-shrink: 0;
}

.instructions-text {
    line-height: 1.6;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Styles for confirmation dialog */
#confirmationDialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#confirmationDialog .dialog {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

#confirmationDialog h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

#confirmationDialog p {
    margin-bottom: 15px;
    color: #666;
}

#confirmationDialog button {
    margin: 5px;
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#confirmationDialog button#cancelSave {
    background-color: #dc3545;
}

#confirmationDialog button:hover {
    opacity: 0.9;
}

/* Keyframe for fade-in effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
