/* styles.css */

/* Import a sleek, modern font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/*Jumbotron Styling*/
.jumbotron {
  background-color: #f8f9fa; /* Light gray background */
  text-align: center;
  padding: 4rem 2rem;
}
.jumbotron img {
  max-width: 60px; /* Adjust the size of the image */
  margin-bottom: 1.5rem;
}
.jumbotron h1 {
  font-size: 2.5rem;
  font-weight: bold;
}
.jumbotron p {
  font-size: 1.2rem;
  color: #6c757d;
}

/*File Upload Modal*/
#upload-modal-dialog {
    max-width: 50%
}

/*Spinner Overlay*/
.spinner-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 10;
}

/* Spinner Container */
.spinner-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: none;
}

/* Spinner Wheel */
.spinner-wheel {
    width: 64px;
    height: 64px;
    margin: 0;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

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


/*Surface Viewer*/
#surface-container {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

#left-surface-container, #right-surface-container {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;  /* Ensure the containers take full height */
}


/*Nifti slices viewer*/
/* Slices container */
#slice-container {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center; /* Vertically center the slices and colorbar */
    justify-content: space-between; /* Distribute space between slices */
    margin: 0;
    padding: 0;
    gap: 0; /* Ensure there's no gap between flex items */
    overflow: hidden;
    box-sizing: border-box; /* Ensure padding and borders are included in the total width/height */
}

/* Individual slice containers */
.plot-slice-container {
    height: 100%; /* Full height */
    display: flex; /* Flexbox for centering content */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    margin: 0; /* Remove any margin */
    padding: 0; /* Remove any padding */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    overflow: hidden;
}
/*Give x_slice_container (saggital view) a little more room*/
#slice-1-container {
    width: 38%;
    height: 100%;
}

#slice-2-container,
#slice-3-container {
    width: 31%;
    height: 100%;
}

/*Time course plots*/
#time-course-plot {
    display: flex;
    width: 100%;
    align-items: center; /* Vertically center the slices and colorbar */
    justify-content: space-between;
    overflow: hidden;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/*User Visualization Options*/

/*Brain color map dropdown menu*/
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown .dropdown-toggle {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background-color: white;
}

.custom-dropdown .dropdown-menu {
    display: none;
    max-height: 250px;  /* Adjust based on how many options should be visible */
    overflow-y: auto;   /* Vertical scroll when content exceeds height */
    position: absolute;
    padding: 5px;
    width: 100%;
    min-width: 250px;  /* Ensures dropdown is not narrower than 250px */
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
    z-index: 1000;
}

.custom-dropdown .dropdown-menu.show {
    display: block;
}

.custom-dropdown .dropdown-menu li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    cursor: pointer;
}

.custom-dropdown .dropdown-menu li span:first-child {
    flex: 1;
    min-width: 70px; /* Ensures that the text label takes up a minimum amount of space */
}

.custom-dropdown .dropdown-menu li .colormap-swatch {
    flex: 0 0 100px; /* Ensures a fixed width for color swatches */
    height: 20px;
    margin-left: 10px;
    background-size: contain;
}

.custom-dropdown .dropdown-menu li:hover {
    background-color: #f0f0f0;
}

/*Visualization Sliders*/
.slider {
    width: 95% !important;
}

/*Width of Montage Popover (this will affect all popovers)*/
.popover {
    min-width: 400px !important;
}

#slice-sliders{
    padding-left: 15px;
    padding-right: 15px;
}

/* Log display styles */
.log-content {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.log-entry {
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.log-timestamp {
    margin-right: 8px;
    font-size: 0.85rem;
}

.log-level {
    margin-right: 8px;
    font-weight: bold;
}

.log-source {
    margin-right: 8px;
    font-style: italic;
}

.log-message {
    display: block;
    padding-left: 15px;
    margin-top: 2px;
}

/* Make copy button more visible */
.copy-log-btn {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.copy-log-btn:hover {
    background-color: #138496;
    border-color: #117a8b;
} 
