:root {
  --accent: #fa6464;
  --bg-dark: #070707;
  --card-bg: #ffffff;
  --muted: #7a7a7a;
  --text-dark: #111;
  --transition: 250ms ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  font-family: "Vazirmatn", sans-serif;
  background-color: #ebe8e8;
  overflow-x: hidden;
}

.User-panel {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
}

/* SIDEBAR */

.sidebar {
  width: 260px;
  background: linear-gradient(90deg, var(--accent), #ff8b8b);
  position: fixed;
  height: 100vh;
  overflow-y: scroll;
  z-index: 2;
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease, transform 0.35s ease;
  box-shadow:
    inset 0 0 12px rgba(0,0,0,0.6),
    0 0 35px rgba(250, 100, 100, 0.08);
    overflow-x: hidden;
}

.brand  {
  border-bottom: 1px solid #ffc1c1;
}
.sidebar .sidebar-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar .brand h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #222;
  position: relative;
  display: inline-block;
  letter-spacing: -0.5px;
  text-transform: capitalize;
  padding: 0.25rem 0.5rem;
  background: linear-gradient(90deg, #860f1b ,#000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar .brand-title {
  color: var(--white);
  font-weight: 800;
}

.sidebar .brand-sub {
  color: var(--gray);
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 14px;
  margin: 6px 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transition: 200ms ease;
  background: rgba(255,255,255,0.02);
}

.nav-link i {
  font-size: 1.05rem;
}
.sidebar.collapsed #hidden {
  margin-left: 40px !important;
}
.sidebar.collapsed .bi-wallet2 {
  margin-right: 30px;
}
.nav-link:hover {
  background: rgba(250, 100, 100, 0.15);
  color: #fff;
  font-weight: 700;
}

.nav-link.actives {
  background: #ebe8e8;
  color: #860f1b;
  font-weight: 800;
  border-right: 3px solid #860f1b;
  box-shadow: 0 0 12px rgba(250, 100, 100, 0.15), inset 0 0 8px rgba(231, 211, 177, 0.3);
  margin-left: -20px;
  border-radius: 50px;
}
.nav-link.active {
  color: #860f1b !important;
}

.nav-link:focus{
  color: #860f1b !important;
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important; 
}

.nav-link:active {
  color: #860f1b !important;
}
/* .nav-link.active::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 18px;
  background: #860f1b;    
  top: 21.4%;
  left: -12px;
  border-radius: 0 0 0 24px;
  box-shadow: -1px 3px 0 #ebe8e8 , -6px 10px 0 #ebe8e8;
}
.nav-link.active::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 18px;
  background: #860f1b;
  top: 30.6%;
  left: -12px;
  border-radius: 24px 0px 0px 0px;
  box-shadow: 0px -6px 0 #ebe8e8 , -10px -6px 0 #ebe8e8;
} */


.nav-label {
  display: inline-block;
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.758);
}

.btn-toggle {
  background: transparent;
  color: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar.collapsed {
  width: 130px;
  min-width: 72px;
  overflow: hidden;
}

.sidebar.collapsed .brand-title,
.sidebar.collapsed .brand-sub,
.sidebar.collapsed .nav-label {
  display: none;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
}
#sidebarToggle {
  transition: width 0.26s ease, padding 0.18s ease, border-radius 0.18s ease;
  color: #fff;
}

#sidebarToggle.icon-only {
  width: 44px;
  padding: 0.35rem;
  border-radius: 999px;
  justify-content: center;
}

#sidebarToggle.icon-only .toggle-label {
  display: none !important;
}

#sidebarToggle.icon-only i {
  font-size: 1.05rem;
  margin: 0;
}

#sidebarToggle i {
  font-size: 1rem;
}

@media (max-width: 1199px) {
  .sidebar {
    width: 260px;
  }

  .sidebar .brand-title,
  .sidebar .brand-sub,
  .nav-label {
    display: block;
  }
}

@media (max-width: 991px) {
  .sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    transform: translateX(110%);
    z-index: 9999;
    display: block;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    width: 260px;
  }

  .sidebar.open-mobile {
    transform: translateX(0);
  }

}  
/* end-SIDEBAR */

/*The main elements*/
.main-area {
  min-height: 100vh;
  padding-bottom: 60px;
  position: relative;
  width: calc(100% - 260px);
  margin-right: 260px;
}
@media (max-width: 991px) {
  .main-area {
      margin-right: 0;
      width: 100%;
    }
}
/* TOPBAR */

.topbar {
  position: sticky;
  top: 0;
  background: transparent;
  z-index: 3;
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.notif-dot {
  position: absolute;
  top: 9px;
  right: 11px;
  width: 8px;
  height: 8px;
  background: #860f1b;
  border-radius: 50%;
}
.avatar-sm{
  width: 50px;
}
.exit {
  background: var(--accent);
  padding: 7px;
  border-radius: 14px;
}
.exit:hover {
  background: #860f1b;
  transition: 0.25s ease;
}
.exit i {
  font-size: 16px;
  position: relative;
  bottom: -3px;
}
.exit h4 {
  font-size: 15px;
  position: relative;
  top: -2px;
}
/* BUTTONS */


.btn-alarm {
  background: linear-gradient(90deg, var(--accent), #ff8b8b);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border: 1px solid var(--accent);
  border-radius: 50%;
  padding: 8px 12px;
}
.btn-ghost i{
  font-size: 22px;
  color: #860f1b;

}
 /*modal*/

 .wallet-modal {
  border: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.881);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 45px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 10000;
}

.wallet-header {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(255,120,120,0.25), rgba(255, 255, 255, 0.2));
}

