/* Reset and base layout */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e2f;
    color: #eaeaea;
  }
  
  /* Fixed Top Menu */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #002b5c;
    color: white;
    padding: 0.75rem 1.5rem;
    z-index: 1000;
  }
  
  .navbar .navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  
  .navbar .navbar-item {
    color: white !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
  }
  
  .navbar .navbar-item:hover {
    text-decoration: underline;
  }
  
  .section {
    padding: 2rem 1.5rem;
    padding-top: 5rem; /* space for fixed navbar */
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Status Boxes */
  .status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .status-box {
    background-color: #2d2f44;
    color: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    flex-grow: 1;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  }
  
  .status-box .label {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .status-box button {
    margin-top: 0.5rem;
    font-weight: bold;
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .status-box button:hover {
    background-color: #005bb5;
  }
  
  /* Profit Highlight */
  #current-profit {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00e676;
    margin: 2rem 0;
  }
  
  /* Panels (open positions, logs, etc) */
  .panel {
    background-color: #2a2b3d;
    border-radius: 6px;
    padding: 1rem;
    max-height: 320px;
    overflow-y: auto;
    color: #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }
  
  .panel::-webkit-scrollbar {
    width: 8px;
  }
  .panel::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
  }
  
  h2.title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
  }
  
  /* Form Styling (login/signup) */
  input[type="text"],
  input[type="email"],
  input[type="password"] {
    background-color: #2a2b3d;
    color: #ffffff;
    border: 1px solid #444;
    padding: 0.5rem;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  button[type="submit"], .button {
    background-color: #0066cc;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
  }
  
  button:hover, .button:hover {
    background-color: #005bb5;
  }
  
  /* Footer (if applicable) */
  footer {
    text-align: center;
    padding: 2rem;
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 4rem;
  }
  
  /* Calendar and Year Overview Layout */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
  
  .calendar-cell {
    background-color: #2d2f44;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #00e676;
  }
  
  .year-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .year-cell {
    background-color: #2a2b3d;
    border-radius: 6px;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #e0e0e0;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Menu: remove link underline */
.navbar .navbar-item {
    text-decoration: none !important;
  }
  
  /* Summary date-time-profit bar */
  .summary-header {
    margin-bottom: 1.5rem;
  }
  .summary-date-time {
    font-size: 1.1rem;
    color: #ccc;
  }
  .summary-profit {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00e676;
  }
  
  /* Daily calendar cell styles (already declared, just validate it's present) */
  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
  .calendar-cell {
    background-color: #2d2f44;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #00e676;
  }
  
  /* Fix top overlap */
.summary-section {
    padding-top: 6rem;
  }
  
  /* Calendar cell layout */
  .calendar-cell {
    background-color: #2d2f44;
    border-radius: 8px;
    padding: 0.5rem;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #e0e0e0;
  }
  
  .day-number {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 0.2rem;
  }
  
  .day-profit {
    font-size: 1rem;
    color: #00e676;
    font-weight: bold;
  }
  
  /* Weekday headers muted */
  .calendar-header .calendar-cell.muted {
    background: transparent;
    font-weight: bold;
    color: #5fdde5;
  }
  

  .summary-section {
    padding-top: 6rem; /* Enough space below the fixed navbar */
  }
  
  /* Header row: Date - Profit - Time */
  .header-row p {
    margin: 0;
  }
  
  .header-row .has-text-success {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00e676;
  }
  
  /* Calendar layout */
  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .calendar-header {
    margin-bottom: 0.5rem;
  }
  
  .calendar-cell {
    background-color: #2d2f44;
    border-radius: 8px;
    padding: 0.4rem;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #e0e0e0;
    font-weight: bold;
    font-size: 0.9rem;
  }
  
  .calendar-header .calendar-cell {
    background-color: transparent;
    color: #5fdde5;
    font-weight: 600;
  }
  
  /* Day numbers and profit */
  .day-number {
    font-size: 0.85rem;
    color: #cccccc;
  }
  
  .day-profit {
    margin-top: 0.2rem;
    font-size: 1rem;
    color: #00e676;
    font-weight: bold;
  }
  
  