/* === Traffic Odyssey – Members Area : Rule 1 Layout (Refined Feb 13 2026) === */

:root {
  --gold:#ffc107;
  --deep-blue:#0b1d40;
  --mid-blue:#1e3c72;
  --cyan:#00f3ff;
  --text-light:#ffffff;
  --bg-dark:#060d22;
  --transition:0.3s ease;
}

/* --- Base / Background --- */
html {
  margin: 0;
  padding: 0;
  height: auto;
  min-height: 100%;
  font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  height: auto;
  min-height: 100vh;
  color: var(--text-light);
}

/* --- Top Bar (non-fixed) --- */
#global-topbar{
  position: static;   /* no longer fixed */
  height: 150px;      /* tall bar */
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  z-index: 1;
}

#global-topbar .bar-inner{
  max-width: 1600px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
}

#global-topbar h1{
  color: var(--gold);
  font-size: 1.3rem;
}

.top-logo{
  height: 59px;
  width: auto;
  margin-right: 5px;
}

.brand-title{
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold);
  margin-right: 20px;
}

.user-tag {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,193,7,0.3);
  border-radius: 20px;
  padding: 6px 18px;
  color: #b3c9ff;
  font-size: 0.8rem;
  font-weight: 400;
}


.brand-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Offset for topbar --- */
#page-container{
  padding-top: 0;
}

/* -------------------------------------------------- */
/* === RULE 1 → True 900 px center between floaters === */
/* -------------------------------------------------- */

.rule1-layout{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  min-height:100vh;
  position:relative;
}

/* === Left Floater === */
#sidebar {
  flex: 0 0 250px;
  margin-right: 50px;
  padding: 15px;
  box-sizing: border-box;
  background: linear-gradient(to bottom, var(--deep-blue), var(--mid-blue));
  border-radius: 12px;
  overflow-y: visible;
  box-shadow:
    8px 0 20px rgba(11, 29, 64, 0.9),
    inset 0 0 10px rgba(0, 255, 255, 0.15);
  transition: transform var(--transition), box-shadow var(--transition);
}

#sidebar:hover {
  transform: translateY(-3px);
  box-shadow: 8px 0 25px rgba(0, 255, 255, 0.25);
}

#sidebar ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

#sidebar li[data-page]{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 6px;
  cursor: pointer;
  color: #ffd966;
  background: rgba(255, 255, 255, 0.04);
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

#sidebar li[data-page]:hover{
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#sidebar li[data-page].active{
  background: rgba(0, 243, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 243, 255, 0.6);
}

/* icon + label */
.nav-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.nav-icon img{
  max-width: 18px;
  max-height: 18px;
  display: block;
}

.nav-label{
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
}

/* === Central Area === */
.main-area{
  flex:0 0 900px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display:flex;
  flex-direction:column;
  z-index:1;
}

.main-area:hover{
  transform:none;
  box-shadow:none;
}

/* === Distinct Floaters retained === */
#sidebar,#right-panel{
  background:linear-gradient(to bottom,var(--deep-blue),var(--mid-blue));
}

#right-panel:hover,#sidebar:hover{
  transform:translateY(-3px);
}

/* === Right Floater === */
#right-panel {
  flex:0 0 250px;
  margin-left:50px;
  padding: 15px;
  box-sizing: border-box;
  background:linear-gradient(to bottom,var(--deep-blue),var(--mid-blue));
  border-radius:12px;
  max-height:88vh;
  overflow-y:auto;
  overflow-x: hidden;
  word-wrap: break-word;
  box-shadow:
    -8px 0 20px rgba(11,29,64,0.9),
    inset 0 0 10px rgba(255,193,7,0.15);
  transition:transform var(--transition),box-shadow var(--transition);
  position:sticky;top:80px;
}

#right-panel:hover{
  transform:translateY(-3px);
}

#top-bar {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 10px 0 0;
}

#main-content {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 20px 0;
}

/* --- Responsive --- */
@media(max-width:1500px){
  .rule1-layout{
    flex-direction:column;
    align-items:center;
  }
  #sidebar,#right-panel{
    flex:0 0 auto;
    max-height:none;
    margin:20px 0;
  }
  .main-area{
    flex:0 0 95%;
    max-width:900px;
  }
}

/* === Sidebar Heading Refinements (Feb 12 2026) === */