.wallet-header h5 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.wallet-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #444;
  transition: 0.25s;
}

.wallet-close:hover {
  color: #860f1b;
}

.wallet-body {
  padding: 25px;
}

.wallet-label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 22px;
  display: inline-block;
}

.wallet-input-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-input {
  width: auto;
  text-align: center;
  font-size: 18px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  font-weight: 600;
  margin-left: 10px;
  margin-right: 10px;
}
.amount-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  border: none;
  background: linear-gradient(90deg, #ff6b6b, #ff9a9a);
  color: white;
  cursor: pointer;
  transition: 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.amount-btn:hover {
  transform: translateY(-2px);
}

.wallet-footer {
  padding: 20px;
  display: flex;
  justify-content: center;
}

.wallet-submit-btn {
  width: 100%;
  padding: 12px 0;
  background: linear-gradient(90deg, #ff5f5f, #ff8f8f);
  border: none;
  border-radius: 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: .25s ease;
  box-shadow: 0 5px 14px rgba(255,120,120,0.35);
}

.wallet-submit-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, var(--accent), #fe4242);
  transition: 0.9s ease-out;
}
@media (max-width: 430px) {
  .wallet-input {
    width: 200px;
  }
}
  /*end modal*/
/*The main card*/
.profile-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 30px;
}

.profile-card {
  width: 100%;
  display: flex;
  padding:5px 40px;
  border-radius: 28px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 25px 45px rgba(0,0,0,0.07),
  0 8px 18px rgba(255,70,70,0.18);
  position: relative;
  flex-direction: column;
}
.profile-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 26px;
  background: var(--accent);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  border-radius: 0 28px 0 0;
}
.header-profile-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.profile-card h5 {
  font-size: 20px;
  font-weight: 500;
  color: #2a2a2a;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
  letter-spacing: -0.2px;
  text-align: right;
  padding-bottom: 12px;
  position: relative;
  margin-top: 5px;
}


.profile-card h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg,#ff4d4d,#ff9999);
  border-radius: 45%;
}

.profile-btn {
  background: linear-gradient(90deg, #ff5f5f, #ff8f8f);
  border: none;
  padding: 9px 12px;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.3px;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 4px 12px rgba(255, 120, 120, 0.3);
}

.profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 120, 120, 0.4);
  background: linear-gradient(90deg, #ff8b8b, var(--accent));
}

.profile-btn:active {
  transform: translateY(0px);
  box-shadow: 0 3px 8px rgba(255, 120, 120, 0.3);
}
.profile-right {
  width: 100%;
}
.change-password-form .form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  display: block;
  font-size: 15px;
}

.change-password-form .form-control {
  border: 1px solid rgba(0,0,0,0.12);
  background: #fcfcfc;
  border-radius: 12px;
  padding: 12px 10px;
  font-weight: 500;
  font-size: 12px;
  color: #222;
  box-shadow: none;
  transition: all 0.25s ease;
}

.change-password-form .form-control:focus {
  outline: none !important;
  border-color: var(--accent);
}

.change-password-form .save-btn {
  background: linear-gradient(90deg, #ff5f5f, #ff8f8f);
  border: none;
  padding: 10px 24px;
  border-radius: 12px;
  color: white;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.3px;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 4px 12px rgba(255, 120, 120, 0.3);
  display: grid;
  overflow: hidden;
  position: relative;
  margin-top: 35px;
}
.change-password-form .save-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-20deg);
  transition: 0.4s;
}

.change-password-form .save-btn:hover::after {
  left: 100%;
}
.change-password-form .save-btn:hover {
  background: linear-gradient(90deg, var(--accent), #fe4242);
}

.change-password-form .current-password .form-control {
  background: #ffecec; 
  /* border-color: #ff4d4d; */
}
@media (max-width: 1150px) {

  .profile-card {
    flex-direction: column; 
    align-items: center;
    text-align: center;
  }

  .profile-right {
    width: 100%;
    margin-right: 0;
    margin-top: 30px;
  }

  .profile-right .col-12,
  .profile-right .col-md-3 {
    width: 100% !important;
    max-width: 100%;
  }
}
@media (max-width: 430px) {
  .exit {
    padding: 5px;
  }
  .exit h4 {
    font-size: 12px;
  }
  .exit i {
    font-size: 14px;
  }
  .avatar-sm {
    width: 45px;
  }
  .btn-alarm {
    padding: 6px 10px;
  }
  .small, small {
    font-size: .800em;
  }
  .alarm-bell {
    gap: 5px !important;
  } 
  .profile-wrapper {
    padding: 30px 15px;
  }
  .profile-card {
    padding: 10px;
  }
}



