body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    height: 100vh;
    background-color: #f0f2f5;
    overflow: hidden;
}

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

.slide-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.slide-navigation .sidebar-btn {
    flex: 1;
    margin: 0 5px;
    padding: 8px 12px; /* Reduced padding */
    font-size: 14px; /* Slightly smaller font */
}

.slide-navigation .sidebar-btn i {
    font-size: 12px;
}

.sidebar {
    width: 250px;
    --tw-bg-opacity: 1;
    background-color: rgb(19 12 46 / var(--tw-bg-opacity));
    color: #ecf0f1;
    padding: 20px;
    overflow-y: hidden; /* Changed from auto to hidden */
    flex-shrink: 0;
    border-top-right-radius: 32px;
    border-bottom-right-radius: 32px;
    position: relative;
}

.sidebar-header h1 {
    font-family: 'PP Neue Machina', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.sidebar-content {
    height: calc(100% - 140px); /* Increased to accommodate active file display */
    overflow: hidden;
}

/* Query tabs redesign */
.query-tabs .nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.query-tabs .nav-item {
    margin-right: 24px;
}

.query-tabs .nav-link {
    border: none;
    padding: 8px 0;
    color: #6B7280; /* Medium grey for unselected */
    position: relative;
    background: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.query-tabs .nav-link:hover {
    color: #111827; /* Dark grey on hover */
    border: none;
}

.query-tabs .nav-link.active {
    color: #111827; /* Dark grey for selected */
    border: none;
    background: none;
}

.query-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #111827; /* Dark grey underline */
}

/* Ensure consistent fonts */
h1, h2, h3, h4, h5, h6 {
    font-family: 'PP Neue Machina', sans-serif;
}

.modal-title {
    font-family: 'PP Neue Machina', sans-serif;
}

/* Updated styles for sidebar buttons */
.sidebar-btn {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12.5px 25px;
    margin-bottom: 10px;
    border: none;
    border-radius: 9999px; /* full rounded corners */
    background-color: rgba(255, 255, 255, 0);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    transition: background-color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-btn:disabled {
    background-color: rgba(255, 255, 255, 0);
    color: #4a4a4a;
}

.sidebar-btn svg {
    width: 16px;
    height: 16px;
}

/* Special styles for action buttons */
.sidebar-btn.action-btn {
    background-color: rgba(82, 100, 255, 1); /* Light blue color */
    color: white;
    border: none;
    justify-content: start; /* Add this to ensure all buttons align left */
    text-align: left; /* Add this to ensure all buttons align left */
}

.sidebar-btn.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Update text color for other elements in the sidebar */
.sidebar h2,
.sidebar label,
.sidebar .form-select {
    color: #ecf0f1;
}

/* Style the file input */
.sidebar .form-control-file {
    color: #ecf0f1;
    margin-bottom: 10px;
}

/* Inverted styles for the slide selector dropdown */
.sidebar .form-select {
    background-color: #ecf0f1; /* Light background */
    color: #2c3e50; /* Dark text color */
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.sidebar .form-select:hover,
.sidebar .form-select:focus {
    background-color: #ffffff; /* Slightly lighter on hover/focus */
    outline: none;
    box-shadow: 0 0 0 2px rgba(236, 240, 241, 0.5); /* Light glow effect */
}

/* Style for the dropdown arrow */
.sidebar .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px; /* Make room for the custom arrow */
}

/* Hide the default arrow in IE */
.sidebar .form-select::-ms-expand {
    display: none;
}

.main-content {
    flex-grow: 1;
    padding: 20px;
    background-color: #f0f2f5; /* Changed from white to grey */
    overflow-y: auto;
}

.main-header {
    margin-bottom: 20px;
}

.main-header h1 {
    margin-left: 20px;
    font-style: italic;
    font-size: 1.8rem;
    color: #333;
}

.content-area {
    background-color: #ffffff;
    border-radius: 8px;
    /* Removed box-shadow */
    padding: 20px;
}

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

td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    position: relative;
    height: 40px;
}

.input-cell {
    background-color: #edeef7;
}

.context-cell {
    background-color: #d9e7fb;
}

textarea {
    width: 100%;
    height: 100%;
    min-height: 30px;
    resize: none;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
}

.preview-container {
    position: sticky;
    top: 20px;
    height: calc(100vh - 160px);
}

.preview-wrapper {
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background-color: #ffffff; /* Changed from #f8f9fa to white */
    position: relative;
}

.preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.preview-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #6c757d;
    font-style: italic;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.dataframe-container {
    margin-top: 20px;
    overflow-x: auto;
}

#slideSelector {
    max-width: 100%;
}

