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

.ChatContainer {
    width: 80%;
    max-width: 800px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    height: 60vh;
}

.ChatBox {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.Message {
    padding: 12px 18px;
    border-radius: 15px;
    max-width: 70%;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.AiMessage {
    background: #2c3036;
    color: whitesmoke;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.UserMessage {
  background: rgba(46, 204, 113, 0.2);
  color: whitesmoke;
  align-self: flex-end;
  border: 1px solid #2ecc71;
  border-bottom-right-radius: 2px;
}

.InputArea {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 20px;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.InputArea input{
    flex: 1;
    width: auto;
    padding: 12px 18px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: whitesmoke;
}

.InputArea button{
    margin-top: 0;
    border-radius: 25px;
    padding: 12px 25px;
    cursor: pointer;
}

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