/* === Custom Header Layout === */
.custom-header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 12px;
  margin-bottom: 0; 
  padding-bottom: 5px;
}

/* This is no longer needed — logo size is hardcoded in index.php */
.small-logo {
  height: 64px;
  width: auto;
  display: block;
}

.site-title-block {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-title {
  font-size: 2.6rem;   /* increased from 2rem */
  font-weight: bold;
  color: black;
}

.site-subtitle {
  font-size: 1.4rem;   /* increased from 1rem */
  color: #555;
  font-style: italic;
  margin-top: 6px;
}


/* If ever needed for other images */
.custom-header img {
  margin-right: 20px;
  display: block;
  vertical-align: middle;
}

/* Optional: Keep in case you add back <h1> or text next to logo */
.custom-header h1 {
  font-size: 2rem;
  color: black;
  margin: 0;
  padding: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* === Header Background Override === */
.header.container-header {
  background-color: white !important;
  color: black !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); /* subtle bottom line */
}

/* Force header title text color to black */
.header.container-header .navbar-brand span,
.header.container-header .navbar-brand h1 {
  color: black !important;
}



.header.container-header.full-width {
  background: none !important;
  background-color: white !important;
  box-shadow: none !important;
  border: none !important;
}

/* Optional: eliminate header gradient colors globally */


:root {
  --cassiopeia-color-primary: white !important;
  --cassiopeia-color-link: white !important;
  --cassiopeia-color-header: white !important;
  --template-bg-light: white !important;
}



ul.mod-menu.nav {
  display: flex !important;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.mod-menu.nav > li > a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  color: black;
}

ul.mod-menu.nav > li > a:hover {
  color: #007BFF;
}

/* Align menu inside header */
.custom-header ul.mod-menu {
  display: flex;
  gap: 20px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.custom-header ul.mod-menu > li > a {
  color: black;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 12px;
}

.custom-header ul.mod-menu > li > a:hover {
  color: #007BFF;
}


/* === Responsive Menu Toggle === */
.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  margin-left: auto;
}

/* Hide checkbox */
#menu-toggle {
  display: none;
}

/* Default desktop menu layout */
.responsive-menu ul.mod-menu.nav {
  display: flex !important;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

/* Mobile view */
@media (max-width: 768px) {
  .custom-header {
    flex-wrap: wrap;
  }

  .menu-icon {
    display: block;
  }

  .responsive-menu {
    width: 100%;
    display: none;
  }

  #menu-toggle:checked + .menu-icon + .responsive-menu {
    display: block;
  }

  .mobile-menu ul.mod-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 10px;                     /* a little more breathing space */
    padding: 6px 12px;
    margin: 0;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu ul.mod-menu > li {
    flex: 0 0 auto;
  }

  .mobile-menu ul.mod-menu > li > a {
    font-size: 1.1rem !important;     /* was 0.85rem — now slightly bigger */
    padding: 6px 10px !important;   /* more padding but still compact */
    white-space: nowrap !important;
    display: inline-block;
    color: black;
    text-decoration: none;
    font-weight: bold;
  }

  .mobile-menu ul.mod-menu > li > a:hover {
    color: #007BFF;
  }
}

/* === Tighten spacing below header and above breadcrumbs === */
ul.breadcrumb,
.container-breadcrumbs,
#system-breadcrumb {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.grid-child.container-nav {
  display: none !important;
}

li.nav-item.active > a {
  display: inline-block;
  border-bottom: 3px solid red;
  padding-bottom: 4px;
  font-weight: bold;
  color: black !important;
  text-decoration: none;
}

li.nav-item > a:hover {
  border-bottom: 2px solid red;
  padding-bottom: 4px;
}

.menu-bar {
  background-color: #f8f8f8; /* light gray bar */
  padding: 12px 24px;
  border-bottom: 1px solid #ddd;
  margin-top: -12px; /* reduce space if needed */
}

.menu-bar ul.mod-menu {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Horizontal Menu Layout */
.menu-bar ul.mod-menu.nav {
  display: flex !important;
  justify-content: flex-start;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-bar ul.mod-menu.nav > li > a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  color: black;
}

/* Hover effect */
.menu-bar ul.mod-menu.nav > li > a:hover {
  color: #007BFF;
}

/* Active menu item with red underline */
.menu-bar li.nav-item.active > a {
  border-bottom: 3px solid red;
  padding-bottom: 4px;
  color: black !important;
}

/* Responsive container */
.responsive-menu-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 20px;
  margin-bottom: 10px;
}

/* Hide the checkbox */
.menu-toggle {
  display: none;
}

/* Hamburger icon */
.menu-icon {
  display: none;
  font-size: 1.4rem;
  cursor: pointer;
  margin-bottom: 8px;
}

/* Menu style */
.mobile-menu ul.mod-menu.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu ul.mod-menu.nav > li > a {
  padding: 6px 12px;
  font-size: 1rem;
  text-decoration: none;
  color: black;
  font-weight: bold;
}

/* === Mobile Only === */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .mobile-menu ul.mod-menu.nav {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .menu-toggle:checked + .menu-icon + .mobile-menu ul.mod-menu.nav {
    display: flex;
  }
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
  .custom-header {
    flex-wrap: nowrap;
  }

  .site-title {
    font-size: 1.6rem;
  }

  .site-subtitle {
    font-size: 0.9rem;
    margin-top: 2px;
  }

  .site-title-block {
    margin-left: 8px;
  }

  .small-logo {
    height: 42px;  /* optionally reduce logo height slightly */
  }
}

.success-card {
    display: none;
    align-items: center;
    background: #1a1a1a;
    color: #f0f0f0;
    border-radius: 16px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    font-family: Arial, sans-serif;
  }

  .stock-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-right: 20px;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
}

  .stock-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .symbol {
    font-size: 28px;
    font-weight: bold;
    color: #ff5252;
  }

  .company {
    font-size: 20px;
    font-weight: 600;
    color: #ffd54f;
  }

  .trigger-price, .trigger-date, .profit {
    font-size: 18px;
    color: #e0e0e0;
  }

  .profit {
    font-weight: bold;
    color: #00e676;
  }
  
.moduletable h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  border-bottom: 2px solid red;
  padding-bottom: 4px;
}

.stock-success-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  font-family: Arial, sans-serif;
  border-radius: 8px;
  overflow: hidden;
}

.stock-success-table th {
  background-color: #007bff;
  color: white;
  padding: 10px;
  text-align: center;
}

.stock-success-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.stock-success-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Default: blur for guest users */
.blur-if-guest {
  color: transparent;
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
  pointer-events: none;
}

/* Responsive: Hide certain columns on small screens */
@media screen and (max-width: 768px) {
  .stock-success-table th.hide-mobile,
  .stock-success-table td.hide-mobile {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .card-body {
    --card-spacer-y: 0px !important;
    --card-spacer-x: 0px !important;
    padding: 0 !important;
  }
}

.welcome-message {
  background-color: #fff9c4; /* soft yellow */
  border: 1px solid #f1e58f;
  padding: 12px 20px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.welcome-message a {
  color: #c00;
  text-decoration: underline;
  font-weight: bold;
}

/* 📱 Mobile adjustments */
@media screen and (max-width: 768px) {
  .welcome-message {
    font-size: 0.95rem;
    padding: 2px 2px;
    border-radius: 0px;
  }
}