.highlighted {
    background-color: #fff3cd !important;
}

.file-upload {
    margin-top: 20px;
    margin-bottom: 20px;
}

.file-upload .sidebar-btn {
    padding: 8px 15px; /* Reduced padding for upload button */
    font-size: 14px; /* Slightly smaller font for upload button */
}

.btn-primary, .btn-secondary, .btn-danger, .btn-success, .btn-info, .btn-warning {
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.1s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
}

.btn-primary {
    background-color: #3498db;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

h2 {
    font-size: 1.2rem;
}

.compact-form {
    background-color: #ffffff; /* Changed from #f8f9fa to white */
    border-radius: 8px;
    /* Removed box-shadow */
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.compact-form .form-group {
    margin-bottom: 15px;
}

.compact-form label {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    width: 100%;
}

.compact-form .form-control {
    padding: 8px 12px;
    height: auto;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    max-width: 300px;
}
 
.compact-form .btn {
    margin-top: 15px;
    padding: 8px 16px;
    font-size: 14px;
}

.compact-form .custom-control {
    padding-left: 1.5rem;
    margin-top: 10px;
}

.compact-form .custom-control-label {
    padding-top: 2px;
    font-size: 14px;
}

.compact-form .custom-switch {
    padding-left: 2.25rem;
}

.compact-form .custom-switch .custom-control-label::before {
    width: 1.75rem;
    height: 1rem;
    border-radius: 0.5rem;
}

.compact-form .custom-switch .custom-control-label::after {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    top: calc(0.25rem + 2px);
    left: calc(-2.25rem + 2px);
}

.compact-form .custom-switch .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(0.75rem);
}

.compact-form .custom-checkbox .custom-control-label::before,
.compact-form .custom-checkbox .custom-control-label::after {
    width: 1rem;
    height: 1rem;
    top: 0.2rem;
}

.compact-form select.form-control {
    width: 100%;
    max-width: 300px;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    font-weight: bold;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 10px;
}

.collapsible-header:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

.collapsible-header .triangle {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 5px; /* Adds spacing between text and triangle */
}

.collapsible-header[aria-expanded="true"] .triangle {
    transform: rotate(90deg); /* Rotates the triangle to point downwards */
}

.collapsible-header[aria-expanded="false"] .triangle {
    transform: rotate(0deg); /* Resets the triangle to original position */
}


#searchesTableContainer, #depletionsSearchesTableContainer {
    margin-top: 30px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    max-width: 800px;
}

#searchesTableContainer h3,
#depletionsSearchesTableContainer h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.table {
    width: 100%;
    margin-bottom: 0;
    background-color: transparent;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    font-weight: 600;
    font-size: 14px;
    color: #6B7280;
    padding: 12px 16px;
    width: 200px;
    text-align: left;
    vertical-align: top;
    border: none;
}

.table td {
    font-size: 14px;
    padding: 12px 16px;
    color: #111827;
    background-color: #F9FAFB;
    border: none;
    word-break: break-word;
}

.table .search-header {
    background-color: #F3F4F6;
    padding: 16px;
    font-size: 16px;
    color: #111827;
}

.table .search-spacer {
    height: 24px;
    background-color: transparent;
}

.table .btn-group {
    display: flex;
    gap: 8px;
}

