.account-profit-container {
  background: #1f2937;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex; /* Enable flexbox */
  flex-direction: column; /* Stack the items vertically */
  align-items: center; /* Center horizontally */
  justify-content: center; /* Center vertically */
  text-align: center; /* Center the text */
}

.account-profit-container .total-profit {
  margin: 10px 0;
}

.account-profit-container button {
  margin-top: 10px;
}

.account-profit-container button#resetProfitBtn {
  margin-bottom: 10px;
}

.account-dropdown-wrapper {
  position: absolute; /* Position relative to nearest positioned ancestor */
  top: 10px;
  left: 10px;
  z-index: 9999; /* Ensure it's above other content */
}

#accountDropdown {
  padding: 8px 12px;
  border-radius: 6px;
  background: #374151;
  color: #f9fafb;
  border: none;
  font-family: 'Poppins', sans-serif;
}



#accountDetails p {
  margin: 0;
  font-size: 16px;
  color: #ffffff;
margin-bottom: 14px;
}

#accountDetails p:first-child {
  font-weight: bold;
  margin-bottom: 5px;
}



.total-profit {
  font-size: 18px;
  margin-top: 10px;
  font-weight: bold;
  text-align: center; /* Centers the content */
}

.profit-label {
  display: block; 
  font-size: 18px;
  color: White; 
}

.profit-value {
  display: block; 
  font-size: 37px;
   color: White;
}

.profit-value .value {
  font-weight: bold;
}

.positive {
  color: #10b981;
}

.negative {
  color: red;
}

.glass-btn {
  padding: 8px 15px; /* Smaller padding for a more compact look */
  background: rgba(255, 255, 255, 0.1); /* Translucent white background for glassmorphism */
  color: #f9fafb; /* Light text color for contrast */
  border: 0px solid rgba(255, 255, 255, 0.2); /* Light border with opacity */
  border-radius: 15px; /* Rounded corners for a smooth look */
  font-size: 14px; /* Smaller font size */
  font-weight: 500; /* Slightly bolder text for visibility */
  cursor: pointer;
  backdrop-filter: blur(10px); /* Glass effect with background blur */
  transition: background 0.3s ease, transform 0.2s ease; /* Smooth hover effect */
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.2); /* Darker background on hover */
  transform: scale(1.0); /* Slight grow effect on hover for interactivity */
}

.glass-btn:focus {
  outline: none; /* Remove default outline */
}

.glass-btn:active {
  background: rgba(255, 255, 255, 0.3); /* Even darker background when pressed */
  transform: scale(1.02); /* Slight shrink effect when pressed */
}


#buy-btn {
  display: block;
  width: 30%;
  padding: 11px 20px;
  font-size: 15px;
  text-align: center;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#buy-btn:hover {
  background-color: #2563eb;
}

/* ✅ Mobile-specific adjustment */
@media (max-width: 480px) {
  #buy-btn {
    width: 40%;
  }
}



label[for="symbol"] {
  text-align: center;
  width: 100%;
  display: block;
}

.settings-section {
  margin-top: 20px;
  display: none;
  background: rgba(55, 65, 81, 0.7); /* Translucent dark backdrop */
  padding: 20px;
  border-radius: 16px;
  max-height: 0;
  overflow-y: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Poppins', sans-serif;
}

/* Show state */
.settings-section.show {
  display: block;
  max-height: 600px; /* Allow scrollable height */
  overflow-y: auto;
  animation: fadeInSettings 0.5s ease-in-out;
  scroll-behavior: smooth;
}

/* Subtle fade and lift effect */
@keyframes fadeInSettings {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-section::-webkit-scrollbar {
  width: 6px;
}
.settings-section::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}
.settings-section::-webkit-scrollbar-track {
  background: transparent;
}

/* Firefox scrollbar styling */
.settings-section {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Optional: Space between inner elements */
.settings-section > * {
  margin-bottom: 16px;
}


.settings-toggle-btn {
  display: block;
  width: 100%;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 16px;
  color: #ffffff;
  cursor: pointer;
  margin-bottom: 20px;

  /* Glassmorphism styles */
  background: rgba(59, 130, 246, 0.15); /* Soft bluish overlay */
  backdrop-filter: blur(12px); /* Strong blur effect */
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.1);
  
  transition: background 0.3s ease, transform 0.2s ease;
}

/* Hover effect */
.settings-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.25); /* Slightly more intense */
  transform: scale(1.0); /* Gentle interaction feedback */
}



/* Floating buttons at the bottom center */
.settings-buttons {
  position: fixed;
  top: 80vh; /* Push lower down */
  left: 50%;
  transform: translateX(-50%); /* Only center horizontally */
  display: none;
  gap: 20px;
  z-index: 1000;
}

/* Button styles */
.settings-buttons .button {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  background-color: #3b82f6;
  color: white;
  border: none;
  transition: background 0.3s ease;
}

.settings-buttons .button:hover {
  background-color: #2563eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .settings-buttons {
    top: 88vh; /* Still low, but a bit higher for smaller screens */
    gap: 15px;
  }

  .settings-buttons .button {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .settings-buttons {
    top: 87vh; /* Higher for very small screens */
  }

  .settings-buttons .button {
    padding: 8px 16px;
    font-size: 12px;
  }
}





.flex-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.input-group {
  flex: 1;
}

.input-group label {
  margin-bottom: 5px;
  display: block;
  color: #93c5fd;
}

.input-group input,
.input-group select {
  padding: 10px;
  border-radius: 6px;
  border: 0px solid #4b5563;
  background: #1f2937;
  color: #f9fafb;
  width: 100%;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #3b82f6;
  background: #111827;
}



