html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.content-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.sticky-h-scrollbar-container {
    height: 17px;
    overflow-x: auto;
    overflow-y: hidden;
    background-color: #f1f1f1;
}

.sticky-h-scrollbar-content {
    height: 1px;
    width: 100%;
}

.sticky-h-scrollbar-container::-webkit-scrollbar {
    height: 12px;
}

.sticky-h-scrollbar-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sticky-h-scrollbar-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

.sticky-h-scrollbar-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.sheet-content {
    flex: 1 1 auto;
    overflow: auto;
    background-color: white;
    padding: 0 20px 0 0;
    margin: 0px;

    /* TO hide auto horizontal scrollbar */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.sheet-content::-webkit-scrollbar {
    display: none;
}

.sheet-tabs-container {
    background-color: #e7e6e6;
    border-top: 1px solid #d4d4d4;
    display: flex;
    align-items: stretch;
    height: 30px;
}

.sheet-tab {
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    border: 1px solid #c0c0c0;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 6px 16px;
    margin-right: 2px;
    cursor: pointer;
    font-size: 11px;
    color: #333;
    position: relative;
    min-width: 60px;
    text-align: center;
    user-select: none;
    transition: background 0.15s ease;
    display: flex;
    align-items: flex-end;
}

.sheet-tab:hover {
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
}

.sheet-tab.active {
    background: white;
    border-color: #217346;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
    z-index: 2;
    font-weight: bold;
    color: #217346;
}

.sheet-tab.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -1px;
    right: -1px;
    height: 3px;
    background-color: #217346;
    border-radius: 2px 2px 0 0;
}

th:first-child {
    background-color: #f2f2f2;
    text-align: center;
    min-width: 40px;
    border-right: 2px solid #c0c0c0;
}

tr:first-child th {
    background-color: #f2f2f2;
    border-bottom: 2px solid #c0c0c0;
    text-align: center;
    font-weight: bold;
    color: #333;
}

table {
    border-collapse: collapse;
    width: 100%;
}

td, th {
    border: 1px solid #d0d7de;
    padding: 4px 8px;
    font-size: 11px;
}

.tabs-scroll-container {
    display: flex;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: flex-end;
    height: 100%;
}

.tabs-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.tabs-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tabs-scroll-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.tabs-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.top-bar {
    background: #2d2d2d;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #444;
    font-family: Arial, sans-serif;
}

.file-info {
    display: flex;
    align-items: center;
}

.file-name {
    font-weight: 500;
}

.file-actions button,
.file-actions a {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    margin-left: 12px;
    cursor: pointer;
    text-decoration: none;
}

/* File url paste input container css */
.url-input-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#searchInput {
    flex: 1;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    max-width: 100%;
    z-index: 50;
}

#searchInput:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.input-group {
    display: flex;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
}

.input-group-append button {
    padding: 10px 16px;
    font-size: 1rem;
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.2s;
}

.input-group-append button:hover {
    background-color: #e2e6ea;
}
