/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  height: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #d1670e, #b8590c);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #d1670e, #b8590c);
  color: #ffffff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

/* Header matching landing page */
.topbar {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  height: 28px;
  border-radius: 4px;
}

/* Desktop/Laptop Improvements */
@media (min-width: 1024px) {
  .logo {
    height: 40px; /* Bigger logo for desktop */
  }
  
  .user-display {
    font-size: 1rem; /* Bigger user text */
    padding: 0.6rem 1.2rem;
  }
  
  .dropdown-item {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }
}

/* User dropdown matching landing page style */
.nav-links {
  display: flex;
  align-items: center;
}

.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-display {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
  display: block;
}

.user-display:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  min-width: 120px;
  z-index: 1000;
  margin-top: 2px;
}

.user-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.75rem;
  padding: 0.5rem 0.8rem;
  display: block;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}
.user-icon {
  font-size: 1.1em;
}

/* Remove old card/button styles if present */
.user-info, .user-card, .logout-card, .user-fancy, .logout-btn-fancy, .home-card {
  all: unset;
}

/* Main Content - Matching Landing Page */
.minimal-dashboard {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  position: relative;
  min-height: calc(100vh - 100px); /* Account for topbar and footer */
}

/* Background matching landing page */
.minimal-dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/solar-panels-sunrise-renewable-energy.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 1;
}

.minimal-title {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 95%;
  max-width: 300px;
}

.minimal-title h1 {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

/* Welcome Section */
.welcome-block {
  text-align: center;
  margin-bottom: 12rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}
.headline {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  position: relative;
  animation: welcomePop 0.9s ease-out 0.6s forwards;
}
.headline::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #ffa861;
  border-radius: 2px;
  margin: 1rem auto 0;
  animation: glowline 3s infinite alternate;
}
.subheadline {
  font-size: 1.05rem;
  font-weight: 400;
  color: #f0f0f0;
  max-width: 620px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Tool Card Grid */
.tool-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding-bottom: 3rem;
  animation: fadeInSlide 1s ease-out 0.6s both;
}

/* Tool Cards - Stylish Glassmorphism Version */
.tool-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  border: 2px solid rgba(255, 168, 97, 0.7);
  border-radius: 1.5rem;
  padding: 2rem;
  width: 240px;
  height: 180px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}
.tool-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 16px 32px rgba(255, 168, 97, 0.35);
  border-color: #ffb76b;
}
.tool-icon {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  background: #fff;
  color: #d1670e;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.tool-label {
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}

/* Footer matching landing page */
.footer {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.75rem 1rem;
  text-align: center;
  flex-shrink: 0;
}

.footer-container {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  margin-top: 0.25rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.75rem;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Footer responsive fixes removed - desktop layout always */

/* Coming Soon Cards */
.tool-card.coming-soon {
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  color: #ccc;
  cursor: not-allowed;
  position: relative;
  opacity: 0.6;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tool-card.coming-soon:hover {
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.tool-card.coming-soon .tool-icon {
  opacity: 0.4;
  filter: grayscale(1);
}

.tool-card.coming-soon .tool-label {
  color: #aaa;
  font-weight: 500;
}

.coming-soon-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff6b6b;
  color: white;
  font-size: 0.65em;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
  z-index: 1;
}

/* Mobile Fixes - Professional Design */
@media (max-width: 768px) {
  html {
    /* Ensure gradient covers full screen on mobile */
    min-height: 100vh;
    height: auto;
    background: linear-gradient(to bottom right, #d1670e, #665f52);
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
  }
  
  body {
    min-height: 100vh;
    background: transparent;
    overflow-x: hidden;
  }
  
  .dashboard-container {
    padding: 1rem 1rem 2rem;
    min-height: auto;
    display: block;
  }
  
  /* Professional Welcome Section */
  .title-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
  
  .headline {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    white-space: nowrap; /* Prevent wrapping */
    line-height: 1.2;
  }
  
  .subheadline {
    font-size: 1rem;
    font-weight: 400;
    color: #f0f0f0;
    margin: 0 auto;
    max-width: 90%;
    line-height: 1.4;
  }
  
  /* Professional Menu Cards */
  .main-menu-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .menu-option {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #ffa861;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
  }
  
  .menu-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 168, 97, 0.3);
    border-color: #d1670e;
  }
  
  .menu-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    display: block;
  }
  
  .menu-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
  }
  
  .menu-description {
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.3;
  }
  
  /* Mobile Navigation */
  .topbar {
    padding: 0.75rem 1rem;
  }
  
  .nav-links {
    gap: 0.75rem;
  }
  
  .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .nav-user {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .dashboard-container {
    padding: 1rem 0.75rem 2rem;
    min-height: auto;
  }
  
  .title-section {
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
  }
  
  .headline {
    font-size: 1.7rem;
    white-space: nowrap; /* Keep no wrap even on small screens */
    margin-bottom: 0.5rem;
  }
  
  .subheadline {
    font-size: 0.9rem;
    max-width: 95%;
    line-height: 1.3;
  }
  
  .main-menu-row {
    max-width: 360px;
    gap: 1rem;
  }
  
  .menu-option {
    padding: 1rem 1.25rem;
    border-radius: 10px;
  }
  
  .menu-icon {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
  }
  
  .menu-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: #ffffff;
  }
  
  .menu-description {
    font-size: 0.75rem;
    color: #ffffff;
    line-height: 1.1;
  }
  
  .topbar {
    padding: 0.5rem 0.75rem;
  }
  
  .nav-links {
    gap: 0.5rem;
  }
  
  .nav-link {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .nav-user {
    font-size: 0.85rem;
  }
}

