body {
    font-family: Arial, sans-serif;
    font-size: 10px;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 40px;
    border: none;
    width: 400px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h2 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.modal-content p {
    color: #666;
    font-size: 14px;
}

.modal-content input, .modal-content button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    font-size: 14px;
    border-radius: 4px;
    box-sizing: border-box;
}

.modal-content input {
    border: 1px solid #ccc;
}

.modal-content button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

#app {
    padding: 10px;
}

.notification {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: none;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0 10px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.toolbar-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.toolbar input, .toolbar textarea, .toolbar select, .toolbar button, .toolbar label {
    font-size: 10px;
    padding: 5px;
    margin: 0;
}

.checkbox-container {
    border: 1px solid #ccc;
    padding: 5px;
    display: flex;
    flex-direction: column;
}

.checkbox-container label {
    margin-bottom: 5px;
}

#refresh-timer {
    margin-left: 10px;
    font-weight: bold;
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.5s;
}

.toast.show {
    opacity: 1;
}

#data-table-container {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100vw;
}

#data-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
}

#data-table th, #data-table td {
    border: 1px solid #ddd;
    padding: 8px;
    word-break: break-word;
    font-size: 12px;
    min-width: 140px;
    vertical-align: top;
}

#data-table th {
    background-color: #f2f2f2;
}

.cell-text {
    display: inline-block;
    white-space: normal;
    max-width: 400px;
}

.nested-table {
    width: 100%;
    border-collapse: collapse;
    margin: 4px 0;
}

.nested-table th, .nested-table td {
    border: 1px solid #e0e0e0;
    padding: 4px 6px;
    font-size: 11px;
    text-align: left;
    min-width: 0;
    white-space: normal;
}

.nested-table th {
    background-color: #fafafa;
    font-weight: 600;
}

.pagination {
    margin-top: 10px;
    text-align: center;
}

.pagination button {
    font-size: 10px;
    padding: 5px 10px;
}

/* Table container - let browser handle scrolling naturally */
.table-container {
    width: 100%;
    margin-bottom: 20px;
}

/* Sticky footer - fixed position, three sections */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.sticky-footer .footer-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-footer .footer-left {
    justify-content: flex-start;
    flex: 1;
}

.sticky-footer .footer-center {
    justify-content: center;
    flex: 1;
}

.sticky-footer .footer-right {
    justify-content: flex-end;
    flex: 1;
}

.sticky-footer .pagination {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Add some spacing for the main content to avoid footer overlap */
#app {
    padding: 10px;
    padding-bottom: 70px; /* Space for fixed footer */
}

/* Clean horizontal collection layout */
#collections-list {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#collections-list > div {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

#collections-list input[type="checkbox"] {
    margin: 0;
    width: 14px;
    height: 14px;
}

#collections-list label {
    font-size: 11px;
    cursor: pointer;
    margin: 0;
    white-space: nowrap;
    user-select: none;
}

/* Individual collection items */
#collections-list > div > div {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

#collections-list > div > div:hover {
    background-color: #eeeeee;
    border-color: #ccc;
}

#collections-list > div > div[style*="background-color: #e3f2fd"] {
    background-color: #e3f2fd !important;
    border-color: #2196f3 !important;
}

/* Remove the existing checkbox-container styles */
.checkbox-container {
    border: none;
    padding: 0;
    background: transparent;
}

/* View type specific styling */
#data-table.chat-data {
    /* Chat specific styling if needed */
}

#data-table.voice-data {
    /* Voice specific styling if needed */
}
