/* ---- FILE: index.css ---- */

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    background-color: #ECEDF2;
}



/* Target the entire scrollbar element */
::-webkit-scrollbar {
  width: 8px;
  max-height: calc(100% - 20px);/* Sets the width of the scrollbar */
}

/* Style the track (the background) */
::-webkit-scrollbar-track {
  background: rgba(255,255,255, .3);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255, .3);
}

/* Style the thumb (the draggable part) */
::-webkit-scrollbar-thumb {
  background: #555; /* A darker grey for the handle */
  border-radius: 5px; /* Gives it rounded corners */
}

/* Change the thumb's color when you hover over it */
::-webkit-scrollbar-thumb:hover {
  background: #888; /* A lighter grey on hover */
}




.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    position: fixed;
    z-index: -1;
}

.main-content {
    position: absolute;
    width: calc(100% - 90px);
    left: auto !important;
    right: 10px;
    top: 10px;
    bottom: 10px;
    overflow-y: auto;
    transition: .3s ease-in-out;
    overflow: visible; 
}

.main-content.hidden {
  left: 200% !important;
}



.panel {
    background-color: white;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, .3);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
    position: absolute;
    transition: width 0.5s ease-in-out,
                height 0.5s ease-in-out,
                top 0.5s ease-in-out,
                left 0.5s ease-in-out,
                transform 0.5s ease-in-out;
}


.panel.loading {
    top: 10px;
    left: 10px;
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    transform: translate(0, 0);
}

.panel.login {
    width: 400px;
    height: 440px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s 0.5s ease-in-out, visibility 0.4s 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 20px 20px;
    box-sizing: border-box;
    pointer-events: none;
}

.panel.login + .login-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* NOU: Animația de "shake" pentru erori */
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.main-logo-img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    border-radius: 50px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    transition: transform 0.5s ease-in-out,
                opacity 0.5s ease-in-out,
                top 0.5s ease-in-out,
                left 0.5s ease-in-out,
                width 0.5s ease-in-out,
                height 0.5s ease-in-out,
                box-shadow 0.5s ease-in-out;
}

.main-logo-img.show {
    transform: translate(-50%, -50%) scale(1);
    width: 100px;
    height: 100px;
    opacity: 1;
    visibility: visible;
}

.panel.login .main-logo-img {
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    transform: translate(0, 0);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
}

.loading-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 107px;
    height: 107px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    border-radius: 55px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out,
                visibility 0.5s ease-out,
                width 0.5s ease-in-out,
                height 0.5s ease-in-out,
                top 0.5s ease-in-out,
                left 0.5s ease-in-out;
}

.loading-bar.show {
    opacity: 1;
    visibility: visible;
    animation: spin 1s linear infinite;
}

.panel.login .loading-bar {
    top: 16.5px;
    left: 16.5px;
    width: 57px;
    height: 57px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.panel-content {
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    overflow: hidden;
}

/* NOU: Clasa pentru a aplica animația de shake */
.panel-content.shake {
    animation: shake 0.5s ease-in-out;
}

.login-title,
.input-wrapper,
.lost-password-p,
.checkbox-table,
#button-login {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.panel.login + .login-content .login-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.panel.login + .login-content .input-wrapper:nth-of-type(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.panel.login + .login-content .input-wrapper:nth-of-type(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.panel.login + .login-content .lost-password-p,
.panel.login + .login-content .checkbox-table {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.panel.login + .login-content #button-login {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

h1, p {
    text-align: center;
}

.login-title {
    font-weight: 200;
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    margin-top: 30px;
    width: 100%;
}

.panel-label {
    font-size: 10px;
    font-weight: bold;
    position: absolute;
    left: 10px;
    top: -15px;
    background-color: transparent;
    color: #1c1c1c;
    padding: 0 5px;
    z-index: 1;
}

.panel-input {
    border: 1px solid rgba(0,0,0, .5);
    width: 100%;
    height: 40px;
    border-radius: 10px;
    padding: 0 10px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: transparent;
    outline: none;
    transition: border-color 0.3s ease-in-out; /* Tranziție pentru culoare */
}

/* NOU: Clasa de eroare pentru input */
.panel-input.input-error {
    border-color: #d40000;
}

.lost-password-p {
    font-size: 12px;
    color: #1c1c1c;
    margin: 10px 0;
    text-align: right;
    cursor: pointer;
}

.checkbox-table {
    width: 100%;
    display: table;
    margin-top: 10px;
}

.checkbox-cell {
    display: table-cell;
    vertical-align: middle;
}

#checkbox-cell-checkbox {
    width: 25px;
}

.checkbox-custom {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border: 1px solid #1c1c1c;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    top: 0;
}

.checkbox-custom:checked::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 9px;
    height: 9px;
    background-color: #1c1c1c;
    border-radius: 50%;
}

