/* CUSTOM CSS FOR PCTD SITE - SMEST JUNE 2024 */

/* ========== DESIGN TOKENS ========== */
:root {
  --nav-bg: #0f172a;
  --nav-bg-light: #1e293b;
  --accent: #667eea;
  --accent-hover: #5a67d8;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --surface: #f8fafc;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font-family);
}

/* ========== NAVBAR ========== */
.navbar-pctd {
  background: var(--nav-bg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  padding: 0.6rem 1.5rem;
  font-family: var(--font-family);
}

.navbar-pctd .navbar-brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.navbar-pctd .navbar-brand:hover {
  color: var(--accent);
}

.navbar-pctd .navbar-brand .bi {
  font-size: 1.3rem;
  color: var(--accent);
}

.navbar-pctd .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.navbar-pctd .nav-link:hover,
.navbar-pctd .nav-link:focus {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.navbar-pctd .nav-link.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.navbar-pctd .dropdown-menu {
  background: var(--nav-bg-light);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  margin-top: 0.25rem;
}

.navbar-pctd .dropdown-item {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  transition: background 0.15s, color 0.15s;
}

.navbar-pctd .dropdown-item:hover,
.navbar-pctd .dropdown-item:focus {
  background: var(--accent);
  color: #fff;
  border-radius: 0.25rem;
}

.navbar-pctd .navbar-search {
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar-pctd .navbar-search .form-control {
  background: var(--nav-bg-light);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-primary);
  font-size: 0.85rem;
  border-radius: 2rem 0 0 2rem;
  padding: 0.4rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.navbar-pctd .navbar-search .form-control::placeholder {
  color: var(--text-muted);
}

.navbar-pctd .navbar-search .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(102,126,234,0.25);
  outline: none;
}

.navbar-pctd .navbar-search .btn-search {
  background: var(--accent);
  border: none;
  color: #fff;
  border-radius: 0 2rem 2rem 0;
  padding: 0.4rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}

.navbar-pctd .navbar-search .btn-search:hover {
  background: var(--accent-hover);
}

.navbar-pctd .navbar-toggler {
  border-color: rgba(255,255,255,0.15);
}

/* ========== PAGE HEADER (ephys) ========== */
.page-header-bar {
  background: linear-gradient(135deg, var(--nav-bg) 0%, var(--nav-bg-light) 100%);
  padding: 1.5rem 0 1rem;
  color: var(--text-primary);
}

.page-header-bar h2 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0;
  color: #fff;
}

.page-header-bar .header-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.page-header-bar .dandi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.page-header-bar .dandi-badge:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

.page-header-bar .view-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-header-bar .btn-view {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 0.4rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.page-header-bar .btn-view:hover,
.page-header-bar .btn-view[aria-expanded="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.page-header-bar .btn-browse-dandi {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 0.4rem;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.page-header-bar .btn-browse-dandi:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--nav-bg);
  color: var(--text-muted);
  padding: 2rem 0 1.5rem;
  font-size: 0.85rem;
  margin-top: 2rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--text-primary);
}

.site-footer .footer-divider {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 1rem 0;
}

/* ========== HOME HERO ========== */
#heroTitle {
  color: white;
  opacity: 1;
  font-family: var(--font-family);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

#ephysLink {
	color: inherit;
	text-decoration: inherit;
}

#pageTitle{
	margin: 5rem 0;
}
.controls {
	margin-top: -4rem;
}
/* DEFINE TEXT */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}
h1, .h1 {
  font-size: 2.5rem;
}
h2, .h2 {
  font-size: 2rem;
}
h3, .h3 {
  font-size: 1.5rem;
}
h4, .h4, h6, .h6 {
  font-size: 1rem;
}
h5, .h5 {
  font-size: 1.25rem;
}
.lead {
  font-size: 1.25rem;
  font-weight: 300;
}
.img {
	  -webkit-transform: scale(0.5); /* Saf3.1+, Chrome */
     -moz-transform: scale(0.5); /* FF3.5+ */
      -ms-transform: scale(0.5); /* IE9 */
       -o-transform: scale(0.5); /* Opera 10.5+ */
          transform: scale(0.5);
             /* IE6–IE9 */
             filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.9999619230641713, M12=-0.008726535498373935, M21=0.008726535498373935, M22=0.9999619230641713,SizingMethod='auto expand');
	
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.col-container {
  width: 275px;
  height: 400px;
  display: inline-block;
  overflow: hidden;
  margin: 0;
  flex: 1;
  
  background-color: gray;
}