.table .btn {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.table .btn-primary {
    background-color: #3B82F6;
}

.table .btn-primary:hover {
    background-color: #2563EB;
}

.table .btn-danger {
    background-color: #EF4444;
}

.table .btn-danger:hover {
    background-color: #DC2626;
}

.float-end {
    float: right;
}

/* Make sure long content wraps properly */
.table td {
    max-width: 500px;
    white-space: normal;
}

/* Empty state styling */
.table td.text-center {
    text-align: center;
    color: #6B7280;
    padding: 24px;
}

.form-check {
    padding-left: 1.5rem;
    margin-top: 10px;
}

.form-check-label {
    padding-top: 2px;
    font-size: 14px;
}

.form-switch {
    padding-left: 2.5rem;
}

.form-switch .form-check-input {
    width: 2rem;
    margin-left: -2.5rem;
}

.form-select {
    width: 100%;
    max-width: 300px;
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    .preview-container {
        height: 50vh;
        position: static;
    }
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-checkbox, .header-filter, .header-sort, .header-title {
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
}

.header-title {
    font-weight: bold;
}

.header-sort button, .header-filter button {
    width: 100%;
}

#app {
    height: 800px; /* Set a fixed height or use a percentage */
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  
  #toolbar {
    height: var(--toolbar-height);
    display: flex;
    gap: .5rem 1rem;
    flex-wrap: wrap;
    overflow: auto;
  }
  
  #univer, #inputUniver {
    height: calc(100% - var(--toolbar-height));
    border: 1px solid #ececec;
    overflow: hidden; 
  }
  .form-container {
    width: 100%;
    height: 800px; 
}
  
  .univer-container {
      width: 100%;
      height: 800px; 
      margin-bottom: 20px;
  }
  .file-upload .sidebar-btn.action-btn {
    justify-content: flex-start; /* Align content to the left */
    padding: 8px 15px; /* Reduced padding for upload button */
    font-size: 14px; /* Slightly smaller font for upload button */
}

/* Special styles for action buttons */
.sidebar-btn.action-btn {
    background-color: rgba(82, 100, 255, 1);
    color: white;
    border: none;
}

/* Center only the previous/next buttons */
.slide-navigation .sidebar-btn.action-btn {
    justify-content: center;
    text-align: center;
}

.custom-control.custom-switch {
    padding-left: 2.25rem;
    display: flex;
    align-items: center;
}

.custom-control-input {
    margin-right: 0.5rem;
}

.custom-control-label {
    margin-left: 0.5rem;
}
/* Align toggle switches to the left */
.form-check {
    display: flex;
    align-items: center;
}

.form-check-label {
    margin-left: 0.5rem;
    font-weight: bold;
}

/* Optional: Adjust the size of the switch */
.form-switch .form-check-input {
    width: 2rem;
    height: 1rem;
    margin-right: 0.5rem;
}

.copied {
    outline: 2px dashed #007bff;
    animation: marching-ants 0.5s linear infinite;
}

@keyframes marching-ants {
    0% { outline-offset: 0; }
    100% { outline-offset: -1px; }
}

#s3FileSelector .table tr.selected {
    background-color: #007bff;
    color: white;
}

#s3FileSelector .table tr:hover {
    cursor: pointer;
}

/* Ensure both containers have the same styling */
.univer-instance {
    width: 100%;
    height: 600px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

/* Transpose view styles */
.transposed-view .row {
    flex-direction: column;
}

.transposed-view .univer-container {
    margin-top: 0;
}

.transposed-view .col-md-6 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

.transposed-view .form-container {
    height: 400px;
}

.transposed-view .univer-instance {
    height: 400px;
}

.transposed-view #univer,
.transposed-view #inputUniver {
    height: 400px;
}

.form-check-input {
    cursor: pointer;
}

/* Transpose view styles */
.transposed-view .univer-container {
    margin-top: 0;
}

.transposed-view .form-container,
.transposed-view .univer-instance {
    height: 600px;
}

.transposed-view #univer,
.transposed-view #inputUniver {
    height: 600px;
}

.transposed-view .row {
    display: flex;
    flex-wrap: wrap;
}

.transposed-view .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.transposed-view .order-2 {
    order: 2;
}

/* Toggle switch styling */
/* .form-check.form-switch {
    margin-left: 15px;
} */

