/* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

:root{
  --main-color: #3b5dad; /*Original color #1a347b*/
  --row-color: #3b5dad;
}

/* General Styles */

.card-container{
  border-radius: 10px;
  background-color: white;
}


.card-title{
  border-radius: 10px 10px 0 0;
  background-color: var(--main-color);
  color:  white;
  padding: 5px 16px;
}

.card-title h3{
  margin-bottom: 0 !important;
}

.card-body{
  border-radius: 0 0 10px 10px;
}

.btn-primary{
  background-color: var(--main-color);
  border-color: var(--main-color) !important;
}

.h-90{
  height: 90% !important;
}

/* LOGIN STYLES */

.login-bg{
    width: 100vw;
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .login-bg h2{
    font-size: 2.3rem;
    color: #fff;
    text-align: center;
  }
  
  .login-card{
    position: relative;
    width: 400px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, .6);
    backdrop-filter: blur(15px);
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .input-login{
    position: relative;
    margin: 30px 0;
    width: 300px;
    border-bottom: 2px solid #fff;
  }
  
  .input-login label{
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1rem;
    pointer-events: none;
    transition: .6s;
    font-weight: bold;
  }
  
  .input-login input:focus ~ label,
  .input-login input:valid ~ label{
    top: -5px;
  }
  
  .input-login input{
    width: 100%;
    height: 50px;
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: - 35px 0 5px;
    color: #fff;
  }
  
  .input-login img{
    position: absolute;
    width: 20px;
    height: auto;
    top: 19px;
    right: 8px;
  }
  
  .login-btn{
    width: 100%;
    height: 45px;
    border-radius: 40px;
    background: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    font-size: 1rem;
    transition: .4s;
  }
  
  .login-btn:hover{
    opacity: .9;
}

/* ************** */
/*  GENERAL DASHBOARD STYLES */

.main-content{
  flex: 0 0 calc(100% - 260px);
  min-height: 100vh;
  background-color: #efefef;
}

.sidebar{
  flex: 0 0 260px;
  background-color: var(--main-color);
  min-height: 100vh;
  padding: 10px;
}

.sidebar-title{
  width: 100%;
  background-color: white;
  border-radius: 6px;
}


.sidebar-separator{
  width: 100%;
  height: 2px;
  background-color: white;
}


.sidebar-option{
  padding: 5px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  cursor: pointer;
  text-decoration: none;
  border-radius: 8px;
  border: solid white 2px;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.sidebar-option:hover{
  background-color: white;
  color: var(--main-color);
}

.sidebar-option p{
  margin-bottom: 0;
}

/* ******************* */
/* User Interface Styles */

.principal-table{
  max-height: calc(100vh - 250px);
  overflow-y: scroll;
}

.secondary-table{
  max-height: 500px;
  overflow-y: scroll;
}

.catalog-table{
  max-height: 250px;
  overflow-y: scroll;
}


/* ******************* */
/* Product Interface Styles */


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

.entity-options div{
  margin-right: 10px;
}

.mw-600{
  margin: 0 auto;
  max-width: 400px;
}


/* ******************* */
/* Product Interface Styles */

.recipe-img {
  max-width: 200px;
  height: 200px;
  margin-bottom: 10px;
  object-fit: cover;
}


/* ******************* */
/* Tables Styles */

.table-row-comida-selectable:hover, .table-row-selectable:hover{
  background-color: var(--row-color);
}

.table-row-comida-selectable:hover th, .table-row-selectable:hover th{
  color: white;
}

.table-row-comida-selectable.active, .table-row-selectable.active{
  background-color: var(--row-color);
}

.table-row-comida-selectable.active th, .table-row-selectable.active th{
  color: white;
}

.table-row-selectable:hover .delete-comida-comedor-btn,
.table-row-selectable.active .delete-comida-comedor-btn{
  color: white;
  border-color: white;
}

/**
 * ----------------------------------------
 * animation scale-in-left
 * ----------------------------------------
 */
 @keyframes scale-in-left {
  0% {
    transform: scale(0);
    transform-origin: 0% 50%;
    opacity: 1;
  }
  100% {
    transform: scale(1);
    transform-origin: 0% 50%;
    opacity: 1;
  }
}

.scale-in-left {
	animation: scale-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}