:root,
:host {
    --pico-font-size: 100%;
}

.center {
    display: flex;
    justify-content: left;
    align-items: center;
}

.admin-container {
    display: flex;
}

.admin-nav {
    text-align: center;
    min-height: max(50vh, 200px);
    padding: 5px;
    width: 250px;
    margin-right: 5px;
    border: solid 1px gray;
    flex-grow: 0;
    flex-shrink: 0;
}

.admin-content {
    flex-grow: 1;
    overflow-x: hidden;
}

.red-box {
    border: solid 1px red;
}

.yellow-box {
    border: solid 1px yellow;
}

/*  TODO: Move table css into its own css file */

.admin-catalog-table-form {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px 15px;
    /* aligns all grid items to the top of their row */
    align-items: start ;
    /* align-items: center; */
    margin-top: 10px;
}

.admin-catalog-table-row {
    display: contents;
}

.admin-catalog-table-form input {
    height: 40px;
    margin: 0px;
    padding: 5px;
}

.admin-catalog-table-form .error{
    color: #f44336;
    font-size: 12px;
    margin-top: 4px;
}

.admin-catalog-table-form .form-label {
    /* allign with the input elm */
    padding-top: 9px; 
    /* padding-bottom: 19px;    needs padding size of error field */
}

table.hover tr:hover td {
    background-color: #fefefe4c;
    cursor: pointer;
}
/* Alternatively, if you explicitly set data-theme="light" on your html tag */
:root[data-theme="light"] {
  --pico-h2-color: #2e2e2e;
  --pico-background-color: #714e46;
}
html[data-theme="dark"] {
  --pico-background-color: #4e342e;
}

/*
:root:not([data-theme="dark"]) {
  --pico-background-color: #f0f0f0;
} */