.form-check-input {
    cursor: pointer;
}

.univer-side-by-side {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: flex-start;
}

.univer-side-by-side .form-wrapper,
.univer-side-by-side .univer-container {
    flex: 1;
    width: 50%;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
}

.form-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-wrapper .form-container,
.univer-side-by-side .univer-container {
    height: 800px;
}

.preview-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.preview-centered .preview-container {
    width: 100%;
    max-width: 800px;
    min-height: 400px;
    margin: 0 auto;
}

/* Ensure the toggle switch stays visible */
.form-check.form-switch {
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

/* Ensure both containers are bottom aligned */
.univer-side-by-side {
    align-items: flex-start;
}

/* Add to your CSS file */
#main-row {
    position: relative; /* Help track positioning */
}

.univer-side-by-side {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.preview-centered {
    margin-bottom: 1rem;
}

#workbookSelectorContainer {
    height: 15px;
}

/* Only adjust the remove button styling */
#removeWorkbookButton {
    padding-top: 0.35rem;
    padding-bottom: 0.45rem;
}


#workbookSelectorContainer {
    margin-top: 14px;
    margin-bottom: 21px;
}

/* Update file input styling - make PPTX specific */
input[type="file"]#powerpoint_upload {
    position: relative;
    width: 156px;
    cursor: pointer;
    margin-left: 25px;
}

input[type="file"]#powerpoint_upload::file-selector-button {
    width: 156px;
    color: transparent;
    border: none;
    background: rgba(82, 100, 255, 0.8);
    padding: 8px 16px;
    height: 40px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 200ms;
}

/* Custom icon */
input[type="file"]#powerpoint_upload::before {
    position: absolute;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    left: 16px;
    height: 20px;
    width: 20px;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.33' d='M14 10.667v2.666A1.333 1.333 0 0112.667 14H3.333A1.333 1.333 0 012 12.667V10.667M8 2v8M5.333 4.667L8 2l2.667 2.667'/%3E%3C/svg%3E");
}

/* Custom text */
input[type="file"]#powerpoint_upload::after {
    position: absolute;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    left: 40px;
    color: white;
    content: "Upload PPTX";
}

/* Hover state */
input[type="file"]#powerpoint_upload::file-selector-button:hover {
    background-color: rgba(82, 100, 255, 0.9);
}

/* Active state */
input[type="file"]#powerpoint_upload::file-selector-button:active {
    background-color: rgba(82, 100, 255, 1);
}

.file-upload h2 {
    display: none;
}

/* Update the sidebar header margin */
.sidebar-header {
    margin-top: 40px;
    margin-left: 25px;
}   

/* Updated table styles */
.table .btn-group {
    display: flex;
    gap: 8px;
}

.table .btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

.table .btn-primary {
    background-color: #3B82F6;
}

.table .btn-primary:hover {
    background-color: #2563EB;
}

.table .btn-danger {
    background-color: #EF4444;
}

.table .btn-danger:hover {
    background-color: #DC2626;
}

/* Make the table horizontally scrollable on small screens */
#searchesTableContainer,
#depletionsSearchesTableContainer {
    overflow-x: auto;
}

/* Ensure consistent cell widths */
.table th,
.table td {
    white-space: nowrap;
    min-width: 120px;
}

/* Actions column can be smaller */
.table th:last-child,
.table td:last-child {
    min-width: 160px;
}

/* Updated search cards styling */
.search-cards-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px;
}

.search-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-width: 350px; /* Set minimum width to maintain card size */
}

.search-card-header {
    background-color: #F3F4F6;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-card-header h4 {
    margin: 0;
    font-size: 16px;
    color: #111827;
}

.search-card-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.search-card-table th {
    font-weight: 600;
    font-size: 14px;
    color: #6B7280;
    padding: 8px 12px;
    width: 140px;
    text-align: left;
    vertical-align: top;
    border: none;
}

.search-card-table td {
    font-size: 14px;
    padding: 8px 12px;
    color: #111827;
    background-color: #F9FAFB;
    border: none;
    border-radius: 4px;
    word-break: break-word;
}