/* Extra small mobile phones - 360px and below */
@media (max-width: 360px) {
  .dashboard-container {
    padding: 0.5rem 0.5rem 0.5rem;
    min-height: calc(100vh - 70px);
  }
  
  .title-section {
    margin-bottom: 1rem;
    padding: 0;
  }
  
  .headline {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
    letter-spacing: 0.2px;
  }
  
  .subheadline {
    font-size: 0.7rem;
    line-height: 1.1;
    max-width: 98%;
  }
  
  .main-menu-row {
    max-width: 320px;
    gap: 0.6rem;
  }
  
  .menu-option {
    padding: 0.7rem 0.8rem;
    border-radius: 6px;
  }
  
  .menu-icon {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }
  
  .menu-title {
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
  }
  
  .menu-description {
    font-size: 0.65rem;
    line-height: 1;
  }
  
  .topbar {
    padding: 0.4rem 0.5rem;
  }
  
  .nav-user {
    font-size: 0.8rem;
  }
  
  .nav-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* Animations */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes glowline {
  from {
    box-shadow: 0 0 6px #ffa861;
  }
  to {
    box-shadow: 0 0 16px #ffa861, 0 0 24px #ffb76b;
  }
}
@keyframes welcomePop {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  60% {
    opacity: 1;
    transform: scale(1.03) translateY(0);
  }
  100% {
    transform: scale(1);
  }
}

/* Card Glow Animations - Constant Orange Color */
@keyframes constantGlow {
  0% {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15), 0 0 15px rgba(255, 168, 97, 0.4);
  }
  100% {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15), 0 0 25px rgba(255, 168, 97, 0.6), 0 0 35px rgba(255, 168, 97, 0.3);
  }
}

@keyframes constantGlowIntense {
  0% {
    box-shadow: 0 15px 40px rgba(0,0,0,0.25), 0 0 25px rgba(255, 168, 97, 0.8), 0 0 45px rgba(255, 168, 97, 0.6);
  }
  100% {
    box-shadow: 0 15px 40px rgba(0,0,0,0.25), 0 0 35px rgba(255, 168, 97, 1), 0 0 55px rgba(255, 168, 97, 0.8);
  }
}

/* Title Section - Bigger and Centered */
.title-section {
    text-align: center;
    margin: 20px auto 25px auto;
    width: 100%;
}

.headline {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.subheadline {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Simple Dashboard Layout */
.title-section {
    text-align: center;
    margin: 1rem 0 1rem 0; /* Reduced margins to fit in viewport */
}

/* Dashboard Container */
.dashboard-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  overflow-y: auto;
}

/* Background matching landing page */
.dashboard-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/solar-panels-sunrise-renewable-energy.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
}

/* Title Section */
.title-section {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 2rem;
}

.headline {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.subheadline {
  font-size: 1.1rem;
  font-weight: 400;
  color: #f0f0f0;
  opacity: 0.9;
}

/* Main Menu Grid */
.main-menu-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 100px; /* Space for bottom nav */
}

