/* ======================
   General
====================== */
body {
background: radial-gradient(circle at center, 
              rgba(184, 77, 172, 0.4) 0%, 
              rgba(255, 132, 0, 0.4) 100%);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
}

a,
a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none;
}

.mobile-menu {
  display: none;
}

/* ======================
   Header
====================== */
.header {
  background: linear-gradient(90deg, #0d0d0f, #1a1a1d);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #b84dac, #ff8400) 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.header-img img {
  height: 40px;
  filter: drop-shadow(0 0 4px rgba(255, 132, 0, 0.4));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ======================
   Auth Buttons
====================== */
.btn-register,
.btn-login {
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 22px;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

/* Register (Purple) */
.btn-register {
  background: linear-gradient(135deg, #b84dac, #9a3c8f);
  color: #fff;
}
.btn-register:hover {
  background: linear-gradient(135deg, #c85fba, #b84dac);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 77, 172, 0.4);
}

/* Login (Orange) */
.btn-login {
  background: linear-gradient(135deg, #ff8400, #e67300);
  color: #fff;
}
.btn-login:hover {
  background: linear-gradient(135deg, #ffa040, #ff8400);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 132, 0, 0.4);
}

/* ======================
   Dropdown
====================== */
.dropdown {
  position: relative;
  display: inline-block;
  font-size: 14px;
}

.my-account-btn {
  cursor: pointer;
  text-align: right;
}

.my-account-btn p {
  margin: 0 0 5px 0; /* 5px vertical spacing */
}

.user_balance {
  text-align: right;
  margin: 0 0 5px 0; /* 5px vertical spacing */
  cursor: default; /* prevent dropdown toggle */
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #111;
  min-width: 200px;
  border: 1px solid #222;
  border-radius: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  z-index: 1000;
}

.dropdown-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-content ul li {
  border-bottom: 1px solid #222;
}

.dropdown-content ul li:last-child {
  border-bottom: none;
}

.dropdown-content ul li a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
}

.dropdown-content ul li a:hover {
  background-color: #ff8400;
  color: #111;
}

/* ======================
   Clock
====================== */
header-clock {
    font-size: 15px;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
    background: linear-gradient(90deg, #dfc0dc, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff; /* fallback */
  text-shadow: 0 0 6px rgba(255, 132, 0, 0.3),
               0 0 10px rgba(184, 77, 172, 0.25);
  letter-spacing: 0.5px;
}

/* ======================
   Mobile Nav
====================== */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #111;
  padding: 10px;
}
.mobile-nav a {
  color: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #222;
}
.mobile-nav a:hover {
  color: #ff8400 !important;
}

.btn-menu {
  background: transparent;
  color: #fff !important;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}
.btn-menu:focus {
  outline: none;
}

/* Active mobile nav */
.btn-menu.active + .mobile-nav {
  display: flex;
}

@media (min-width: 981px) {
    .mobile-menu {
        display: none !important;
    }
    
}

/* ======================
   Sidebar
====================== */
.sidebar {
  min-height: 100vh;
}

.sidebar-card {
  background: linear-gradient(180deg, #0d0d0f, #1a1a1d);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  background: linear-gradient(90deg, #b84dac, #ff8400);
  color: #fff;
  padding: 1rem;
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-list li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #ddd;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  border-left: 3px solid transparent;
}
.sidebar-list li a:hover {
  background: rgba(255, 132, 0, 0.15);
  border-left: 3px solid #ff8400;
  color: #ff8400;
}

.sidebar-tabs .nav-link {
  color: #bbb;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0.6rem 1rem;
  font-weight: 500;
}
.sidebar-tabs .nav-link.active {
  background: #1f1f22;
  color: #ff8400;
  border-bottom: 2px solid #b84dac;
}
.tab-content {
  background: #111;
  border-radius: 0 0 12px 12px;
  color: #eee;
}

#calculator .form-control {
  background: #1c1c1f;
  border: 1px solid #333;
  color: #fff;
}
#calculator .form-control:focus {
  border-color: #b84dac;
  box-shadow: 0 0 6px rgba(184,77,172,0.6);
}
#calculator .btn-primary {
  background: linear-gradient(90deg, #b84dac, #ff8400);
  border: none;
  font-weight: 600;
}
#calculator .btn-primary:hover {
  background: linear-gradient(90deg, #ff8400, #b84dac);
}

/* ======================
   Tablet (431px – 980px)
====================== */
@media (min-width: 431px) and (max-width: 980px) {
  /* Hide sidebars */
  .sidebar {
    display: none !important;
  }

  .dropdown-content {
    width: 180px;
  }
  .dropdown-content ul li a {
    padding: 8px 12px;
    font-size: 13px;
  }
  .header-top {
    padding: 6px 12px;
  }
  .dropdown {
    font-size: 12px;
  }
  
      .col-md-6 {
        flex: 0 0 auto;
        width: 99%;
    }
}

/* ======================

   Mobile (up to 430px)
====================== */
@media (max-width: 430px) {
  /* Hide sidebars */
  .sidebar {
    display: none !important;
  }

  /* Show mobile menu */
  .mobile-menu {
    display: block;
  }

  .header-top {
    padding: 6px 10px;
  }

  .dropdown-content {
    width: 160px;
  }
  .dropdown-content ul li a {
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* ======================
   Mobile Responsive Design
====================== */

/* Minimum layout control for very small screens */
@media (min-width: 300px) and (max-width: 400px) {
  .header-top {
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    gap: 14px;
  }

  .header-img img {
    height: 36px;
  }

  .header-actions {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .btn-register,
  .btn-login {
    padding: 8px 18px;
    font-size: 14px;
  }
}