/* Left sidebar section headings */
#sidebar h2,
#sidebar h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  margin: 18px 12px 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 193, 7, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Right panel heading */
#right-panel h2,
#right-panel h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  margin: 18px 12px 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 193, 7, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Fix right panel horizontal overflow */
#right-panel {
  overflow-x: hidden;
  word-wrap: break-word;
}

#right-panel > * {
  max-width: 100%;
  overflow-wrap: break-word;
}

/* Ensure right panel content doesn't break container */
#right-panel p,
#right-panel div,
#right-panel iframe,
#right-panel img {
  max-width: 100%;
  box-sizing: border-box;
}

/* Floating Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
  color: #1e3c72;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
  z-index: 1000;
}

/* Success/Error Message Notifications */
.message {
  padding: 15px 20px;
  margin: 20px auto;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  max-width: 700px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.message-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.message-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}


#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
}

/* Getting Started Help Panel */
.help-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    z-index: 9999;
    transition: right 0.4s ease;
    overflow-y: auto;
    border-left: 3px solid #ffc107;
}

.help-panel.active {
    right: 0;
}

.help-panel-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 20px;
    border-bottom: 2px solid #ffc107;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}


.help-panel-header h3 {
    color: #ffc107;
    margin: 0;
    font-size: 1.1rem;
}

.help-panel-close {
    background: rgba(244,67,54,0.3);
    border: 1px solid rgba(244,67,54,0.5);
    color: #ffcdd2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.help-panel-close:hover {
    background: rgba(244,67,54,0.5);
    transform: rotate(90deg);
}

.help-panel-content {
    padding: 20px;
}

.help-step {
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(255,193,7,0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 70px;
}

.step-number {
    position: absolute;
    left: 15px;
    top: 15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #1e3c72;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
}

.help-step h4 {
    color: #ffc107;
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.help-step p {
    color: #b3c9ff;
    margin: 0 0 15px 0;
    line-height: 1.6;
    font-size: 0.9rem;
}

.help-action-btn {
    padding: 8px 16px;
    background: rgba(77,208,225,0.3);
    border: 1px solid #4dd0e1;
    color: #4dd0e1;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.help-action-btn:hover {
    background: rgba(77,208,225,0.5);
    transform: translateX(3px);
}

.help-tip {
    background: rgba(77,208,225,0.1);
    border: 2px solid rgba(77,208,225,0.3);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.help-tip h4 {
    color: #4dd0e1;
    margin: 0 0 12px 0;
    font-size: 1rem;
}

.help-tip ul {
    margin: 0;
    padding-left: 20px;
    color: #b3c9ff;
    line-height: 1.8;
    font-size: 0.9rem;
}
/* Getting Started Pulsating Button */
.getting-started-btn {
    display: block;
    width: 100%;
    padding: 9px 14px;
    background: linear-gradient(135deg, #4dd0e1 0%, #26c6da 100%);
    border: 2px solid #4dd0e1;
    border-radius: 50px;
    color: #1e3c72;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(77, 208, 225, 0.3);
    animation: pulse 2s infinite;
}

.getting-started-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(77, 208, 225, 0.5);
    animation: none;
}

.getting-started-btn .btn-icon {
    font-size: 1rem;
    margin-right: 3px;
}

.getting-started-btn .btn-text {
    vertical-align: middle;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(77, 208, 225, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 25px rgba(77, 208, 225, 0.6);
        transform: scale(1.02);
    }
}

/* Spotlight Zone Styling */
.promo-box {
    background: linear-gradient(135deg, rgba(255,193,7,0.15) 0%, rgba(255,179,0,0.1) 100%);
    border: 2px solid rgba(255,193,7,0.4);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(255,193,7,0.2);
    transition: all 0.3s ease;
}

.promo-box:hover {
    border-color: rgba(255,193,7,0.6);
    box-shadow: 0 6px 20px rgba(255,193,7,0.3);
    transform: translateY(-2px);
}

.promo-box h3 {
    color: #ffc107;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,193,7,0.3);
    text-shadow: 0 2px 8px rgba(255,193,7,0.3);
}

.promo-box p {
    color: #b3c9ff;
    margin: 0;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
}
/* Styling for non-data-page clickable items */
#sidebar li.nav-item-clickable {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 6px;
  cursor: pointer;
  color: #ffd966;
  background: rgba(255, 255, 255, 0.04);
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

#sidebar li.nav-item-clickable:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