/* Desktop Layout Improvements */
@media (min-width: 1024px) {
  .dashboard-container {
    padding: 3rem 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .headline {
    font-size: 3.5rem;
    margin-bottom: 2rem;
  }
  
  .main-menu-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    padding-bottom: 2rem;
  }
  
  .menu-option {
    padding: 2rem;
    min-height: 140px;
  }
  
  .menu-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }
  
  .menu-description {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .menu-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 1440px) {
  .dashboard-container {
    max-width: 1600px;
  }
  
  .main-menu-row {
    max-width: 1400px;
    gap: 2.5rem;
  }
}

.menu-option {
  background: linear-gradient(135deg, #ff8c42 0%, #d1670e 100%);
  border: none;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  box-shadow: 0 8px 32px rgba(209, 103, 14, 0.3);
  position: relative;
  overflow: hidden;
}

.menu-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ffb366 0%, #ff8c42 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(209, 103, 14, 0.4);
}

.menu-option:hover::before {
  opacity: 1;
}

.menu-icon {
  position: relative;
  z-index: 3;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 1;
}

.menu-title {
  position: relative;
  z-index: 3;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.menu-description {
  position: relative;
  z-index: 3;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.3;
}





/* Content Boxes - Smaller */
.content-box {
    background: transparent;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d1670e 0%, #ffa861 50%, #00b894 100%);
}

.content-box-tall {
    height: 100%;
}

.box-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    margin-top: 3px;
}

.box-subtitle {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 10px;
}

.chart-container-wireframe {
    margin-top: 10px;
}

/* Compact Energy Stats */
.energy-stats-compact {
    background: transparent;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

/* Energy Flow Compact */
.energy-flow-compact {
    background: transparent;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.energy-flow-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d1670e 0%, #ffa861 50%, #00b894 100%);
}

.flow-chart-container-small {
    height: 120px;
}

.energy-stats-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d1670e 0%, #ffa861 50%, #00b894 100%);
}

.stats-title-small {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    margin-top: 5px;
}

.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card-small {
    background: transparent;
    padding: 12px 10px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d1670e 0%, #ffa861 100%);
}

.stat-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.stat-value-small {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d1670e;
    margin-bottom: 4px;
}

.stat-label-small {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}

/* Energy Flow Analysis Section */
.energy-flow-section {
    background: transparent;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.energy-flow-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d1670e 0%, #ffa861 50%, #00b894 100%);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    margin-top: 5px;
}

.section-subtitle {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
}

.flow-chart-container {
    height: 60px;
}

/* Solar Chart Corner */
.solar-chart-corner {
    width: 450px;
}

.chart-container-corner {
    background: transparent;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.chart-container-corner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffa861 0%, #d1670e 100%);
}

.chart-title-small {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    margin-top: 5px;
}

.chart-subtitle-small {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.chart-container-corner canvas {
    max-height: 180px;
    width: 100%;
}

/* Responsive Design - Keep Side by Side */
@media (max-width: 1024px) {
    .main-content-grid {
        grid-template-columns: 400px 350px;
        gap: 40px;
        margin: 0 40px 40px 40px;
        width: calc(100% - 80px);
    }
    
    .right-column {
        margin-top: 20px;
    }
    
    .main-menu-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        max-width: 850px;
    }
    
    .headline {
        font-size: 2.8rem;
    }
}

@media (max-width: 900px) {
    .main-content-grid {
        grid-template-columns: 350px 300px;
        gap: 30px;
        margin: 0 20px 40px 20px;
        width: calc(100% - 40px);
    }
    
    .headline {
        font-size: 2.4rem;
    }
    
    .main-menu-row {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .bottom-tools-row {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }
    
    .headline {
        font-size: 2rem;
    }
}

/* Professional Compact Menu Options */
.main-menu-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px; /* Much wider to take up more screen space */
    margin: 1rem auto 1rem auto; /* Reduced margins to fit in viewport */
}

.menu-option {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 3px solid #ffa861;
    border-radius: 20px;
    padding: 50px 30px; /* Much bigger padding */
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px; /* Much taller cards */
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    font-size: 1.1rem;
    position: relative;
    animation: constantGlow 3s ease-in-out infinite alternate;
}

