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;
}

:root {
  --sidebar-width: 70px;
}

.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;
}

.Title h1{
  color: whitesmoke;
  font-size: 32px;
  margin-bottom: 10px;
}

.AnalyticsPage{
  padding: 20px 40px 40px 100px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.ChartsContainer{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 25px;
  width: 100%;
  box-sizing: border-box;
}

.ChartCard{
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 25px;
  position: relative;
  height: 400px;
  display: flex;
  flex-direction: column; 
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.ChartCard:hover{
  transform: translateY(-5px);
  background: rgba(255,255,255,0.05);
}

.ChartCard h3{
  color: #aaa;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

canvas{
  width: 90% !important;
  height: 90% !important;
  max-width: 100%;
  max-height: 100%;
}

.full-width {
  grid-column: span 2;
}

@media(max-width: 1024px){

  .ChartsContainer{
    grid-template-columns: 1fr;
  }

  .full-width{
    grid-column: span 1;
  }

  .AnalyticsPage{
    padding-left: 80px;
  }
}

#ResetSystem-Btn {
    transition: all 0.3s ease;
}

#ResetSystem-Btn:hover {
    background: #e74c3c;
    color: whitesmoke;
    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);
}

.ModalOverlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(8px); 
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.ModalContent {
    background-color: #1e2023;
    padding: 30px;
    border-radius: 20px;
    width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.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; 
}

.MTitle{
  color: whitesmoke;
}