@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

:root {
  --sidebar-width: 70px;
}

body {
  margin: 0;
  height: 100vh;
  background-color: #1a1c1e;
  background-image: radial-gradient(circle at center, #2c3036 0%, #1a1c1e 100%);
  background-attachment: fixed; 
  font-family: 'Montserrat', sans-serif;
}

.NavBar{
  position: fixed;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  background: #1a1c1e;
  background: transparent;
  backdrop-filter: blur(20px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: min(max(var(--sidebar-width), 70px), 140px);
  max-height: 100vh;
  overflow-y: auto;
}

.NavText{
  color: whitesmoke;
  font-size: 15px;
  letter-spacing: 0.6px;
  opacity: 0;           
  transition: opacity 0.3s ease; 
  pointer-events: none;
}

.Home:hover .NavText, 
.Balance:hover .NavText,
.Analytics:hover .NavText,
.Ai:hover .NavText, 
.Settings:hover .NavText {
  opacity: 1;              
}

.Home,.Balance,.Analytics,.Ai,.Settings{
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  margin-top: 250px;
  transition: all 0.3s ease;
}

.Home:hover,.Balance:hover,.Analytics:hover,.Ai:hover,.Settings:hover{
  transform: translateX(-2px);
  filter: brightness(1.2);
}

.Home::before{
  content: ""; 
  display: block; 
  width: 30px;  
  height: 30px; 
  background-image: url('icons8-casa-30.png');
  background-repeat: no-repeat;
  margin-bottom: 8px;
}

.Balance::before{
  content: ""; 
  display: block; 
  width: 30px;  
  height: 30px; 
  background-image: url('icons8-banca-30.png');
  background-repeat: no-repeat;
  margin-bottom: 8px;
}

.Analytics::before{
  content: ""; 
  display: block; 
  width: 30px;  
  height: 30px; 
  background-image: url('icons8-analitica-30.png');
  background-repeat: no-repeat;
  margin-bottom: 8px;
}

.Ai::before{
  content: ""; 
  display: block; 
  width: 30px;  
  height: 30px; 
  background-image: url('icons8-bardo-30.png');
  background-repeat: no-repeat;
  margin-bottom: 8px;
}

.Settings::before{
  content: ""; 
  display: block; 
  width: 30px;  
  height: 30px; 
  background-image: url('icons8-settings-30.png');
  background-repeat: no-repeat;
  margin-bottom: 8px;
}

.Title{
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: none;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: whitesmoke;
}

.AreaMovimenti{
  position: absolute;
  top: 13%;
  left: 8.2%;
  color: whitesmoke;
  font-family: 'Montserrat', sans-serif;
}

.Btn-Add {
    position: absolute;
    top: 10%;
    left: 8%;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    cursor: pointer;
    border-radius: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    color: whitesmoke;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    backdrop-filter: blur(10px); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.Btn-Add:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.Btn-Delete {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    width: 32px;  
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative; 
    top: auto;
    right: auto;
    transform: none;
}

.Btn-Delete:hover {
    background: rgba(231, 76, 60, 0.2); 
    border-color: #e74c3c;            
    color: #e74c3c;                    
    transform: scale(1.1);
}
.ModalOverlay {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.ModalContent {
    background: rgba(30, 32, 35, 0.95);
    padding: 30px;
    border-radius: 20px;
    width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.MTitle{
  color: whitesmoke;
}

.Form-Group { 
    margin-bottom: 20px; display: flex; flex-direction: column; 
}

.Form-Group label { 
    color: whitesmoke; font-size: 12px; margin-bottom: 8px; text-transform: uppercase; 
}

.Form-Group input, .Form-Group select, .Form-Group textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    color: whitesmoke;
    border-radius: 8px;
    outline: none;
}

.Form-Group select option {
    background-color: #1e2023; 
    color: whitesmoke;
}

.Modal-Buttons { display: flex; gap: 15px; margin-top: 20px; }

.Btn-Primary { 
    background: #2ecc71; color: whitesmoke; border: none; padding: 12px; border-radius: 8px; flex: 1; cursor: pointer; font-weight: bold; 
}
.Btn-Secondary { 
    background: transparent; color: whitesmoke; border: 1px solid rgba(255,255,255,0.2); padding: 12px; border-radius: 8px; flex: 1; cursor: pointer; 
}

.SingoloMovimento {
    position: relative;
    padding: 20px 0;
    width: 100%;
    animation: slideIn 0.4s ease-out;
}

.SingoloMovimento::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;          
    right: -100vw;     
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.SingoloMovimento:last-child{
  border-bottom: none;
}

.TestoVerde{
  color: #2ecc71;
}

.TestoRosso{
  color: #e74c3c;
}

.DataMovimento{
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.Filtro {
  margin: 20px 0;
  width: 100%;

}

#FilterInput {
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 15px;
  border-radius: 10px;
  color: whitesmoke;
  font-family: 'Montserrat', sans-serif;
  outline: none;
  transition: all 0.3s ease;
}

#FilterInput:focus {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5)
}

#ResetSystem-Btn {
    transition: all 0.3s ease;
}

#ResetSystem-Btn:hover {
    background: #e74c3c;
    color: white;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
}

#Export-Btn {
  transition: all 0.4s ease;
}

#Export-Btn:hover {
  background: #2ecc71;
  color: whitesmoke;
  box-shadow: 0 0 15px rgba(60, 231, 76, 0.4);
}