.menu-option:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    transform: translateY(-8px); /* Bigger hover lift */
    box-shadow: 0 15px 40px rgba(0,0,0,0.25), 0 0 30px rgba(255, 168, 97, 0.8), 0 0 50px rgba(255, 168, 97, 0.6);
    color: #fff;
    border-color: #ffa861;
    animation: constantGlowIntense 1.5s ease-in-out infinite alternate;
}

.menu-icon {
    font-size: 3.5rem; /* Much bigger icons */
    margin-bottom: 15px;
    opacity: 0.9;
}

.menu-title {
    font-size: 1.5rem; /* Bigger title text */
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.menu-description {
    font-size: 1rem; /* Bigger description text */
    opacity: 0.8;
    line-height: 1.3;
    max-width: 250px; /* Wider text area */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem 0.75rem;
    }
    
    .headline {
        font-size: 2rem;
    }
    
    .subheadline {
        font-size: 1rem;
    }
    
    .main-menu-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
        padding-bottom: 120px; /* More space for bottom nav on mobile */
    }
    
    .menu-option {
        min-height: 140px;
        padding: 1.5rem 1rem;
    }
    
    .menu-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .menu-title {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .menu-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 1rem 0.5rem;
    }
    
    .headline {
        font-size: 1.75rem;
    }
    
    .main-menu-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .menu-option {
        min-height: 120px;
        padding: 1.25rem 1rem;
    }
    
    .menu-icon {
        font-size: 1.75rem;
    }
    
    .menu-title {
        font-size: 1rem;
    }
    
    .menu-description {
        font-size: 0.75rem;
    }
}

/* Mobile-First Dashboard Responsive Styles */
@media screen and (max-width: 768px) {
    html, body {
        height: 100%;
        min-height: 100vh;
        overflow-x: hidden;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        background: transparent;
    }
    
    /* Professional Header */
    .topbar {
        padding: 1rem;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        box-shadow: 0 2px 20px rgba(0,0,0,0.1);
        min-height: 70px;
    }
    
    .logo {
        height: 32px;
    }
    
    .nav-links {
        gap: 0.75rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 8px;
        background: rgba(255,255,255,0.15);
        color: white;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(255,255,255,0.25);
        transform: translateY(-1px);
    }
    
    .nav-user {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        color: white;
        font-weight: 500;
    }
    
    /* Professional Dashboard Container */
    .dashboard-container {
        padding: 2rem 1rem;
        min-height: calc(100vh - 70px);
        background: transparent;
    }
    
    /* Modern Title Section */
    .title-section {
        margin-bottom: 2.5rem;
        text-align: center;
    }
    
    .headline {
        font-size: 1.75rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 0.75rem;
        letter-spacing: -0.5px;
    }
    
    .subheadline {
        font-size: 1rem;
        color: #6c757d;
        font-weight: 400;
        line-height: 1.5;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Professional Card Grid */
    .main-menu-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .menu-option {
        background: transparent;
        border: none;
        border-radius: 16px;
        padding: 1.5rem 1rem;
        text-decoration: none;
        color: #2c3e50;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        overflow: hidden;
        min-height: 140px;
        justify-content: center;
    }
    
    .menu-option::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #ff6b35, #f7931e);
        transform: translateX(-100%);
        transition: transform 0.4s ease;
    }
    
    .menu-option:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }
    
    .menu-option:hover::before {
        transform: translateX(0);
    }
    
    .menu-icon {
        font-size: 2.25rem;
        margin-bottom: 1rem;
        color: #ff6b35;
        transition: all 0.4s ease;
    }
    
    .menu-option:hover .menu-icon {
        transform: scale(1.15);
        color: #e55a2b;
    }
    
    .menu-title {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #2c3e50;
        line-height: 1.2;
    }
    
    .menu-description {
        font-size: 0.8rem;
        color: #6c757d;
        line-height: 1.4;
        text-align: center;
    }
    
    /* Professional Subscription Section */
    .subscription-section {
        margin-top: 2.5rem;
        padding: 2rem 1.5rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 20px;
        color: white;
        text-align: center;
        box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .subscription-section h3 {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .subscription-section p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        opacity: 0.9;
    }
    
    .subscribe-btn {
        background: transparent;
        color: #667eea;
        padding: 1rem 2rem;
        font-size: 0.95rem;
        font-weight: 600;
        border: none;
        border-radius: 12px;
        text-decoration: none;
        display: inline-block;
        transition: all 0.4s ease;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    
    .subscribe-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.25);
        color: #5a67d8;
    }
    
    .footer {
        padding: 1rem 0.5rem;
        font-size: 0.75rem;
        margin-top: auto;
    }
    
    .footer-links {
        margin-top: 0.5rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
}

