body {
  background-color: #051c2c;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.dashboard {
  display: flex;
  height: 100vh;
}

.stocks-sidebar {
  width: 200px;
  background-color: #0e2a3b;
  padding: 20px;
  margin: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stock-item {
  padding: 12px 16px;
  margin: 0;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  background-color: rgba(28, 63, 94, 0.2);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.stocks-sidebar::before {
  content: "Stocks";
  font-size: 1.2em;
  font-weight: bold;
  color: #00ed64;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1c3f5e;
  display: block;
}

.stock-item:hover {
  background-color: #1c3f5e;
  border-color: #00ed64;
  transform: translateX(4px);
}

.stock-item::before {
  content: "→";
  margin-right: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

.stock-item:hover::before {
  opacity: 1;
}

.main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.stock-card {
  background-color: #0e2a3b;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
}

.stock-card:hover {
  transform: translateY(-5px);
}

.stock-card canvas {
  width: 100% !important;
  height: 150px !important;
  display: block;
  margin: 10px 0;
  background-color: rgba(28, 63, 94, 0.2) !important;
}

.dashboard-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.global-portfolio,
.bank-info {
  background-color: #0e2a3b;
  border-radius: 8px;
  padding: 20px;
}

.value {
  color: #00ed64;
  font-size: 24px;
  font-weight: bold;
  margin: 5px 0;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #051c2c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #1c3f5e;
  border-top: 4px solid #00ed64;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 20px;
  color: #00ed64;
  font-size: 18px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fade-out {
  opacity: 0;
  pointer-events: none;
}

.release-notes-btn {
  position: fixed;
  top: 20px;
  right: 80px;
  background: #0e2a3b;
  color: #00ed64;
  border: 1px solid #1c3f5e;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 237, 100, 0.1);
}

.release-notes-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 237, 100, 0.2);
  border-color: #00ed64;
}

.release-notes-panel {
  position: fixed;
  top: 70px;
  right: 20px;
  background: #0e2a3b;
  border-radius: 15px;
  padding: 0;
  width: 350px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  z-index: 999;
}

.release-notes-panel.visible {
  max-height: 600px;
  opacity: 1;
  padding: 20px;
}

.release-notes-panel h3 {
  color: #00ed64;
  margin: 0 0 15px 0;
  font-size: 1.4em;
  border-bottom: 1px solid #1c3f5e;
  padding-bottom: 10px;
}

.release-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.release-note {
  padding: 15px;
  margin: 10px 0;
  background: rgba(28, 63, 94, 0.3);
  border-radius: 8px;
  animation: slideIn 0.3s ease forwards;
  opacity: 0;
  transform: translateX(20px);
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.release-note h4 {
  margin: 0 0 8px 0;
  color: #00ed64;
  font-size: 1.1em;
}

.release-note p {
  margin: 0;
  color: #a0b2c3;
  line-height: 1.5;
}

.account-btn {
  position: fixed;
  top: 20px;
  right: 21px;
  background: #0e2a3b;
  border: 1px solid #1c3f5e;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 237, 100, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 237, 100, 0.2);
  border-color: #00ed64;
  background: #1c3f5e;
}

.account-menu {
  position: fixed;
  top: 75px;
  right: 20px;
  background: #0e2a3b;
  border-radius: 8px;
  padding: 0;
  width: 180px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  z-index: 999;
}

.account-menu.visible {
  max-height: 300px;
  opacity: 1;
  padding: 10px 0;
}

.settings-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #0e2a3b;
  border-radius: 15px;
  padding: 25px;
  width: 90%;
  max-width: 500px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid #1c3f5e;
}

.settings-popup.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #1c3f5e;
}

.settings-header h2 {
  color: #00ed64;
  margin: 0;
}

.close-settings {
  background: none;
  border: none;
  color: #00ed64;
  cursor: pointer;
  font-size: 24px;
  padding: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}

.close-settings:hover {
  transform: rotate(90deg);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 28, 44, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.overlay.visible {
  opacity: 1;
  visibility: visible;
}

.menu-item.bankruptcy {
  color: #ff4444;
}

.menu-item.bankruptcy:hover {
  background: rgba(255, 68, 68, 0.1);
  color: #ff6666;
}

.menu-item {
  color: #fff;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-item:hover {
  background: #1c3f5e;
  color: #00ed64;
}

.settings-section {
  margin-bottom: 24px;
}

.settings-section h3 {
  color: #00ed64;
  margin-bottom: 16px;
  font-size: 1.1em;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(28, 63, 94, 0.3);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-label {
  color: #fff;
  font-size: 0.95em;
}

.setting-description {
  color: #a0b2c3;
  font-size: 0.85em;
  margin-top: 4px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1c3f5e;
  transition: 0.4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #00ed64;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.volume-slider {
  width: 140px;
  height: 4px;
  background: #1c3f5e;
  outline: none;
  border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: #00ed64;
  cursor: pointer;
  border-radius: 50%;
}

.difficulty-select {
  background: #1c3f5e;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
}

.difficulty-select option {
  background: #0e2a3b;
}

.bankruptcy-success {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 28, 44, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1003;
  animation: fadeIn 0.3s ease;
}

.success-content {
  background: #0e2a3b;
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  border: 2px solid #00ed64;
  box-shadow: 0 10px 40px rgba(0, 237, 100, 0.3);
}

.success-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.success-content h3 {
  color: #00ed64;
  margin: 0 0 15px 0;
  font-size: 1.5em;
}

.success-content p {
  color: #a0b2c3;
  margin: 10px 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.bankruptcy-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 28, 44, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1002;
}

.bankruptcy-modal.visible {
  opacity: 1;
  visibility: visible;
}

.bankruptcy-content {
  background: #0e2a3b;
  border-radius: 15px;
  padding: 0;
  width: 90%;
  max-width: 500px;
  border: 2px solid #ff4444;
  box-shadow: 0 10px 40px rgba(255, 68, 68, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.bankruptcy-modal.visible .bankruptcy-content {
  transform: scale(1);
}

.bankruptcy-header {
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  padding: 20px;
  border-radius: 13px 13px 0 0;
  text-align: center;
  position: relative;
}

.bankruptcy-icon {
  font-size: 2em;
  margin-bottom: 10px;
}

.bankruptcy-header h2 {
  margin: 0;
  font-size: 1.5em;
  font-weight: bold;
}

.bankruptcy-body {
  padding: 25px;
  color: white;
}

.bankruptcy-body p {
  margin: 0 0 20px 0;
  font-size: 1.1em;
  color: #a0b2c3;
}

.reset-details {
  background: rgba(28, 63, 94, 0.3);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.reset-details h4 {
  margin: 0 0 12px 0;
  color: #00ed64;
  font-size: 1em;
}

.reset-details ul {
  margin: 0 0 20px 0;
  padding-left: 20px;
}

.reset-details li {
  margin: 8px 0;
  color: #a0b2c3;
  line-height: 1.4;
}

.warning-message {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid #ff4444;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  color: #ff6666;
  margin-top: 20px;
}

.bankruptcy-footer {
  padding: 20px 25px;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  border-top: 1px solid #1c3f5e;
}

.cancel-btn,
.confirm-btn {
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95em;
  transition: all 0.2s ease;
}

.cancel-btn {
  background: #1c3f5e;
  color: white;
}

.cancel-btn:hover {
  background: #2a4d6b;
  transform: translateY(-1px);
}

.confirm-btn {
  background: #ff4444;
  color: white;
}

.confirm-btn:hover {
  background: #ff6666;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.loan-btn {
  background: #00ed64;
  color: #051c2c;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.loan-btn:hover {
  background: #00c554;
  transform: translateY(-1px);
}

.loan-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 28, 44, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1002;
}

.loan-modal.visible {
  opacity: 1;
  visibility: visible;
}

.loan-content {
  background: #0e2a3b;
  border-radius: 15px;
  padding: 0;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid #1c3f5e;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.loan-modal.visible .loan-content {
  transform: scale(1);
}

.loan-header {
  background: linear-gradient(135deg, #00ed64, #00c554);
  color: #051c2c;
  padding: 20px;
  border-radius: 13px 13px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.loan-header h2 {
  margin: 0;
  font-size: 1.5em;
}

.close-loan {
  background: none;
  border: none;
  color: #051c2c;
  cursor: pointer;
  font-size: 24px;
  padding: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}

.close-loan:hover {
  transform: rotate(90deg);
}

.loan-tabs {
  display: flex;
  border-bottom: 1px solid #1c3f5e;
}

.tab-btn {
  flex: 1;
  padding: 15px;
  background: none;
  border: none;
  color: #a0b2c3;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

.tab-btn.active {
  color: #00ed64;
  border-bottom: 3px solid #00ed64;
}

.tab-btn:hover {
  color: #00ed64;
  background: rgba(0, 237, 100, 0.1);
}

.tab-content {
  display: none;
  padding: 25px;
}

.tab-content.active {
  display: block;
}

.loan-calculator {
  color: white;
}

.loan-calculator h3 {
  color: #00ed64;
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #a0b2c3;
  font-weight: bold;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px;
  background: #1c3f5e;
  border: 1px solid #2a4d6b;
  border-radius: 6px;
  color: white;
  font-size: 1em;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #00ed64;
}

.loan-preview {
  background: rgba(28, 63, 94, 0.3);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  padding: 5px 0;
  border-bottom: 1px solid rgba(160, 178, 195, 0.2);
}

.preview-row:last-child {
  border-bottom: none;
}

.preview-row span:first-child {
  color: #a0b2c3;
}

.preview-row span:last-child {
  color: #00ed64;
  font-weight: bold;
}

.take-loan-btn {
  width: 100%;
  padding: 15px;
  background: #00ed64;
  color: #051c2c;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.take-loan-btn:hover {
  background: #00c554;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 237, 100, 0.3);
}

.take-loan-btn:disabled {
  background: #1c3f5e;
  color: #a0b2c3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.loan-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
}

.loan-message.success {
  background: rgba(0, 237, 100, 0.1);
  color: #00ed64;
  border: 1px solid #00ed64;
}

.loan-message.error {
  background: rgba(255, 68, 68, 0.1);
  color: #ff6666;
  border: 1px solid #ff4444;
}

.active-loans {
  color: white;
}

.active-loans h3 {
  color: #00ed64;
  margin-bottom: 20px;
}

.loan-item {
  background: rgba(28, 63, 94, 0.3);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #1c3f5e;
}

.loan-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.loan-id {
  color: #00ed64;
  font-weight: bold;
}

.loan-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: bold;
}

.loan-status.active {
  background: rgba(255, 165, 0, 0.2);
  color: #ffa500;
  border: 1px solid #ffa500;
}

.loan-status.overdue {
  background: rgba(255, 68, 68, 0.2);
  color: #ff6666;
  border: 1px solid #ff4444;
}

.loan-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.loan-detail {
  display: flex;
  justify-content: space-between;
}

.loan-detail span:first-child {
  color: #a0b2c3;
}

.loan-detail span:last-child {
  color: white;
  font-weight: bold;
}

.loan-payment {
  display: flex;
  gap: 10px;
  align-items: center;
}

.payment-input {
  flex: 1;
  padding: 10px;
  background: #1c3f5e;
  border: 1px solid #2a4d6b;
  border-radius: 6px;
  color: white;
}

.payment-input:focus {
  outline: none;
  border-color: #00ed64;
}

.pay-btn {
  padding: 10px 20px;
  background: #00ed64;
  color: #051c2c;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pay-btn:hover {
  background: #00c554;
  transform: translateY(-1px);
}

.pay-btn:disabled {
  background: #1c3f5e;
  color: #a0b2c3;
  cursor: not-allowed;
  transform: none;
}

.no-loans {
  text-align: center;
  color: #a0b2c3;
  padding: 40px;
}

.save-btn {
  position: fixed;
  top: 966px;
  right: 20px;
  background: #00ED64;
  border: none;
  color: #051c2c;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.2s ease;
}

.save-btn:hover {
  background: #00ff6a;
  transform: translateY(-2px);
}

h1 {
  color: #00ed64;
  margin-bottom: 20px;
}