body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #f5f7fa;
  color: #333;
}

.login-body {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #1f1f2e, #2e3a59);
}

.login-container {
  background: white;
  padding: 2em 3em;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: center;
  width: 90%;
  max-width: 400px;
}

.login-title {
  margin: 0;
  font-size: 2em;
  color: #2e3a59;
}

.login-subtitle {
  margin-bottom: 1em;
  color: #555;
}

input {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

button {
  background: #2e86de;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #1e6fcb;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: #2e3a59;
  color: white;
  padding: 1em 2em;
}

.navbar .brand {
  font-size: 1.5em;
}

.nav-links a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover {
  text-decoration: underline;
}

.container {
  padding: 2em;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 1em;
}

.card {
  background: white;
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  flex: 1 1 45%;
  text-align: center;
  font-weight: bold;
}

.card span {
  display: block;
  font-size: 1.5em;
  margin-top: 0.5em;
  color: #2e86de;
}

.trade-form {
  max-width: 400px;
  margin-top: 1em;
}

.trade-form select,
.trade-form input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.action-buttons button {
  flex: 1;
  font-weight: bold;
}

.buy {
  background-color: #28a745;
  color: white;
}

.sell {
  background-color: #dc3545;
  color: rgb(7, 5, 5);
}

.buy:hover {
  background-color: #218838;
}

.sell:hover {
  background-color: #c82333;
}

.portfolio-list {
  list-style: none;
  padding-left: 0;
}

.portfolio-list li {
  padding: 8px 0;
  font-size: 1.1em;
}

.export-buttons button {
  margin: 0.5em 1em 0 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  background: white;
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: center;
}

th {
  background: #2e3a59;
  color: white;
}

.buy {
  color: #050705;
}

.sell {
  color: #0c0909;
}

/* Chart.js Responsive Container */
.chart-container {
  max-width: 100%;
  margin-top: 2em;
}

canvas {
  width: 100% !important;
  height: auto !important;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 1em;
  }

  .nav-links a {
    margin: 0.5em 0;
  }

  .card-grid {
    flex-direction: column;
  }

  .card {
    flex: 1 1 100%;
  }

  .trade-form {
    width: 100%;
  }
}
.bottom-tab {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1e1e2f;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid #333;
  z-index: 1000;
}

.tab-link {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: color 0.2s;
}

.tab-link span {
  font-size: 20px;
}

.tab-link:hover,
.tab-link.active {
  color: #fff;
}

body {
  padding-bottom: 60px; /* Prevents content from being hidden behind tab bar */
}
.logout-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  padding: 8px 16px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  z-index: 1000;
  transition: background-color 0.2s ease;
}

.logout-btn:hover {
  background-color: #c0392b;
}
