:root{
    --gray: #1e1e1c;
    --white: #fff;
    --black: #000;
    --lightgray: #d9d9d9;
    --danger: #DC3545;
    --warning: #FFC107;
    --succes: #198754;

}

*{
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
}


/**** Login ****/
#login-page{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: calc(100vh - 50px);
    background-color: var(--white);
}
h1{
    margin-bottom: 80px;
    font-size: 3rem;
}
#login-box{
    width: 350px;
    height: 407px;
    background-color: var(--gray);
    color: var(--white);
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}
form{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
h2{
    font-size: 2rem;
}
.input-container{
    position: relative;
    width: 250px;
    margin: 10px 0;
    border-bottom: 2px solid var(--white);
}
.input-container label{
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    pointer-events: none;
    transition: .5s;
}
.input-container input:focus ~ label,
.input-container input:valid ~ label{
    top: -5px;
}
.input-container input{
    width: 100%;
    height: 40px;
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: var(--white);
    padding-left: 4px;
}
.input-container .icon{
    position: absolute;
    right: 8px;
    font-size: 1.2em;
    line-height: 57px;
}
.captcha-box {
    transform: scale(0.85);
    transform-origin: 0 0;
    -webkit-transform: scale(0.85);
    -webkit-transform-origin: 0 0;
    margin: 10px 0 0 50px;
}
.submit-btn{
    width: 200px;
    height: 40px;
    border-radius: 37px;
    font-size: 1.5rem;
    background-color: var(--lightgray);
    color: var(--gray);
    cursor: pointer;
    border: none;
}
.submit-btn:hover{
    background-color: #a1a1a1;
}
#alert{
    margin-top: 10px;
    color: var(--danger);
}
footer{
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


/**** System ****/

#system-page-eshop{
  display: flex;
  align-items: center;
  justify-content: start;
  flex-direction: column;
  min-height: calc(100vh - 50px);
}
nav{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  font-size: 1.3rem;
}
nav a{
  color: var(--gray);
  text-decoration: none;
  margin: 0 10px;
}
nav a:hover{
  font-weight: bolder;
}
.active{
  font-weight: bold;
}
#person-select{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  font-size: 1.3rem;
}
#person-select a{
  text-decoration: none;
  color: var(--gray);
  margin: 0 5px;
}
.active-person{
  background-color: var(--gray);
  color: var(--white) !important;
  border-radius: 50%;
  font-weight: bold;
  padding: 3px 10px;
}
table, td{
  border: 1px solid var(--gray);
  border-collapse: collapse;
}
table{
  width: 80%;
}
td{
  padding: 5px;
  font-size: 1.2rem;
  height: 47px;
}
td:nth-child(4n+1){
  width: 70px;
}
td:nth-child(4n+2){
  width: calc(100% - 170px);
  border-right: none;
} 
td:nth-child(4n+3){
  width: 30px;
  text-align: center;
  border-left: none;
  border-right: none;
}
  td:nth-child(4n+4){
  width: 30px;
  text-align: center;
  border-left: none;
}
td .icon, td .icon-green{
  font-size: 1.8rem;
}
td .icon:hover{
  cursor: pointer;
  color: var(--danger);
}
td .icon-green:hover{
  cursor: pointer;
  color: var(--succes);
}
td a{
  text-decoration: none;
  color: var(--gray);
}
  tr:nth-child(-n+1){
  text-align: center;
  background-color: var(--gray);
  color: var(--white);
  
}
.white{
  border: 1px solid var(--white);
}

#tables{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: start;
}
#table-order{
  width: 60%;
  margin:0 10px;
}

#tables #table{
  margin-right: 10px;
}
#btns{
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#btns-left{
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#btns-right{
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#add-item, #order-add, #send-btn{
  text-decoration: none;
  background-color: var(--succes);
  color: var(--white);
  border-radius: 12px;
  padding: 8px 10px;
  margin-top: 5px;
}
#add-item:hover, #order-add:hover{
  background-color: #20c578;
}
#send-btn{
  background-color: #0A6FFD !important;
}
#send-btn:hover{
  background-color: #448aec !important;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  font-family: Roboto, sans-serif;
}

.modal-content {
  background: var(--white);
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.modal-buttons button {
  padding: 6px 16px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#confirm-yes {
  background-color: var(--danger);
  color: var(--white);
}
#confirm-yes:hover {
  background-color: #bb2d3b;
}

#confirm-no {
  background-color: var(--lightgray);
}
#confirm-no:hover {
  background-color: #a1a1a1;
}
.modal input[type="text"] {
  padding: 6px;
  width: 100%;
  max-width: 300px;
  margin-top: 4px;
  font-size: 16px;
}

#btns-group{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
}