.row.display-flex {
  display: flex;
  flex-wrap: wrap;
}
.row.display-flex > [class*='col-'] {
  display: flex;
  flex-direction: column;
}
.col {
  -ms-flex-preferred-size: 0;
  flex-basis: 0;
  -ms-flex-positive: 1;
  flex-grow: 1;
  position: relative;
  display: inline-block;
  margin: 0;
  max-width: 100%;
}
/* OUR TEAM PAGE */
#PIs{
	padding-bottom: 2.5rem
}
.bio {
	margin-bottom: 2rem
}
.bioPic{
	padding-left: 3rem
}


/* SUBSCRIBE BUTTON */
#subscribe_btn{
	margin-top: 0.5rem;
}
#team_recr{
	margin-top: 1.5rem
}
.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  border-collapse: separate;
  border-spacing:0 20px;
  table-layout: auto;
}

/* Optimize column widths */
.table th,
.table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.5rem;
  font-size: 1rem;
}

/* Specific column width constraints */
.table th[data-field="cellID"],
.table td:has([data-field="cellID"]) {
  max-width: 120px;
}

.table th[data-field="Species"] {
  max-width: 100px;
}
.table th[data-field="Cortical Area"],
.table th[data-field="Layer"]
{
  max-width: 60px;
}

.table th[data-field="AP halfwidth"],
.table th[data-field="AP amplitude"],
.table th[data-field="Rheobase"],
.table th[data-field="Resistance"],
.table th[data-field="Time Constant"],
.table th[data-field="Resting potential"],
.table th[data-field="Maximum firing rate"] {
  max-width: 100px;
}

/* Allow buttons and links to wrap if needed */
.table td[data-field="link"],
.table td[data-field="download"] {
  white-space: normal;
  min-width: 100px;
}
.table td[data-field="Morphology"] {
  white-space: normal;
  min-width: 60px;
  max-width: 80px;
}

/* Checkbox column */
.table th[data-field="state"],
.table td:first-child {
  width: 40px;
  max-width: 40px;
}

/* Preview image column */
.table th[data-field="preview"],
.table td:nth-child(3) {
  width: 60px;
  max-width: 60px;
}

/* Responsive table wrapper */
.table-responsive-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* At full width (>1400px), limit to 95% to use more space */
@media (min-width: 1400px) {
  .table-responsive-wrapper {
    max-width: 85%;
    margin: 0 auto;
  }
}

/* Medium screens (1200-1399px), use 98% */
@media (min-width: 1200px) and (max-width: 1399px) {
  .table-responsive-wrapper {
    max-width: 98%;
    margin: 0 auto;
  }
}

/* Below 1200px, use full available width */
@media (max-width: 1199px) {
  .table-responsive-wrapper {
    width: 99%;
    max-width: 99%;
  }
  
  .table {
    min-width: 900px; /* Prevents extreme squishing, enables horizontal scroll */
  }
  
  /* Further compress on smaller screens */
  .table th,
  .table td {
    font-size: 0.85rem;
    padding: 0.4rem;
  }
}

/* Hide less critical numeric columns on medium-small screens */
@media (max-width: 1025px) {
  th[data-field="Resistance"],
  th[data-field="Time Constant"],
  th[data-field="Resting potential"],
  th[data-field="Maximum firing rate"],
  .data-hide-shrink {
    display: none !important;
  }
  
  .table {
    min-width: 650px;
  }
}

/* Very small screens - show only essential columns */
@media (max-width: 767px) {
  .table th,
  .table td {
    font-size: 0.8rem;
    padding: 0.3rem;
  }
}

/* Responsive graph wrapper */
.graph-responsive-wrapper {
  width: 100%;
}

.graph-responsive-wrapper .card-body {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* At full width (>1200px), limit graphs to 80% */
@media (min-width: 1200px) {
  .graph-responsive-wrapper {
    max-width: 80%;
    margin: 0 auto;
  }
}

/* Below 1200px, use full available width */
@media (max-width: 1199px) {
  .graph-responsive-wrapper {
    width: 100%;
    max-width: 100%;
  }
}

/* Ensure graph divs are responsive and centered */
#parallelCoordsPlot, #scatterPlot {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 400px;
  margin: 0 auto;
}

