@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f4f6fb;
  color: #1c1c1c;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: linear-gradient(180deg, #7b0f1a, #3b0a10);
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
}

.client-info {
  text-align: center;
  margin-bottom: 40px;
}

.client-info h3 {
  font-size: 16px;
}

.client-info p {
  font-size: 12px;
  opacity: 0.7;
}

/* MENU */
.menu ul {
  list-style: none;
}

.menu ul li {
  margin: 15px 0;
}

.menu a {
  color: white;
  text-decoration: none;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  transition: 0.3s;
}

.menu a:hover {
  background: rgba(255,255,255,0.1);
}

/* MAIN */
.main {
  margin-left: 260px;
  padding: 30px;
}

/* HEADER */
h1 {
  font-size: 26px;
  margin-bottom: 20px;
}

/* CARD BALANCE */
.balance-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

/* GOLD CARD */
.card-bank {
  width: 350px;
  height: 200px;
  border-radius: 20px;
  padding: 20px;
  color: white;
  background: linear-gradient(135deg, #d4af37, #f5d76e, #b8860b);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.card-bank::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent);
  transform: rotate(25deg);
}

/* TABLE */
.transactions {
  margin-top: 30px;
  background: white;
  padding: 20px;
  border-radius: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

td, th {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.plus {
  color: green;
  font-weight: bold;
}

.minus {
  color: red;
  font-weight: bold;
}

.attesa {
  color: orange;
  font-style: italic;
}

.rifiutato {
  color: red;
  font-style: italic;
}
.eseguito {
  color: green;
}

/* ===========================
   btn bonifico
=========================== */

.btn-bonifico{
  width:100%;
  padding:16px;
  margin-top:20px;
  border:none;
  border-radius:14px;
  background:linear-gradient(135deg,#8B1E2D,#B22234);
  color:white;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:all .3s ease;
  box-shadow:0 8px 20px rgba(139,30,45,.25);
}

.btn-bonifico:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(139,30,45,.35);
}

.btn-bonifico:active{
  transform:scale(.98);
}

.btn-bonifico:disabled{
  background:#bdbdbd;
  cursor:not-allowed;
  box-shadow:none;
}

/* ===========================
   Bouton Esci
=========================== */

.logout-btn{

  width:90%;
  margin:25px auto;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;

  padding:12px 16px;

  border:none;
  border-radius:12px;

  background:linear-gradient(135deg,#8B1E2D,#B22234);

  color:white;
  font-size:15px;
  font-weight:600;

  cursor:pointer;

  transition:all .3s ease;

  box-shadow:0 8px 20px rgba(139,30,45,.25);

}

.logout-btn:hover{

  transform:translateY(-2px);

  box-shadow:0 12px 28px rgba(139,30,45,.35);

}

.logout-btn:active{

  transform:scale(.97);

}






/* ===========================
   Animation In attesa
=========================== */

.loading-dots{
  display:flex;
  justify-content:center;
  gap:4px;
  margin-top:6px;
}

.loading-dots span{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#f59e0b;
  animation: dots 1.2s infinite;
}

.loading-dots span:nth-child(2){
  animation-delay:0.2s;
}

.loading-dots span:nth-child(3){
  animation-delay:0.4s;
}

@keyframes dots{

  0%,80%,100%{
      opacity:0.3;
      transform:scale(0.8);
  }

  40%{
      opacity:1;
      transform:scale(1.3);
  }

}

/* ==========================
   Popup Bonifico
========================== */

.popup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.popup-content{

  background:white;
  padding:35px;
  border-radius:18px;
  min-width:320px;
  text-align:center;
  box-shadow:0 15px 40px rgba(0,0,0,.25);

}

.loader{

  width:60px;
  height:60px;
  border:6px solid #ececec;
  border-top:6px solid #8B1E2D;
  border-radius:50%;
  margin:auto;
  animation:rotation 1s linear infinite;

}

@keyframes rotation{

  from{
      transform:rotate(0deg);
  }

  to{
      transform:rotate(360deg);
  }

}

#popupMessage{

  margin-top:20px;
  font-size:18px;
  font-weight:bold;

}

.success{

  color:#15803d;

}

