/*

Product Admin CSS Template

https://templatemo.com/tm-524-product-admin

*/

html {
  font-size: 16px;
  overflow-x: hidden;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
body {
  font-family: Roboto, Helvetica, Arial, sans-serif;
  background-color: #2c2c2c; /* Dark grey background */
  color: #ffffff; /* White text */
  overflow-x: hidden;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
a {
  transition: all 0.3s ease;
}
a:focus,
a:hover {
  text-decoration: none;
}
button:focus {
  outline: 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  height: 100px;
}
.tm-site-icon {
  color: #656565;
}
.tm-site-title {
  display: inline-block;
  text-transform: uppercase;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.navbar {
  height: 100px;
  background-color: #1a1a1a; /* Darker grey for navbar and footer */
  padding: 0;
}
.navbar .container {
  position: relative;
  width: 100%;
}
.tm-logout-icon {
  font-size: 1.5em;
}
.logo-img {
  width: 200px;
  height: auto;
}
.tm-mt-big {
  margin-top: 57px;
}
.tm-mb-big {
  margin-bottom: 60px;
}
.tm-mt-small {
  margin-top: 20px;
}
.tm-block-col {
  margin-bottom: 30px;
}
.tm-block {
  padding: 40px;
  -webkit-box-shadow: 1px 1px 5px 0 #455c71;
  -moz-box-shadow: 1px 1px 5px 0 #455c71;
  box-shadow: 1px 1px 5px 0 #455c71;
  min-height: 350px;
  height: 100%;
  max-height: 450px;
}
.tm-block-avatar,
.tm-block-settings {
  max-height: none;
}
.tm-block-avatar {
  height: auto;
}
.tm-block-h-auto {
  min-height: 1px;
  max-height: none;
  height: auto;
}
.tm-block-scroll {
  overflow-y: scroll;
}
.tm-block-overflow {
  overflow: hidden;
}
.tm-block-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 30px;
}
.nav-link {
  color: #ffffff; /* White text for navbar links and footer */
  height: 100%;
  display: flex;
  align-items: right;
  justify-content: right;
  flex-direction: column;
  font-size: 90%;
}
.nav-link > i {
  margin-bottom: 10px;
  margin-right: 0;
  font-size: 1.5rem;
}
.dropdown-item,
.nav-link {
  padding: 15px 20px;
}
.dropdown-menu {
  font-size: 90%;
  color: #fff;
  background-color: #9E9E9E;
  border-radius: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  min-width: auto;
}
.dropdown-item {
  color: #fff;
  padding: 15px 30px;
}
.navbar-nav .active > .nav-link,
.navbar-nav .nav-link.active {
  background-color: #f5a623;
  color: #fff;
}
.navbar-nav .nav-link.active i {
  color: #fff;
}
.dropdown-item:focus,
.dropdown-item:hover {
  background-color: #567086;
}
.navbar-nav a:hover,
.navbar-nav a:hover i {
  color: #f5a623;
}
.nav-item {
  text-align: center;
}
.nav-item:last-child {
  margin-right: 0;
}
.dropdown-toggle::after {
  display: none;
}
.dropdown-menu {
  margin-top: 0;
  border: 0;
}
.tm-content-row {
  justify-content: space-between;
  margin-left: -20px;
  margin-right: -20px;
}
.tm-col {
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 50px;
}
.tm-col-big {
  width: 39%;
}
.tm-col-small {
  width: 21.95%;
}
.tm-gray-circle {
  width: 80px;
  height: 80px;
  background-color: #aaa;
  border-radius: 50%;
  margin-right: 15px;
}
.tm-notification-items {
  overflow-y: scroll;
  height: 90%;
}
.tm-notification-item {
  padding: 15px;
  background-color: #4e657a;
  color: #fff;
  font-size: 95%;
  margin-bottom: 15px;
}
.tm-notification-item:last-child {
  margin-bottom: 0;
}
.tm-notification-link {
  color: #f5a623;
}
.tm-text-color-secondary {
  color: #bdcbd8;
}
.tm-small {
  font-size: 90%;
}
.table {
  background-color: #00BCD4;
  color: #fff;
  font-size: 85%;
  margin-bottom: 0;
}
thead {
  color: #fff;
}
.table thead th {
  border-bottom: 0;
}
.tm-status-circle {
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: -3px;
}
.moving {
  background-color: #9be64d;
  box-shadow: 0 0 8px #9be64d, inset 0 0 8px #9be64d;
}
.pending {
  background-color: #efc54b;
  box-shadow: 0 0 8px #efc54b, inset 0 0 8px #efc54b;
}
.cancelled {
  background-color: #da534f;
  box-shadow: 0 0 8px #da534f, inset 0 0 8px #da534f;
}
.tm-avatar {
  width: 345px;
}
.tm-avatar-container {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.tm-avatar-delete-link {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -25px;
  margin-top: -25px;
  z-index: 1000;
  padding: 14px;
  border-radius: 50%;
  background-color: rgba(57, 78, 100, 0.7);
  display: inline-block;
  width: 50px;
  height: 50px;
  text-align: center;
  display: none;
  transition: all 0.2s ease;
}
.tm-avatar-container:hover .tm-avatar-delete-link {
  display: block;
}
.tm-col-avatar {
  max-width: 425px;
  width: 37%;
  padding-left: 15px;
  padding-right: 15px;
}
.tm-col-account-settings {
  max-width: 822px;
  width: 63%;
  padding-left: 15px;
  padding-right: 15px;
}
.form-control {
  background-color: #54657d;
  color: #fff;
  border: 0;
}
.form-control:focus {
  background-color: #60738e;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 0.1rem rgb(180, 206, 233, 0.5);
}
.form-group label {
  color: #fff;
  margin-bottom: 10px;
}

/* Modal Background */
.modal-custom {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark transparent background */
  z-index: 1000;
}

/* Modal Content: Removes the white box */
.modal-content-custom {
  background: none; /* Remove any background */
  border: none; /* Remove borders */
  padding: 0; /* Remove extra padding */
  width: auto; /* Adjust to fit content */
  text-align: center;
  position: relative;
}

/* Close Button */
.close-button-custom {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 20px;
  cursor: pointer;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 100%;
}

/* Table Styling */
.table.trade-list-table-modal-custom {
  min-width: 600px;
  width: 50%;
  table-layout: auto;
  background-color: #3a3a3a;
  color: #ffffff;
  border-collapse: collapse;
}

.table.trade-list-table-modal-custom th, 
.table.trade-list-table-modal-custom td {
  border: 1px solid #ffffff;
  padding: 8px;
  text-align: center;
}

.table.trade-list-table-modal-custom th {
  background: #444;
}


.tm-hide-sm {
  display: block;
}
.tm-list-group {
  counter-reset: myOrderedListItemsCounter;
  padding-left: 0;
}
.tm-list-group > li {
  list-style-type: none;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px;
}
.tm-list-group > li:hover {
  color: #0266c4;
}
.tm-list-group > li:before {
  counter-increment: myOrderedListItemsCounter;
  content: counter(myOrderedListItemsCounter) ".";
  margin-right: 0.5em;
}
.tm-list {
  padding-left: 30px;
}
.tm-list > li {
  margin-bottom: 20px;
}
.form-control {
  padding: 19px 18px;
  border-radius: 0;
}
.form-group {
  margin-bottom: 15px;
}
.btn {
  /*
  border-radius: 0;
  padding: 13px 28px;
  */
  transition: all 0.2s ease;
  max-width: 100%;
}
.btn-small {
  padding: 10px 24px;
}
.btn-primary {
  color: #fff;
  background-color: #f5a623;
  border: 2px solid #f5a623;
  font-size: 90%;
  font-weight: 600;
}
.btn-primary:active,
.btn-primary:hover {
  color: #f5a623;
  background-color: transparent;
  border: 2px solid #f5a623;
}
.custom-file-input {
  cursor: pointer;
}
.custom-file-label {
  border-radius: 0;
}
.table td,
.table th {
  border-top: 1px solid #415a70;
  padding: 15px 25px;
  vertical-align: middle;
}
.tm-table-small td,
.tm-table-small th {
  padding-left: 12px;
  padding-right: 12px;
}
.table-hover tbody tr {
  transition: all 0.2s ease;
}
.table-hover tbody tr:hover {
  color: #a0c0de;
}
.tm-bg-primary-dark {
  /*background-color: #435c70; This is the login/register form background color*/
}
.tm-bg-gray {
  background-color: rgba(0, 0, 0, 0.05);
}
.tm-table-mt {
  margin-top: 66px;
}
.page-item:first-child .page-link {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.page-item:last-child .page-link {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.page-link {
  padding: 12px 18px;
}
.page-link,
.page-link:hover {
  color: #000;
}
.page-item {
  margin-right: 18px;
}
.page-item:last-child {
  margin-right: 0;
}
.page-item.active .page-link {
  background-color: #e9ecef;
  border-color: #dee2e6;
  color: #000;
}
input[type="checkbox"] {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  position: relative;
  width: 24px;
  height: 24px;
  transition: all 0.1s linear;
}

input[type="checkbox"]:focus {
  outline: 0 none;
  box-shadow: none;
}
.tm-block-products {
  min-height: 725px;
}
.tm-block-product-categories {
  min-height: 650px;
}
.tm-product-table-container {
  max-height: 465px;
  margin-bottom: 15px;
  overflow-y: scroll;
}
.tm-product-table tr {
  font-weight: 600;
}
.tm-product-name {
  font-size: 0.95rem;
  font-weight: 600;
}
.tm-product-delete-icon {
  font-size: 1.1rem;
  color: #fff;
}
.tm-product-delete-link {
  padding: 10px;
  border-radius: 50%;
  background-color: #394e64;
  display: inline-block;
  width: 40px;
  height: 40px;
  text-align: center;
}
.tm-product-delete-link:hover .tm-product-delete-icon {
  color: #6d8ca6;
}
.custom-select {
  width: 100%;
  border: none;
  color: #acc6de;
  height: 50px;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  -ms-border-radius: 0;
  -o-border-radius: 0;
  border-radius: 0;
  padding: 15px;
  background: url(../img/arrow-down.png) 98% no-repeat #50657b;
}
.custom-select:focus {
  outline: 0;
}
.tm-trash-icon {
  color: #6e6c6c;
  cursor: pointer;
}
.tm-trash-icon:hover {
  color: #9f1321;
}
.tm-footer {
  background-color: #1a1a1a; /* Darker grey for navbar and footer */
  padding-top: 30px;
  padding-bottom: 30px;
  -webkit-box-shadow: 0 -3px 5px 0 rgba(69, 92, 113, 0.59);
  -moz-box-shadow: 0 -3px 5px 0 rgba(69, 92, 113, 0.59);
  box-shadow: 0 -3px 5px 0 rgba(69, 92, 113, 0.59);
}
.tm-footer p {
  color: #ffffff; /* White text for navbar links and footer */
}
.custom-select {
  height: 50px;
  border-radius: 0;
}
.tm-product-img-dummy {
  max-width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #aaa;
}
.tm-product-img-edit {
  max-width: 100%;
  position: relative;
}
.tm-product-img-edit i {
  display: none;
  position: absolute;
}
.tm-product-img-edit:hover i {
  display: block;
}
.tm-upload-icon {
  background: #455c71;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  text-align: center;
  padding-top: 15px;
  font-size: 22px;
}
.tm-login-col {
  max-width: 470px;
}
.navbar-toggler {
  border-color: #708da8;
  box-shadow: rgba(255, 255, 255, 0.1) 0 1px 1px 2px;
  border-radius: 0;
  padding: 10px 15px;
  transition: all 0.2s ease;
}
.navbar-toggler:hover {
  border-color: #f5a623;
  color: #f5a623;
}
.tm-nav-icon {
  color: #fff;
}
.navbar-toggler:hover .tm-nav-icon {
  color: #f5a623;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #394f62;
}
::-webkit-scrollbar-thumb {
  background: #6d8da6;
}
::-webkit-scrollbar-thumb:hover {
  background: #8ab5d6;
}

.tm-footer-link {
  color: white;
}

.tm-footer-link:hover,
.tm-footer-link:focus {
  color: #aacbea;
}

.trade-list-container {
  height: calc(100vh - 150px); /* Adjust the height to take up the full viewport height minus some space for header/footer */
  overflow-y: auto; /* Enable vertical scrolling */
  margin-bottom: 20px; /* Add some space at the bottom */
  width: 100%; /* Make the container take the full width of the page */
  flex: 1;
}

.trade-list-table {
  width: 100%; /* Make the table take the full width of the container */
  table-layout: auto; /* Ensure the table layout is fixed */
  background-color: #3a3a3a; /* Slightly lighter dark grey for table background */
  color: #ffffff; /* White text for table */
}

.trade-list-table th, .trade-list-table td {
  padding: 10px; /* Add padding to table cells */
  text-align: left; /* Align text to the left */
  border-bottom: 1px solid #ddd; /* Add a bottom border to table cells */
  border-color: #4a4a4a; /* Dark grey border for table cells */
}

.trade-list-table th {
  background-color: #1a1a1a; /* Darker grey for table headers */
}

input, select {
  background-color: #3a3a3a; /* Dark grey background for input and select */
  color: #ffffff; /* White text for input and select */
  border: 1px solid #4a4a4a; /* Dark grey border */
}

input::placeholder {
  color: #cccccc; /* Light grey placeholder text */
}

/* Override Bootstrap container max-width */
.container, .container-fluid {
  max-width: 100% !important;
}
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.col-12\.tm-block-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: calc(101vh - 150px); /* Adjust the height to take up the full viewport height minus some space for header/footer */
  overflow-y: auto; /* Enable vertical scrolling */
  width: 100%; /* Make the container take the full width of the page */
}
.table-responsive {
  overflow-x: auto;
}

.table.trade-list-table {
  min-width: 1400px; /* Adjust this value as needed */
}

/* Conditional formatting classes */
.highlight-green {
  background-color: green;
  color: white;
}

.text-green {
  color: green;
  text-emphasis-style: bold;
}

.highlight-red {
  background-color: red;
  color: white;
}

.value-low {
  color: red;
}

.value-medium {
  color: orange;
}

.value-high {
  color: green;
}

/* Styles for sortable columns */
th.sortable {
  cursor: pointer;
  position: relative;
}

th.sortable:after {
  content: ' --'; /* Default content */
  position: absolute;
  right: 10px;
}

th.sortable.asc:after {
  content: ' ▲'; /* Up arrow */
}

th.sortable.desc:after {
  content: ' ▼'; /* Down arrow */
}

.three-chart-row {
    height: 550px;
    width: 100%;
    padding-top: 60px;
}

.tradelist-top-bar{
    position: sticky;
    background-color: #333;
    top: 0;
}

.trade-list-table thead {
    position: sticky;
    top: 0px;
    z-index: 99;
}

.tradelist-container {
    padding-left: 20px;
    padding-right: 0px;
    padding-top: 10px;
}

/* Header content layout for title and refresh level */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* Reduced from 15px to save space */
}

.forums-dropdown {
    position: relative;
}

.header-content .tm-block-title {
    margin-bottom: 0; /* Remove bottom margin to keep on same line */
    flex: 1; /* Allow title to take available space */
}

.refresh-level-display {
    color: #fff;
    font-size: 1rem; /* Reduced from 1.2rem to fit better */
    font-weight: bold;
    background: rgba(22, 33, 62, 0.8);
    padding: 6px 12px; /* Reduced padding to make it more compact */
    border-radius: 4px;
    border: 1px solid #0f3460;
    white-space: nowrap;
    margin-left: 15px; /* Add some space from the title */
    transition: all 0.2s ease; /* Add smooth transition */
}

.refresh-level-display:hover {
    background: rgba(22, 33, 62, 1);
    color: #f5a623;
    transform: scale(1.02); /* Slight scale effect on hover */
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Header controls container for both refresh level and auto refresh */
.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Help icon styling */
.help-icon-link {
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.help-icon-link:hover {
    color: #f5a623;
    transform: scale(1.1);
    text-decoration: none;
}

/* Auto-refresh display styling */
.auto-refresh-display {
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    background: rgba(22, 33, 62, 0.8);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #0f3460;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.auto-refresh-display:hover {
    background: rgba(22, 33, 62, 1);
    color: #f5a623;
    transform: scale(1.02);
}

.auto-refresh-display.auto-refresh-on {
    background: rgba(40, 167, 69, 0.8);
    border-color: #28a745;
}

.auto-refresh-display.auto-refresh-on:hover {
    background: rgba(40, 167, 69, 1);
    border-color: #34ce57;
}

.auto-refresh-display.auto-refresh-off {
    background: #212529;
    border-color: #212529;
}

.auto-refresh-display.auto-refresh-off:hover {
    background: #212529;
    border-color: #212529;
}

button.btn.btn-sm.btn-success.view-ticker-btn {
  padding: 5px 5px;
  font-size: small;
  margin-right: 8px;
}

button.btn.btn-sm.btn-danger.remove-ticker-btn {
  padding: 5px 5px;
  font-size: small;
  margin-right: 8px;
}

@media (max-width: 1236px){
  .trade-list-table thead {
    top: 0px;
  }
}

@media (max-width: 450px){
  .table.trade-list-table-modal-custom {
      min-width: 400px;
  }

  .modal-custom {
      justify-content: center;
  }
}

@media (max-width: 37px){
  .header-content .tm-block-title {
      font-size: small;
  }
}


/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 8px; /* Reduced gap */
    }
    
    .refresh-level-display {
        text-align: center;
        font-size: 0.9rem; /* Even smaller on mobile */
        margin-left: 0;
        padding: 4px 8px; /* Smaller padding on mobile */
    }

    .tradelist-top-bar {
      position: relative;
      top: 0;
    } 
    .trade-list-table thead {
        top: 0px;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-controls input,
    .filter-controls select,
    .filter-controls button {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .header-controls {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .auto-refresh-display,
    .refresh-level-display {
        text-align: center;
        font-size: 0.9rem;
        padding: 4px 8px;
    }
}

/* Watchlist toggle styling */
.watchlist-cell {
    text-align: center;
    width: 40px;
    padding: 8px 4px !important;
}

.watchlist-toggle {
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 3px;
}

.watchlist-toggle:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.1);
}

.watchlist-watched {
    color: #28a745 !important;
}

.watchlist-unwatched {
    color: #6c757d !important;
}
/*
.watchlist-watched:hover {
    color: #dc3545 !important;
}

.watchlist-unwatched:hover {
    color: #28a745 !important;
}
*/
.watchlist-header {
    text-align: center;
    width: 40px;
}

/* Spinner animation for loading state */
.fa-spinner {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}