/* Specific Chart Modal container */
#chartModal.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 100; /* On top of other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

/* Modal content box */
#chartModal .modal-content {
    background-color: #fff;
    margin: 10% auto; /* Centered modal */
    padding: 20px;
    border-radius: 8px;
    width: 80%; /* Adjust width as needed */
    max-width: 600px; /* Max width for larger screens */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Close button */
#chartModal .close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

#chartModal .close:hover,
#chartModal .close:focus {
    color: #000;
    text-decoration: none;
}

/* Form styles */
#chartModal #chartForm {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between elements */
}

/* Input labels */
#chartModal #chartForm label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* Input fields */
#chartModal #chartForm input[type="text"],
#chartModal #chartForm input[type="color"],
#chartModal #chartForm select {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%; /* Full width */
    box-sizing: border-box;
}

/* Submit button */
#chartModal #chartForm button {
    background-color: #3498db;
    color: white;
    font-size: 16px;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-start; /* Align button to the left */
}

#chartModal #chartForm button:hover {
    background-color: #2980b9;
}

/* Chart table container styles */
#chartModal #chartTableContainer {
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: #f9f9f9;
    min-height: 50px; /* Placeholder height for the chart table */
}