/* Small mobile devices (Galaxy S9+ and similar) */
@media screen and (max-width: 480px) {
    /* Ultra-compact header */
    .topbar {
        padding: 0.3rem 0.5rem;
        min-height: 45px;
    }
    
    .logo {
        height: 22px;
    }
    
    .nav-links {
        gap: 0.2rem;
    }
    
    .nav-link {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .nav-user {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }
    
    /* Maximum space efficiency */
    .dashboard-container {
        padding: 0.3rem 0.5rem 0.5rem;
        min-height: calc(100vh - 50px);
    }
    
    /* Minimal title section */
    .title-section {
        margin: 0.1rem 0 0.5rem 0;
    }
    
    .headline {
        font-size: 1.1rem;
        margin-bottom: 0.1rem;
        font-weight: 600;
    }
    
    .subheadline {
        font-size: 0.65rem;
        line-height: 1.1;
        opacity: 0.7;
    }
    
    .main-menu-row {
        gap: 0.6rem;
        grid-template-columns: 1fr 1fr;
    }
    
    .menu-option {
        padding: 0.6rem 0.4rem;
        border-radius: 8px;
        max-width: 100%;
    }
    
    .menu-icon {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .menu-title {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
        line-height: 1;
    }
    
    .menu-description {
        font-size: 0.65rem;
        line-height: 1.1;
    }
    
    .footer {
        padding: 0.75rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Extra small phones (320px width) */
@media screen and (max-width: 360px) {
    /* Absolute minimal spacing */
    .topbar {
        padding: 0.2rem 0.4rem;
        min-height: 40px;
    }
    
    .logo {
        height: 20px;
    }
    
    .nav-link {
        padding: 0.15rem 0.3rem;
        font-size: 0.65rem;
    }
    
    .nav-user {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
    }
    
    .dashboard-container {
        padding: 0.2rem 0.4rem 0.4rem;
        min-height: calc(100vh - 45px);
    }
    
    .title-section {
        margin: 0.05rem 0 0.3rem 0;
    }
    
    .headline {
        font-size: 1rem;
        margin-bottom: 0.05rem;
        font-weight: 600;
    }
    
    .subheadline {
        font-size: 0.6rem;
        line-height: 1;
        opacity: 0.7;
    }
    
    .main-menu-row {
        gap: 0.6rem;
    }
    
    .menu-option {
        padding: 0.8rem 0.6rem;
        border-radius: 8px;
    }
    
    .menu-icon {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    
    .menu-title {
        font-size: 0.9rem;
        margin-bottom: 0.15rem;
    }
    
    .menu-description {
        font-size: 0.7rem;
        line-height: 1.1;
    }
}

/* Manager Option Styles - subtle orange border to distinguish from regular options */
.manager-option {
  border: 2px solid #ffffff !important;
  background: linear-gradient(135deg, #b8590c 0%, #a04d0a 100%) !important;
}

.manager-option:hover {
  border-color: #ffffff !important;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.75rem 0;
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
  min-width: 60px;
}

.nav-item.active {
  color: #ff8c42;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Subscription Banner Mobile Styles */
@media screen and (max-width: 768px) {
    .dashboard-container > div[style*="background: linear-gradient"] {
        margin: 1rem 0 !important;
        padding: 1rem !important;
        border-radius: 8px !important;
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    .dashboard-container > div[style*="background: linear-gradient"] a {
        display: block !important;
        margin: 0.5rem 0 0 0 !important;
        font-size: 0.9rem !important;
    }
}

@media screen and (max-width: 480px) {
    .dashboard-container > div[style*="background: linear-gradient"] {
        padding: 0.8rem !important;
        font-size: 0.8rem !important;
        margin: 0.8rem 0 !important;
    }
    
    .dashboard-container > div[style*="background: linear-gradient"] a {
        font-size: 0.85rem !important;
    }
}