/* UMAP container: fill column height on large screens, square when stacked */
#umapPlot {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* On large screens, fill the card height (matches paracoords row) */
@media (min-width: 992px) {
  .col-lg-3.d-flex > .card {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .col-lg-3.d-flex > .card > .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  #umapPlot {
    flex: 1;
    height: 100%;
  }
}

/* When stacked (below lg), keep square and cap size */
@media (max-width: 991px) {
  #umapPlot {
    aspect-ratio: 1 / 1;
    max-width: 450px;
  }
}

/* Keep paracoords landscape so axes stay readable */
#parallelCoordsPlot {
  aspect-ratio: 8 / 2;
}

/* Reduce plot heights on smaller screens */
@media (max-width: 991px) {
  #parallelCoordsPlot, #scatterPlot {
    min-height: 350px;
  }
}

@media (max-width: 767px) {
  #parallelCoordsPlot, #scatterPlot {
    min-height: 300px;
  }
}

@media (max-width: 575px) {
  #parallelCoordsPlot, #scatterPlot {
    min-height: 250px;
  }
}

.table-card-like tbody tr{
		transition: transform .2s; /* Animation */
	    
		box-shadow: 0px 5px 8px 3px rgba(0,0,0,0.25);
}
.table-card-like tbody tr:hover{
	transform-style: preserve-3d;
	transform: scale(1.005);
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
   .table-card-like tbody tr{
        box-shadow: 0px 5px 8px 3px rgba(0,0,0,0.00);
   }
}


.table-card-like tbody tr td:last-child {
		position: relative;
}


.table-striped tbody tr:nth-of-type(odd) {
  
  background-color: rgba(0, 0, 0, 0.05);
}
.table-striped tbody tr.detail-view {
  
  background-color: rgba(0, 0, 0, 0.0000);
}
.table-striped tbody tr.detail-view:hover {
  transform-style: preserve-3d;
transform: scale(1);
  background-color: rgba(0, 0, 0, 0.0000);
}
.form-control-lg {
  height: calc(1.5em + 1rem + 2px);
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
  border-radius: 0.3rem;
  width: 13rem;
  margin-left: 2rem;
  margin-top: 0rem;
}
#downloadActions {
	float:right;
	padding:0.5rem;
}
#filterParallelBtn {
	margin-left: 0.5rem;
}
.btn-outline-success {
  color: #fff;
  border-color: #fff;
}

.btn-outline-success:hover {
  color: #fff;
  background-color: #495057;
  border-color: #fff;
}

.btn-outline-success:focus, .btn-outline-success.focus {
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5);
}

.btn-outline-success.disabled, .btn-outline-success:disabled {
  color: #fff;
  background-color: transparent;
}

.btn-outline-success:not(:disabled):not(.disabled):active, .btn-outline-success:not(:disabled):not(.disabled).active,
.show > .btn-outline-success.dropdown-toggle {
  color: #fff;
  background-color: #495057;
  border-color: #495057;
}
.dropright {
	position:relative;
	align-content: left;
}
.card-link{
	cursor: pointer;
}

@media (min-width: 576px) {
  .card-columns {
    -webkit-column-count: 5;
    -moz-column-count: 3;
    column-count: 4;
    -webkit-column-gap: 1.25rem;
    -moz-column-gap: 1.25rem;
    column-gap: 1rem;
    orphans: 1;
    widows: 1;
}}
.jumbotron {
  padding-bottom: 2rem 1rem;
  margin-bottom: 2rem;
  margin-top: 0;
  background-color: #e9ecef;
 /*background: url("../greyneurons.png") no-repeat center center fixed;*/

  border-radius: 0.3rem;
}
#image-gallery {
    width: 100%;
    position: relative;
    height: 650px;
    background: #000;
    }

    #image-gallery .image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 50px;
    }
#image-gallery .prev,
#image-gallery .next {
position: absolute;
height: 32px;
margin-top: -66px;
top: 50%;
}

#image-gallery .prev {
left: 20px;
}

#image-gallery .next {
right: 20px;
cursor: pointer;
}

#image-gallery .footer-info {
position: absolute;
height: 50px;
width: 100%;
left: 0;
bottom: 0;
line-height: 50px;
font-size: 24px;
text-align: center;
color: white;
border-top: 1px solid #fff;
}

