/* Sidebar icons and text */

#menuButton{
  padding-bottom: 5px !important;
  font-size: 1.3rem;
}

.good{
    color: #16a34a;
}

.moderate{
    color: yellow;
}

.bad{
    color: red;
}

.sidebar{
    width: 220px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    overflow-x: hidden;
    transition: 0.3s ease-in-out;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.08);
    z-index: 999;
    border-right: 1px solid #e9ecef;
    color: #495057;
    min-height: 100vh;
}

.sidebar a{
    padding: 16px 20px 16px 24px;
    text-decoration: none;
    font-size: 16px;
    color: #495057;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 8px;
    /* margin: 4px 12px; */
    position: relative;
}

.sidebar a:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: #219b48;
  transition: height 0.3s ease;
  border-radius: 2px;
}

.sidebar-option:hover,
.sidebar-option.active {
  color: #ffffff;
  background:  #219b48 100%;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  color: black !important;
  margin: 5px;
}

.sidebar-option:hover:before {
  height: 60%;
}


.closebtn {
  font-size: 36px;
  color: #212529;
  cursor: pointer;
}

.closebtn:hover {
  color: #dc3545;
  background: #ffe6e6;
  transform: rotate(90deg);
}

#main-content {
  width: 87%; 
}

.navbar-expand-lg{
    background-color: #219b48;
}

.market {
  padding-left: 9px;
}

/* Buttons in menu section */
.btn-sm-square {
    width: 6rem;
    height: 4rem;
    font-size: 0.85rem;
    border-radius: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    flex-direction: column;
    color: #212529;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-sm-square:hover,
.btn-sm-square:focus {
    background-color: #e9ecef;
    border-color: #0d6efd;
    color: #0d6efd;
    text-decoration: none;
}

/* Icons inside buttons */
.btn-sm-square svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

/* Stock indexes cards container */
.indexes-container {
    background-color: #f8fafc;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.45rem 0.75rem;
    font-size: 12px;
    color: #495057;
    margin-bottom: 1rem;
    user-select:none;
}

/* Inline stock trend charts with red arrows and white arrows */
.index-item {
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    width: 7.5rem;
    font-weight: 600;
    color: #212529;
    font-size: 0.8rem;
}

.index-item small {
    font-weight: 500;
    font-size: 10px;
    display: block;
    margin-top: 0.15rem;
    color: #868e96;
}

.index-value {
    font-weight: 700;
    color: #a39393;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    user-select:none;
}

.index-value svg {
    width: 0.9rem;
    height: 0.9rem;
}

.up { color: #28a745; }
.down { color: #dc3545; }

/* Main Search area */
#search-area {
    padding: 1.5rem;
    background-color: #f8fafc;
    text-align: center;
}

#search-area h2 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#search-area p.lead {
    font-weight: 500;
    color: #495057;
    margin-bottom: 1.5rem;
}

/* Under search trending */
#search-area .trending {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.6rem;
}

#search-area .trending a {
    text-decoration: none;
    color: #0d6efd;
    font-weight: 600;
}

#search-area .trending a:hover {
    text-decoration: underline;
}

#search-area .btn-more {
    font-size: 0.75rem;
    background-color: #e9ecef;
    border-radius: 0.375rem;
    color: #6c757d;
    padding: 0.2rem 0.5rem;
    border: none;
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Tables styles */
.table thead th {
    border-bottom: 2px solid #dee2e6;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    font-weight: 600;
    font-size: 1rem;
    color: #212529;
}

.table tbody tr:hover {
    background-color: #f1f3f5;
}

/* Price change colors white */
.change-positive {
    color: #198754;
    font-weight: 600;
}

/* Price change colors red */
.change-negative {
    color: #dc3545;
    font-weight: 600;
}

/* Footer styles */
footer {
    background-color: #1f2937;
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 3rem 1.5rem 2rem;
}

footer a,
footer a:hover {
    color: #93c5fd;
    text-decoration: none;
}

footer .footer-section {
    margin-bottom: 1.5rem;
}

footer .btn-subscribe {
    background-color: #2563eb;
    border-color: #2563eb;
}

footer .btn-subscribe:hover {
    background-color: #1e40af;
    border-color: #1e40af;
}

/* Small theme toggle button */
.theme-toggle {
    border-radius: 0.375rem;
    border: 1px solid #94a3b8;
    background: none;
    color: #cbd5e1;
    font-size: 0.875rem;
    padding: 0.15rem 0.5rem;
    cursor: pointer;
    user-select:none;
}

/* Nav Login & Signup Buttons */
.btn-login {
    color: #212529;
    font-size: 0.875rem;
    border: none;
    background: none;
    padding: 0.3rem 0.75rem;
    margin-right: 0.6rem;
    transition: color 0.2s ease-in-out;
}