.checkbox-label {
    font-size: 12px;
    cursor: pointer;
}

#button-login {
    background-color: #1c1c1c;
    cursor: pointer;
    border: 0;
    outline: 0;
    padding: 10px 15px;
    color: white;
    border-radius: 10px;
    margin-top: 20px;
    box-sizing: border-box;
    transition: background-color 0.3s, transform 0.3s, opacity 0.4s ease-out;
}

#button-login:hover {
    transform: translateY(-3px);
}


.error-message {
  font-size: 10px;
  color: #d40000;
  margin: 0;
  opacity: 0;
  line-height: 0px;
  text-align: left;
  padding-left: 15px;
}

.error-message.visible {
  opacity: 1;
  line-height: 15px;
}





.panel.to-nav {
  width: 60px;
  top: 10px;
  bottom: 10px;
  left: 10px;
  background-color: rgba(255,255,255, .3);
  backdrop-filter: blur(20px);
  transition: .3s ease-in-out;

}

.panel.to-nav:hover {
  width: 200px;
}

.panel.to-nav:hover .navbar-link-p {
  opacity: 1;
}

.panel.to-nav:hover ~ .panel-1 .main-content {
    width: calc(100% - 230px) !important;
}

.loading-bar.nav {
  opacity: 0;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
}

.main-logo-img.nav {
  width: 40px;
  height: 40px;
  top: 30px;
}



/* navbar */

#navbar-container {
  margin-top: 60px;
}






/* navbar */

.nav-links {
  float: left;
  width: 100%;
  margin-top: 5px;
  border-top: 1px solid rgba(255,255,255, .3);
  padding-top: 10px;
  position: absolute;
  top: 60px;
  bottom: 60px;
  overflow-y: auto;
}

.navbar-link {
  width: calc(100% - 22px);
  overflow: hidden;
  cursor: pointer;
  transition: .3s ease-in-out;
  border-radius: 20px;
  margin: 0 auto;
  margin-bottom: 10px;
  border: 1px solid transparent;
}

.navbar-link:hover {
  background-color: rgba(255,255,255, .3);
  backdrop-filter: blur(20px);
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  transform: translateY(-2px);
}


.navbar-link.active {
  background-color: rgba(255,255,255, .3);
  backdrop-filter: blur(20px);
  box-shadow: rgba(99,99,99, .2) 0px 2px 8px 0px;
}

.navbar-link-p {
  font-size: 14px;
  margin: 0;
  padding: 10px 15px 10px 15px;
  text-align: left;
  opacity: 0;
  transition: .3s ease-in-out;
  white-space: nowrap;
}





#logout-button {
  position: fixed;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background-color: rgba(255,0,0, .3);
  backdrop-filter: blur(20px);
  height: 40px;
  border-radius: 20px;
  outline: 0;
  border: 1px solid rgba(255,0,0, .3);
  color: white;
  cursor: pointer;
  transition: .3s ease-in-out;
}

#logout-button:hover {
  transform: translateY(-2px);
}

.navbar-icon {
  float: left;
  padding: 8.5px;
}

#clienti-list {
  overflow-y: auto !important;
  position: absolute;
  left: 0;
  top: 80px;
  right: 0;
  bottom :0;
}