#home {
    height: 40vh;
}
/* hardware accelatator class */	
	.trans3d
	{
		-webkit-transform-style: preserve-3d;
		-webkit-transform: translate3d(0, 0, 0);
		-moz-transform-style: preserve-3d;
		-moz-transform: translate3d(0, 0, 0);
		-ms-transform-style:preserve-3d;
		-ms-transform: translate3d(0, 0, 0);
		transform-style:preserve-3d;
		transform: translate3d(0, 0, 0);

		/*-webkit-backface-visibility: hidden;
		-moz-backface-visibility: hidden;
		-ms-backface-visibility:hidden;
		backface-visibility:hidden;*/
	}
	
	#contentContainer
	{
		position:absolute;
		margin-left:-10vh;
		margin-top:0vh;
		left:50%;
		top:30%;
		width:10vh;
		height:14vh;
	}
	
	#carouselContainer
	{
		position:absolute;
		margin-left:-0vh;
		margin-top:-7vh;
		left:50%;
		top:70%;
		width:10vh;
		height:15vh;
	}
	
	/*.carouselItem
	{
		width:500px;
		height:200px;
		position:absolute;
		left:50%;
		top:50%;
		margin-left:-160px;
		margin-top: -150px;
		visibility:hidden;
	}*/

	.carouselItem
	{
		width:320px;
		height:130px;
		position:absolute;
		left:50%;
		top:50%;
		margin-left:-160px;
		margin-top:-90px;
		visibility:hidden;
	}
	
	.carouselItemInner
	{
		/*width:50px;
		height:130px;*/
		position:absolute;
		/*background-color:rgba(255, 255, 255, .75);
		border:10px solid rgba(255, 255, 255, .5);
		color:aqua;*/
		left:50%;
		top:50%;
		margin-left:-160px;
		margin-top:-90px;
		text-align:center;
		padding-top:30px;	
	}

 /* --  background image section  -- */
 .bg-img {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
	margin-bottom: 55vh;
	 margin-top: 0vh;
    z-index: -1;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
	background-color: var(--nav-bg);
}
 .bg-img .overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    opacity: .8;
    background: #000000;
}
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 5%;
  color: #1E1E1E;
  background-color: #4A4A4A;
  text-align: center;
  opacity: 0.3;
  transition: opacity 0.15s ease;
}
.carousel-indicators {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 15;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  padding-left: 0;
  margin-right: 15%;
  margin-left: 15%;  
  list-style: none;
}
#comingSoon {
	margin: 10rem 0 !important	
}

/* ========== DETAIL VIEW STYLING ========== */

.detail-container {
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0.75rem 0.5rem;
    padding: 1rem;
}

.waveform-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    margin-bottom: 0.75rem;
}

.waveform-plot {
    width: 100%;
    flex: 1;
    min-height: 400px;
}

.detail-container .row {
    min-height: 450px;
}

.detail-container .col-lg-8 {
    display: flex;
    flex-direction: column;
}

.section-title {
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #667eea;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #667eea;
    font-size: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.info-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0.6rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #667eea;
}

.info-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 2px;
}

.info-value {
    font-size: 0.9rem;
    color: #212529;
    font-weight: 500;
}

/* ========== TABLE HEADER ========== */

.table thead th {
    font-weight: 500;
    border-bottom: 2px solid #dee2e6;
}

/* Keep existing table-card-like styles but simplify */
.table-card-like tbody tr.detail-view {
    background: transparent !important;
    box-shadow: none !important;
}

.table-card-like tbody tr.detail-view:hover {
    transform: none !important;
    box-shadow: none !important;
}

.table-card-like tbody tr.detail-view > td {
    padding: 0 !important;
}

/* ========== BUTTON BAR ========== */

#Filter {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

#downloadActions {
    float: right;
    padding: 0.5rem;
    display: none;
}

#dlsel, #browseDandiBtn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

#dlsel:hover, #browseDandiBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.35);
}

/* ========== PARALLEL COORDS CARD ========== */

#ScatterFilter .card,
#Scatter2Filter .card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */

@media (max-width: 991px) {
    .info-grid.two-col {
        grid-template-columns: 1fr;
    }
    
    .detail-container .row {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .detail-container {
        margin: 0.25rem;
        padding: 0.75rem;
    }
    
    #Filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    #downloadActions {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}