#status {
  display: none;
}



.notification {
  position: fixed;
  top: env(safe-area-inset-top, 0); /* support for iOS notch safe area */
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff4d4f;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  transform: translate(-50%, -120%);
  z-index: 9999;
  max-width: calc(100vw - 32px); /* prevent overflow on mobile */
  text-align: center;
}

.notification.show {
  opacity: 1;
  transform: translate(-50%, 20px);
}

.notification.hidden {
  opacity: 0;
  transform: translate(-50%, -120%);
}
@media (max-width: 400px) {
  .notification {
    font-size: 12px;
    padding: 10px 16px;
  }
}


#transactions-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05); /* Transparent glass */
  border-radius: 16px;
  margin-top: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Poppins', sans-serif;
  color: white;
  transition: all 0.3s ease;
   min-height: 100vh;
}

#transactions-list {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  scroll-behavior: smooth;
}

#transactions-list::-webkit-scrollbar {
  width: 8px;
}

#transactions-list::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#transactions-list::-webkit-scrollbar-track {
  background: transparent;
}


#transactions-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  color: #ffffffcc;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.transaction {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeSlideIn 0.4s ease-out;
}

.transaction:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.transaction-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.transaction-info .details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #e0e0e0;
}

.transaction-info .details p {
  font-size: 13px;
  margin: 0;
  color: #cccccc;
  word-break: break-word;
}

.transaction-info {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.transaction-info .profit {
  justify-self: end;
  align-self: center;
  font-weight: 600;
  font-size: 15px;
  color: #10b981;
  white-space: nowrap;
  padding-left: 8px;
}

.transaction-info .profit.negative {
  color: #ff4d4d;
}


@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.clear-btn {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  margin-bottom: 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.clear-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #00e0ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 224, 255, 0.2);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #ffffff99;
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}

.empty-state svg {
  margin-bottom: 12px;
  stroke: #ffffff55;
}


#toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  min-width: 250px;
  max-width: 320px;
  text-align: center;
  animation: fadeInOut 4s ease forwards;
  pointer-events: auto;
}

.toast.error {
  border-left: 4px solid #ff4d4d;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px); /* Optional global blur effect */
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  color: #f9fafb; /* Light text for readability */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-content h2, .modal-content p {
  margin-bottom: 20px;
  color: #ffffff;
}

.modal-actions {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.modal-actions button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
}

.modal-actions button:hover {
  transform: translateY(-2px);
}

#startNewBtn {
  background-color: #ef4444; /* Red-500 */
  color: white;
}

#resumeBtn {
  background-color: #10b981; /* Green-500 */
  color: white;
}




.explanation {
  display: block;
  font-size: 12px;
  color: #888; /* Light gray */
  margin-top: 5px;
  margin-bottom: 10px;
}


#bot-status {
  text-align: right;
  font-size: 15px;
  margin-top: 10px;
}

#status-value {
  font-weight: bold;
  font-size: 12px;
}

#status-value.active {
  color: #10b981; /* Tailwind's green-500 */
}

#status-value.inactive {
  color: red; /* Tailwind's red-500 */
}


/* Modal Wrapper */
.notification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(6px);
  z-index: 2000;
  transition: opacity 0.3s ease;
}

/* Hide modal */
.notification-modal.hidden {
  display: none;
}

/* Modal content box */
.notification-modal .modal-box {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 30px 35px;
  border-radius: 16px;
  text-align: center;
  color: #f1f1f1;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.4s ease;
}

/* Heading */
.notification-modal .modal-box h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #ffffff;
}

/* Message */
.notification-modal .modal-box p {
  font-size: 16px;
  margin-bottom: 25px;
  color: #dddddd;
}

/* Continue Button */
.notification-modal .modal-box .modal-btn {
  background: #3b82f6; /* Light blue */
  color: #ffffff;
  padding: 12px 24px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.notification-modal .modal-box .modal-btn:hover {
  background: #2563eb; /* Slightly darker light blue for hover */
}


/* Optional animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-profit-positive {
  color: #10b981;
  font-weight: bold;
}

.modal-profit-negative {
  color: #ef4444;
  font-weight: bold;
}

.dynamic-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 20px;
  min-height: 32px;
  max-height: 38px;
  min-width: 150px;
  max-width: 80vw;
  box-sizing: border-box;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 99999;
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.25, 1.5, 0.5, 1), opacity 0.4s ease;
  pointer-events: none;

  /* ✅ Center content vertically & horizontally */
  display: flex;
  align-items: center;
  justify-content: center;
}

.dynamic-banner.show {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.dynamic-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease 0.7s;
  text-align: center;
}

.dynamic-banner.show .dynamic-content {
  opacity: 1;
}

.trading-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.candlestick-icon {
  width: 24px;
  height: 18px;
}



.hidden {
  display: none;
}

@media (max-width: 472px) {
  .dynamic-banner {
    font-size: 12px;
    padding: 4px 12px;
    min-width: 100px;
    max-width: 60vw;
    max-height: 34px;
  }

  .candlestick-icon {
    width: 18px;
    height: 14px;
  }

  .dynamic-content {
    gap: 6px;
  }
}

@media (max-width: 320px) {
  .dynamic-banner {
    padding: 4px 10px;
    font-size: 8px;
    max-width: 50vw;
  }

  .candlestick-icon {
    width: 16px;
    height: 12px;
  }
}


button {
  -webkit-tap-highlight-color: transparent;
}
button:focus {
  outline: none;
}

/* Toggle switch base */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

/* Hide default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider background */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 34px;
}

/* The slider circle */
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

/* Checked state */
.switch input:checked + .slider {
  background-color: #007bff;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}
