body {
    font-family: Arial, sans-serif;
}
table {
    border-collapse: collapse;
    margin-top: 10px;
}
th, td {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ccc;
    cursor: pointer;
}
th {
    background-color: #f0f0f0;
    font-weight: bold;
}
td:focus {
    outline: 2px solid blue;
}
.table-container {
    margin-bottom: 20px;
}
.error-box {
    display: none;
    color: white;
    background-color: red;
    padding: 10px;
    margin-bottom: 10px;
    font-weight: bold;
}
button {
    padding: 10px 15px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}
button:hover {
    background-color: #0056b3;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip Icon */
.tooltip-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

/* Tooltip Box */
.tooltip-box {
    display: none;
    position: absolute;
    background: #ffffff;
    color: black;
    padding: 10px;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    width: 280px;
    border-radius: 6px;
    top: 30px;
    left: 0;
    z-index: 100;
}

/* Tooltip Close Button */
.tooltip-close {
    display: block;
    margin-top: 5px;
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    border-radius: 4px;
}

.tooltip-close:hover {
    background: #cc0000;
}

/* Tooltip Container */
.tooltip-container {
    position: relative;
    display: inline-block;
}