/* Button styles */
.btn-group {
    display: flex;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 32px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn-danger {
    background-color: #EF4444;
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #DC2626;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .search-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-cards-container {
        grid-template-columns: 1fr;
    }
}

/* Container for all searches */
#searchesTableContainer,
#depletionsSearchesTableContainer {
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Grid container */
.search-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 20px;
    width: calc(100% - 40px); /* Account for padding */
}

/* Card */
.search-card {
    display: grid;
    grid-template-rows: auto 1fr; /* Header and content */
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Card header */
.search-card-header {
    background-color: #F3F4F6;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Card table */
.search-card-table {
    width: 100%;
    table-layout: fixed; /* Force consistent column widths */
}

.search-card-table th {
    width: 40%;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 14px;
    color: #6B7280;
    text-align: left;
    vertical-align: top;
}

.search-card-table td {
    width: 60%;
    padding: 8px 12px;
    font-size: 14px;
    color: #111827;
    background-color: #F9FAFB;
    word-wrap: break-word; /* Handle long content */
    overflow-wrap: break-word;
}

/* Responsive */
@media (max-width: 1400px) {
    .search-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-cards-container {
        grid-template-columns: 1fr;
    }
}

/* Active file display in sidebar */
.active-file-display {
    position: absolute;
    bottom: 45px;
    left: -10px; /* Added negative margin to move left */
    width: 100%;
    padding: 0 25px;
    color: #ffffff;
    text-align: center;
}

.active-file-label {
    font-size: 14px; /* Increased from 12px */
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

#currentSaveName {
    font-size: 16px; /* Increased from 14px */
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

/* Update sidebar to support absolute positioning of active file */
.sidebar {
    position: relative;
    /* ... existing sidebar styles ... */
}

/* Adjust sidebar-content to leave space for active file */
.sidebar-content {
    height: calc(100% - 140px); /* Increased to accommodate active file display */
    /* ... existing sidebar-content styles ... */
}

/* Dropdown styles */
.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.dropdown-content {
    padding: 8px 0;
}

.dropdown-item {
    padding: 4px 0;
    font-size: 14px;
}

.dropdown-item:not(:last-child) {
    margin-bottom: 4px;
}

/* Add/update these styles */
.collapsible-header {
    text-decoration: none !important; /* Remove underline */
    color: inherit;
    width: 100%;
    text-align: left;
    padding: 8px 0;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.collapsible-header:hover,
.collapsible-header:focus {
    text-decoration: none !important;
    color: inherit;
}

.triangle {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Add this class for when the dropdown is open */
.triangle.open {
    transform: rotate(90deg);
}

/* Update the collapsible header styles */
.collapsible-header {
    text-decoration: none !important;
    width: 100%;
    text-align: left;
    padding: 8px 12px; /* Added horizontal padding */
    background-color: #f3f4f6; /* Light grey background */
    border: none;
    border-radius: 4px; /* Optional: rounded corners */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.collapsible-header:hover {
    background-color: #e5e7eb; /* Slightly darker on hover */
}

.triangle {
    display: inline-block;
    transition: transform 0.2s ease;
    color: #6B7280; /* Match the text color */
}

.collapse {
    transition: height 0.35s ease;
}

.collapse:not(.show) {
    display: none;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

/* Excel upload button styling - completely reset and new styles */
#powerpoint_excel_upload {
    padding: 8px 16px;
    color: white;
    background-color: rgba(82, 100, 255, 0.8);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: static;  /* Reset positioning */
    width: auto;      /* Reset width */
    margin: 0;        /* Reset margin */
}

#powerpoint_excel_upload::file-selector-button {
    display: none;
}

#powerpoint_excel_upload::before {
    content: "";
    position: static;
    pointer-events: auto;
    transform: none;
}

#powerpoint_excel_upload::after {
    display: none !important;
    content: "" !important;
    position: static !important;
    pointer-events: none !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
}

#powerpoint_excel_upload:hover {
    background-color: rgba(82, 100, 255, 0.9);
}