.btn-login:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* Brand styling with blue background for circle */
.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: #0d6efd;
    color: white;
    font-weight: 700;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 0.35rem;
    user-select: none;
    font-size: 1.1rem;
    letter-spacing: -0.03em;
}

.brand-text {
    margin-left: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    user-select: none;
    color: #212529;
}

.sub-search{
    max-width: 350px;
}

#stockSearchSuggestions{
  position: absolute;
  left: 1400px;
}

.dropdown-item-detail {
    transition: all 0.3s ease;
    padding: 3px 8px;
    display: block;
    width: 100%;
    clear: both;
    font-weight: 400;
    color: var(--bs-dropdown-link-color);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    border-radius: var(--bs-dropdown-item-border-radius, 0);
}

#dropdown-menu-detail {
    min-width: 5rem;
}

table.table tbody td {
  background-color: transparent !important;
}

.sub-table{
  border: 1px solid #e5dddd;
}

@media (max-width: 991.98px) {
  .market{
    padding-left: 8px;
  }
}

@media screen and (max-height: 450px) {
  .sidebar {padding-top: 15px;}
  .sidebar a {font-size: 16px;}
}

.calendar-link.selected .calendar-day {
    background-color: #000000; /* Light blue */
    border-radius: 6px;
}


/* footer */

.footer {
  background: #219b48;
  color: #f5f5f5;
  padding: 30px 0;
  width: 100%;
}
.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  align-items: start;
}
.footer__brand .logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.footer__brand .logo:hover {
  color: #f0e68c;
}
.footer__locations p {
  font-size: 0.9rem;
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.8;
}
.footer__contact p {
  margin-bottom: 0px;
  font-size: 0.95rem;
  color: #e0e0e0;
}
.footer__contact span {
  color: #ffffff;
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
.footer__contact a {
  color: #f0e68c;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer__contact a:hover {
  color: #ffd700;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.footer__nav a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer__nav a:hover {
  color: #ffd700;
  transform: translateY(-2px);
}
.footer__social {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}
.footer__social a {
  color: #e0e0e0;
  font-size: 1.3rem;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer__social a:hover {
  color: #f0e68c;
  transform: scale(1.2);
}
.footer__connect a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}
.footer__connect a:hover {
  color: #ffd700;
}
.footer__share {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.footer__share a {
  color: #e0e0e0;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer__share a:hover {
  color: #f0e68c;
  transform: scale(1.2);
}
.footer__legal {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #d3d3d3;
}
.footer__legal p {
  margin-bottom: 7px;
}
.footer-icon {
  width: 24px;
  height: 24px;
  fill: #e0e0e0;
}
@media (max-width: 768px) {
  .footer .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__social, .footer__share {
    justify-content: center;
  }
  .footer__locations p {
    font-size: 0.85rem;
  }
  .footer__nav{
    justify-content: center;
  }
  .sidebar-item{
    padding: 16px 20px 16px 24px;
  }
  .sub-search {
    width: 65%;
  }
  .market{
    padding-left: 8px;
  }
  .socila-media{
    display: flex;
    margin-top: 20px;
    justify-content: center;
  }

}
@media (max-width: 480px) {
  .footer {
    padding: 40px 0;
  }
  .footer__brand .logo {
    font-size: 1.6rem;
  }
  .footer__contact p, .footer__nav a, .footer__connect a {
    font-size: 0.9rem;
  }
  .footer__social a, .footer__share a {
    font-size: 1.1rem;
  }

  .sidebar {
    width: 220px;
    margin-top: 100px;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    overflow-x: hidden;
    transition: 0.3s ease-in-out;
    box-shadow: 2px 0 15px rgba(0,0,0,0.08);
    z-index: 999;
    border-right: 1px solid #e9ecef;
  }

  .sub-search {
    width: 65%;
  }

  .market{
    padding-left: 8px;
  }

  #stock-search-form{
    width: 24% !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
  }

  .footer__nav{
    justify-content: center;
  }

  .socila-media{
    display: flex;
    margin-top: 20px;
    justify-content: center;
  }

  .socila-media-icon{
    margin-left: 10px ;
  }

  .nav-login{
    margin: 0px !important;
  }

  #login-page{
    padding: 1rem !important;
  }

  .index-item{
    width: 7rem !important;
    margin: 0px !important;
  }

  #nav-profile{
    margin-right: 0rem !important;
    margin-left: 0rem !important;
  }

  .btn-login{
    margin: 0px !important;
  }

  #profile-icon{
    gap: 0px !important;
  }

  #menuButton{
    margin-left: 8px;
  }

  #logout-nav{
    margin: 0px !important;
  }

}

.portfolioSummaryCard{
  background-color: #f8fafc;
}