/* MARK: Body 
*/
body {
    font-family: Arial, sans-serif;
    /* margin: 20px; */
    height:100%;
}
.content-body {
    margin-top: 120px;
    padding: 10px;
}
.body-with-back-link {
    margin-top: 40px;
    padding: 10px;
}
.greenhouse-view-body-with-back-link {
    padding: 10px;
}

/* MARK: Headers
*/
.page-header { /* mainHeader*/
    background-color: rgb(0, 102, 44);
    color: white;
    width: 100vw;
    box-sizing: border-box;
    flex-grow: 1;
    padding-left: 32px;
    padding-right: 32px;
    display: flex;
    height: 90px;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    /* transition: visibility 0.15s 0.167s;
    justify-content: left;
    animation-name: css-0, css-12;
    animation-duration: 0.15s;
    animation-timing-function: linear;
    animation-fill-mode: backwards;
    animation-delay: 0.167s; */
}
/* .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
} */
 .page-header, .mainHeader {
    justify-content: left;
 }
.header-left {
    /* flex: 1; */
    flex-wrap: nowrap;
    flex-direction: row;
    margin: auto;
    width: 30%;
  /* padding: -20px; */
}
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* flex-direction: row-reverse; */
    gap: 0.5rem;
    width: 30%;
    min-width: 320px;
}
.header-center {
    /* flex: 1; */
    margin: auto;
    text-align: center;
    width: 30%;
}

/* MARK: Footers 
*/
.footer {
    font-size: 0.9em; 
    /* min-height: 5em; */
    color: #6c757d;
    /* position: sticky; */
    justify-self: center; 
    align-self: end;  
    /* z-index: -1; */
}
.footer-2 {
    margin-top: 2%;
}
.footer-5 {
    margin-top: 5%;
}
.footer-15 {
    margin-top: 15%;
}
#onboardingCommitteeInfo {
    font-size: 0.9em; 
    color: #6c757d;
    margin-top: 8px;
}

/* MARK: Buttons 
*/
#addEventBtn, #generatePsiNameBtn, #editPsiNotesBtn {
    /* Prevent event table from moving */
    white-space: nowrap;
}


/* MARK: Login 
*/
.login-body {
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
}
.login-container, .create-account-container {
    margin-top: 240px;
    max-width: 400px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.login-container h2 {
    margin-bottom: 20px;
    text-align: center;
}
.form-control {
    margin-bottom: 15px;
}
#loginBtn, #createAccountBtn {
    width: 100%;
}
.create-account-link {
    display: block;
    text-align: center;
    margin-top: 10px;
}
.password-container {
    position: relative;
}
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* MARK: Email Verification 
*/
.card {
    margin-top: 1px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* MARK: Calendar 
*/
#calendar {
    max-width: 900px;
    margin: 0 auto;
}
#calendarOptions {
    /* Mirrored calendar width so the buttons will always stay aligned with the calendar's right edge regardless of window width. */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


/* MARK: Modal 
*/
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    display: none;
}
.my-modal {
    position: relative; 
    margin: 10% auto;
    /* padding: 20px; */
    width:90%;
    max-height: 80vh;
    overflow-y: auto;
}


/* MARK: Labels 
*/
label {
    font-weight: bold;
}
.wordCountLabel {
    font-weight: normal;
    font-size: 0.9rem;
    color: gray;
    margin-left: 0.5rem;
}
.approval-label {
    font-weight: bold;
}


/* MARK: General 
*/
textarea {
    width: 100%;
    height: 100px;
}
/* #experimentName {
    font-size: 1.5rem;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-weight: bold;
} */
.fs-1 {
    font-size: 1.8rem;
}
.control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-section, .info-section {
    flex: 1;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.dark-grey-text {
    color: #555555;
}
.page-back-link, #notesSection {
    padding-left: 10px;
}


/* MARK: Tables
*/
#experimentTable {
    width: 100%;
}



/* MARK: Sidenav 
*/
.sidenav {
    height: auto; 
    width: 0; /* 0 width - change this with JavaScript */
    position: absolute;
    z-index: 99; /* Stay on top */
    top: 0; /* Stay at the top */
    left: 0;
    background-color:rgba(0, 0, 0, 0.8); /* Translucent Black*/
    overflow-x: hidden;
    overflow-y: hidden;
    padding-top: 60px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}
/* Position and style the close button (top right corner) */
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}
@media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav .closebtn {font-size: 20px; right: 15px;}
}

/* MARK: FullCalendar */
/* Fix box-sizing computation collisions between core grid calculations and theme layers */
.fc-monarch-n5m .fc-gM,
.fc-monarch-n5m .fc-dF,
.fc-monarch-n5m .fc-Vl {
  box-sizing: border-box !important;
}

/* Force the multi-day event tracking blocks back to an aligned center layout */
.fc-monarch-n5m .fc-monarch-dl1 {
  display: flex !important;
  align-items: center !important;
}