body {
  /* background-color: #2c2c2c;/* Dark grey background */
  /* color: #e0e0e0; /* Light grey text */
  /* font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* Common sans-serif font */

  /* Attempting a subtle dot pattern - this is a simplified version */
  background-image: radial-gradient(#444 1px, transparent 1px);
  background-repeat: repeat;
  background-size: 15px 15px;
  min-height: 100vh; /* Ensure body takes full height */
  /* display: flex;
      flex-direction: column; */
}
section {
  background-color: var(--pico-background-color);
  color: var(--pico-color);
}
.logo {
  font-size: 2.5em;
  font-weight: bold;
  color: #d9a4a4; /* Text color - Muted red/pink */
  text-shadow: 1px 1px 2px #000;
  text-align: center;
  background-color: rgba(
    121,
    7,
    7,
    0.35
  ); /* Reddish highlight, semi-transparent */
  padding: 1px;
  border-radius: 5px;
  position: relative; /* For positioning the pseudo-element */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Added a subtle shadow */
  width: 400px;
  /* margin-left: 100px;
      margin-right: 100px; */
  margin: auto;
  min-width: 300px;
  margin-bottom: 10px;
}

/* Divider line for the logo */
.logo::after {
  content: ""; /* Necessary for pseudo-elements to show */
  position: absolute;
  bottom: 6px; /* Distance from the bottom of the logo's padding box */
  left: 10px; /* Inset from the left padding edge of the logo */
  right: 10px; /* Inset from the right padding edge of the logo */
  height: 3px; /* Thickness of the divider line */
  background-color: #b87070; /* Color of the divider line (darker red) */
  border-radius: 1px; /* Slightly rounded ends for the line itself */
}
.cigar-search-box {
  /* display: inline; */
  /* padding-top: 0px; */
  position: relative;
  max-width: 500px;
  min-width: 200px;
  margin: auto;
}
.search-results {
  margin-top: 5px;
  border-radius: 5px;
  border-width: 1px;
  padding-left: 20px;
  padding-right: 10px;
  left: 50%;
  transform: translate(-50%); /*why does this work*/
  position: absolute;
  z-index: 1;
  background-color: wheat;
  opacity: 80%;
  width: parent;
  width: 90%;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.5s ease,
    opacity 0.3s ease;
  overflow: hidden;
}
.search-results.open {
  max-height: 500px;
  opacity: 1;
  overflow-y: auto;
}

.search-results li {
  list-style-type: none;
  /* border-bottom: #000 solid 1px; */
  cursor: pointer;
  margin-top: 10px;
}

.search-results li:hover {
  background-color: darkcyan;
}


.cigar-info {
    border: solid #CBA135 1px;
    /* width: 50%; */
    max-width: 400px; /* around the width of a pixel phone screen */
    text-align: center;
    margin-bottom: .5rem;
    display: grid;
    /* grid-template-columns: auto 1fr; */
    grid-template-columns:  0.3fr 1fr 1fr .3fr;;
    background-color: #3f3f3f;
    border-radius: 10px;
}
/* 7a5319 */
.cigar-info .cigar-info-tag {
    color: #b8b1b1;
    grid-column: 2;
}

.cigar-info .cigar-value {
    color: #b18d2e;
    grid-column: 3;
}


/* #origin-tag{
    grid-row: 1;
    grid-column: 1;
}
#origin-info{
    grid-row: 2;
    grid-column: 1;
}

#strength-tag{
    grid-row: 1;
    grid-column: 2;
}

#strength-value{
    grid-row: 2;
    grid-column: 2;
} */
/*
Css for smoke_session_history.partial
*/
.cigar-smokes-history {
    margin-top: 10px;
}

.cigar-smokes-history .cigar-smoke-row {
    display: flex;
}


/* Maybe split the datetime and the rating + smoke time */
.cigar-smokes-history .cigar-log-info{
    min-width: 120px;
    border: 1px solid goldenrod;
    padding-left: 5px;
    padding-right: 5px;
    text-align: center;
}


.cigar-smokes-history .cigar-log-grid{
    border: 1px solid goldenrod;
    margin-top: 10px;
    display: grid;
    column-gap: 1rem;
    row-gap: 3px;
    grid-template-columns: 1fr 1fr;
    /* grid-template-rows: 1fr 1fr 1fr; */

    background-color: #3f3f3f;
    color: #b8b1b1;
    border-radius: 10px;
    padding: 12px;
}
.cigar-log-grid .cigar-title{ 
    /* grid-column: span 2; */
    grid-row: span 3;
    font-weight: bold;
    text-align: center;
    margin: auto;

    color: #b18d2e;

}
.cigar-log-grid .smoke-notes{ 
    grid-column: span 2;
    width: 100%;
    max-height: 170px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #b18d2e orange;
    padding-left: 5px;
    padding-right: 5px;
}



.cigar-smokes-history .cigar-log-notes{
    width: 100%;
    max-height: 100px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: red orange;
    padding-left: 5px;
    padding-right: 5px;
}
.session-form {
    border: solid #CBA135 1px;
    /* width: 50%; */
    max-width: 400px; /* around the width of a pixel phone screen */
    text-align: center;
}

/* Chrome, Safari, Edge, Opera */
.session-form input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.session-form input[type=number] {
  -moz-appearance: textfield;
}

.session-form input{
    padding: 0px;
    height: 2rem;
    background: none;
    text-align: center;
    border: none;
    border-bottom: black solid 1px;
    border-radius: 0px;
    width: 75%;
    /* -webkit-appearance: none; */
}

.session-form label {
    text-align: center;
}
.session-form * {
    padding-right: 0.3rem;
}

.session-form textarea {
    border: black solid 1px;
    overflow: auto;
    outline: none;

    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;

    resize: none; /*remove the resize handle on the bottom right*/

    background: none;
    margin-left: 2px; /* fix a way to auto align*/

    max-height: 300px; /* depends on parent size */
}

.session-form .cigar-session-btn{
    width: 60%;
}

.session-form .cigar-session-form-div {
    opacity: 0;
    max-height: 0px;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    overflow: hidden;
}

.session-form .cigar-session-form-div.open {
    max-height: 1050px; /* guess a max height, if we add more feilds this needs to be updated*/
    opacity: 1;
    /* overflow-y: auto; */
}