/* Correct the vertical offset misalignment caused by the 1.5 theme line-height */
.fc-monarch-n5m .fc-monarch-1EY {
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* MARK: Tray Slots
*/
/* Tray preview base styles */
#trayPreview { display:block; }
#trayPreview .tray-template { display:none; width:240px; height:220px; box-sizing:border-box; }
#trayPreview .tray-template.active { display:block; }

/* Outer tray frame that surrounds the dots (the rectangular tray border) */
#trayPreview .tray-frame {
    background: #e2effdef;
    border: 2px solid #000;
    border-radius: 6px;
    padding: 10px;
    box-sizing: border-box;
    display: grid;
    gap: 8px;
    width: 100%;
    /* Default rectangular tray aspect ratio for non-Rhizo trays will be applied below */
}

/* Ensure consistent rectangular tray-frame dimensions for non-Rhizo trays:
    slightly wider than tall and same across all non-Rhizo templates */
#trayPreview .tray-template[data-tray-type]:not([data-tray-type*="Rhizo"]) .tray-frame {
    aspect-ratio: 1.6 / 1; /* width : height */
    max-width: 360px;
    margin: 0 auto;
}

/* Individual slot squares inside the tray-frame (the dots live inside these squares) */
#trayPreview .tray-frame .slot {
    background: #e2effdef;
    /* border: 1px solid #000; */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; /* keep slots square */
    min-width: 20px;
    min-height: 20px;
    padding: 2px;
    border-radius: 2px;
    position: relative;
}
#trayPreview .slot .label { color:#999; font-size:0.85rem; }

/* Plant dot sizes */
#trayPreview .plant-dot { background:#0a7d3a; border-radius:50%; box-shadow:0 0 0 2px rgba(10,125,58,0.12); display:inline-block; }
#trayPreview .plant-dot.small { width:20px; height:20px; }
#trayPreview .plant-dot.medium { width:42px; height:42px; }
/* Make large noticeably larger than medium */
#trayPreview .plant-dot.large { width:88px; height:88px; }

/* Grid presets applied to the tray-frame via the template class */
#trayPreview .t-4-medium .tray-frame { grid-template-columns: repeat(2, 1fr); justify-items:center; align-items:center;}
#trayPreview .t-1-medium .tray-frame { grid-template-columns: 1fr; justify-items:center; align-items:center; }
#trayPreview .t-1-large .tray-frame { grid-template-columns: 1fr; justify-items:center; align-items:center; }
#trayPreview .t-20-small .tray-frame { grid-template-columns: repeat(5, 1fr); justify-items:center; align-items:center;}

/* Slight tweak for single-slot templates to center the large dot */
#trayPreview .t-1-medium .slot { min-height: 60px; min-width: 60px; }
#trayPreview .t-1-large .slot { min-height: 80px; min-width: 100px; }

/* MARK: Rhizo Trays 
*/
/* Rhizo-specific visuals: elbow + angled plate */
#trayPreview .tray-template.t-rhizo .tray-frame { display:flex; align-items:center; justify-content:center; padding:18px; }

.rhizo-wrap {
    position: relative;
    width: 150px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* grey elbow (fixed piece) */
.rhizo-elbow {
    position: absolute;
    left: 18px;
    bottom: 18px;
    width: 18px;
    height: 48px;
    background: #9aa3a8;
    border-radius: 4px;
    transform-origin: 8px 8px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.15) inset;
}
/* short horizontal segment to make the elbow shape */
.rhizo-elbow:after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 46px;
    width: 36px;
    height: 18px;
    background: #9aa3a8;
    border-radius: 4px;
}

/* brown plate (rotated element) */
.rhizo-plate {
    position: absolute;
    left: 42px;
    bottom: 56px;
    width: 130px;
    height: 20px;
    background: #473422ff;
    border-radius: 4px;
    box-shadow: 0 2px 0 rgba(0,0,0,0.15);
    transform-origin: 6px 8px; /* hinge near the elbow */
}

/* slightly thicker plate when used with 1-slot-large visuals */
.rhizo-plate.large { height: 26px; }

/* Overlap variant: slide plate farther left (so it intersects with elbow area less) */
.rhizo-wrap[data-overlap="true"] .rhizo-plate {
    left: 34px;
    opacity: 1;
}

/* A tiny base tray block to suggest the rectangular tray */
.rhizo-base {
    position: absolute;
    left: 8px;
    bottom: 6px;
    width: 130px;
    height: 26px;
    background: #0d4f7a;
    border-radius: 6px;
    opacity: 0.95;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

/* Angle helper classes */
.rhizo-plate.angle-25 { transform: rotate(-65deg); }
.rhizo-plate.angle-35 { transform: rotate(-55deg); }
.rhizo-plate.angle-45 { transform: rotate(-45deg); }

/* Tweak sizes for overlap false/true to visually match examples */
.rhizo-wrap[data-overlap="false"] .rhizo-plate.angle-25 { left: 46px; }
.rhizo-wrap[data-overlap="true"]  .rhizo-plate.angle-25 { left: 38px; }

.rhizo-wrap[data-overlap="false"] .rhizo-plate.angle-35 { left: 44px; }
.rhizo-wrap[data-overlap="true"]  .rhizo-plate.angle-35 { left: 36px; }

.rhizo-wrap[data-overlap="false"] .rhizo-plate.angle-45 { left: 40px; }
.rhizo-wrap[data-overlap="true"]  .rhizo-plate.angle-45 { left: 32px; }