:root {
  /* Dynamic Variable Fallbacks / Rich Deep Purple Configuration */
  --accent: #8b00ff;
  --accent-hover: #a033ff;
  --bg-gradient: linear-gradient(135deg, #120024, #1a0033);
  --container-bg: rgba(26, 0, 51, 0.98);
  --text: #e0e0e0;
  
  /* Layout Architecture Color Tokens Linked to Theme Customizations */
  --bg-dashboard: #120024;   /* Deep Midnight Purple */
  --bg-sidebar: #1a0033;     /* Rich Indigo/Violet */
  --border-color: #3b1d70;   /* Vibrant Purple Border */
  --text-main: #e8e0ff;
  --text-muted: #b39ddb;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-dashboard) !important;
  color: var(--text-main) !important;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.container { 
  border: 2px solid var(--accent-color, var(--accent)) !important; 
  background: var(--bg-sidebar) !important;
}

/* Dashboard Core Layout Fixes */
.dashboard {
  display: grid !important;
  grid-template-columns: 240px 1fr 280px; /* Fixed column sizes to guarantee structural split */
  min-height: 100vh;
  width: 100%;
  visibility: visible !important;
  position: relative;
  background: var(--bg-dashboard);
}

/* Sidebar Navigation Layout Realignment */
.left-nav {
  background: var(--bg-sidebar) !important;
  border-right: 1px solid var(--border-color) !important;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.logo {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 40px;
  color: var(--text-main);
  padding-left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  width: 100px;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  filter: drop-shadow(0 4px 12px var(--border-color));
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: rotate(-3deg) scale(1.05);
}

nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nav-item i {
  font-size: 1.1rem;
  width: 24px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--accent-color, var(--accent));
  padding-left: 22px;
}

.nav-item.active {
  background: var(--accent-color, var(--accent));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Main Content Area Layout Settings */
.main-content {
  background: var(--bg-dashboard);
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow-y: auto;
  position: relative;
  height: 100vh;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  background: var(--bg-sidebar) !important;
  border-bottom: 1px solid var(--border-color) !important;
  position: sticky;
  top: 0;
  z-index: 90;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.greeting h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.greeting p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 2px;
}

.search-bar {
  flex: 1;
  max-width: 450px;
  margin: 0 40px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 10px;
  outline: none;
  font-size: 15px;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px var(--border-color);
  border-color: var(--accent-color, var(--accent));
}

/* Featured Hero Styling Rules */
.hero {
  margin: 30px;
  padding: 60px;
  background: var(--bg-sidebar);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-color, var(--accent)) 0%, transparent 70%);
  opacity: 0.25;
  filter: blur(40px);
}

.hero-content {
  position: relative;
  z-index: 5;
}

.badge {
  background: var(--accent-color, var(--accent));
  color: white;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero h2 {
  font-size: 48px;
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
}

.hero p {
  color: var(--text-main);
  opacity: 0.9;
  font-size: 17px;
  max-width: 550px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 15px;
}

.hero-actions button {
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.play-btn {
  background: var(--accent-color, var(--accent)) !important;
  color: white;
}

.play-btn:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.2);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color) !important;
  backdrop-filter: blur(5px);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  border-color: var(--accent-color, var(--accent)) !important;
}

/* Quick Action Row Controls */
.random-section {
  padding: 0 30px 25px;
}

.quick-action-btn {
  width: 100%;
  padding: 18px 24px;
  background: var(--accent-color, var(--accent)) !important;
  border: none;
  border-radius: 15px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.quick-action-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--border-color);
}

/* Grid & Display Cards Configurations */
.section-title {
  padding: 0 30px;
  margin: 20px 0 25px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-grid, .games-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  padding: 0 30px 50px;
  min-height: 200px;
}

.game-card {
  position: relative;
  background: var(--bg-sidebar) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px;
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-clip: padding-box;
}

.game-card:hover {
  transform: translateY(-12px);
  border-color: var(--accent-color, var(--accent)) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.game-card h3 {
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  padding: 0 15px;
  z-index: 2;
}

.game-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  z-index: 2;
}

.game-desc-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dashboard);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.game-card:hover .game-desc-overlay {
  opacity: 1;
}

/* Profile Form Block Setup */
.profile-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.avatar-upload-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

#pfp-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.upload-inputs label {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.upload-inputs label:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
}

.upload-inputs input[type="file"] {
  display: none;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.username-static-display {
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-weight: bold;
}

.input-group textarea {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  color: white;
  font-family: inherit;
  resize: none;
  height: 80px;
  outline: none;
}

.input-group textarea:focus {
  border-color: var(--accent);
}

.meta-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0,0,0,0.15);
  padding: 15px;
  border-radius: 8px;
  font-size: 13px;
}

.info-row {
  display: flex;
  justify-content: space-between;
}

.info-row span {
  color: var(--text-muted);
}

.actions-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Unblockers Portal Cards Grid */
.unblocker-card {
  background: var(--bg-sidebar) !important;
  border: 1px solid var(--border-color) !important;
  padding: 20px;
  border-radius: 12px;
  width: 180px;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.unblocker-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color, var(--accent)) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(139, 0, 255, 0.2);
}

.unblocker-card h4 {
  color: var(--text-main);
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
}

.unblocker-card span {
  color: var(--accent-color, var(--accent));
  font-weight: bold;
  font-size: 14px;
  transition: color 0.2s ease;
}

.unblocker-card:hover span {
  color: var(--accent-hover);
}

/* Right Sidebar Rules */
.right-sidebar {
  background: var(--bg-sidebar) !important;
  border-left: 1px solid var(--border-color) !important;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.signin-btn, .settings-btn {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.signin-btn {
  background: var(--accent-color, var(--accent)) !important;
  color: white;
}

.signin-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--border-color);
}

.settings-btn {
  background: var(--bg-dashboard) !important;
  color: var(--text-muted);
  border: 1px solid var(--border-color) !important;
}

.settings-btn:hover {
  filter: brightness(1.2);
  border-color: var(--accent-color, var(--accent)) !important;
  color: var(--text-main);
}

/* Communications Block Module */
.form-wrapper {
  background: var(--bg-sidebar) !important; 
  border: 2px solid var(--accent-color, var(--accent)); 
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  margin: 20px 30px 40px;
  position: relative;
}

.form-title {
  color: var(--accent-color, var(--accent));
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 10px var(--border-color);
}

.form-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 40px;
  font-weight: 500;
}

.google-form-iframe {
  border-radius: 16px;
  background: #ffffff; 
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: block;
}

/* Global Navigation System Scrollbars */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dashboard);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
  border: 3px solid var(--bg-dashboard);
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color, var(--accent));
}

/* Responsive Adaptive Interface Adjustments */
@media (max-width: 1200px) {
  .dashboard {
    grid-template-columns: 80px 1fr 260px;
  }
  .logo span, .nav-item span { display: none; }
  .logo { justify-content: center; padding: 0; }
  .nav-item { justify-content: center; padding: 15px; }
  .terminal-container { display: none; }
}

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .left-nav, .right-sidebar { display: none; }
  .main-content { height: 100vh; }
  .hero { margin: 15px; padding: 30px; }
  .hero h2 { font-size: 32px; }
}

.flex-center { display: flex; align-items: center; justify-content: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.text-accent { color: var(--accent-color, var(--accent)); }
.bg-dark { background: var(--bg-dashboard) !important; }

/* Stealth Button Layout Alignment */
.cloak-btn {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: 1px solid var(--accent-color, var(--accent));
  color: var(--text-main);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cloak-btn:hover {
  background: var(--accent-color, var(--accent));
  box-shadow: 0 0 20px var(--border-color);
  transform: translateY(-2px);
}

/* Updates News Container Feed Parameters */
.news-sidebar {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: left;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0; 
  max-height: calc(100vh - 200px); 
}

.news-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-left: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.news-feed {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-grow: 1;
  overflow-y: hidden !important; 
  overflow-x: hidden !important;
  padding-right: 5px;
  scroll-behavior: smooth;
  min-height: 0;
}

.news-feed:hover {
  overflow-y: auto !important;
}

.news-feed::-webkit-scrollbar {
  width: 6px;
}

.news-feed::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.news-feed::-webkit-scrollbar-thumb {
  background: var(--accent-color, var(--accent));
  border-radius: 4px;
}

.news-feed::-webkit-scrollbar-thumb:hover {
  background: var(--text-main);
}

.news-card {
  background: var(--bg-dashboard) !important;
  border: 1px solid var(--border-color) !important;
  padding: 18px;
  border-radius: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0; 
}

.news-card:hover {
  border-color: var(--accent-color, var(--accent)) !important;
  background: var(--bg-sidebar) !important;
  transform: translateX(5px);
}

.news-tag {
  background: var(--accent-color, var(--accent));
  color: white;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.news-card p {
  font-size: 13.5px;
  margin-bottom: 12px;
  color: var(--text-main);
  line-height: 1.5;
}

.news-date {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.news-title::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseNews 2s infinite;
}

@keyframes pulseNews {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.news-card, .cloak-btn {
  animation: fadeInUpSmall 0.5s ease-out forwards;
}

@keyframes fadeInUpSmall {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fullscreen Academic Overlay Shield - Restored to keep it hidden until active */
#educational-cloak {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff !important;   
  background: #ffffff !important;
  z-index: 2147483647 !important;          
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Times New Roman', Times, serif;
  padding: 20px;
  box-sizing: border-box;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

/* Crucial safety classes to allow JavaScript to control overlay state */
.hidden {
  display: none !important;
}

.educational-content-card {
  background: #ffffff !important;
  border: 2px solid #000000 !important;              
  box-shadow: none;                                                        
  width: 90%;
  max-width: 950px;                                      
  height: 85vh;                                                           
  display: flex;
  flex-direction: column;
  border-radius: 0px;                                     
}

.educational-header {
  padding: 25px 35px 15px 35px;
  border-bottom: 2px solid #000000;       
  background: #ffffff;
}

.educational-header h1 {
  font-size: 1.65rem;
  margin: 0 0 6px 0;
  color: #000000 !important;              
  font-weight: bold;
  letter-spacing: -0.5px;
}

.academic-subheading {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000000 !important;              
  font-weight: bold;
}

.educational-scroll-body {
  padding: 30px 35px;
  overflow-y: auto;                                      
  flex-grow: 1;
  text-align: justify;
  line-height: 1.6;
}

.educational-scroll-body p {
  font-size: 1.05rem;
  margin: 0 0 20px 0;
  color: #000000 !important;              
}

.timer-subtext-sticky {
  padding: 15px 35px;
  background: #ffffff;                                    
  border-top: 2px solid #000000;          
  font-style: italic;
  font-size: 0.95rem;
  color: #000000 !important;              
  display: flex;
  align-items: center;
  justify-content: flex-end;            
}

.timer-subtext-sticky span {
  color: #000000 !important;              
  font-weight: bold;
  margin-left: 5px;
  font-size: 1.05rem;
}

.educational-scroll-body::-webkit-scrollbar {
  width: 8px;
}
.educational-scroll-body::-webkit-scrollbar-track {
  background: #ffffff;
}
.educational-scroll-body::-webkit-scrollbar-thumb {
  background: #000000;                    
}

/* Sidebar Embedded System Terminal Integration Styles */
.terminal-container {
  margin-top: auto; 
  background: var(--bg-dashboard) !important; 
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Courier New', Courier, monospace;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  width: 100%;
}

.terminal-header {
  background: var(--bg-sidebar);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-color);
}

.terminal-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.terminal-circle.red { background: #ff5f56; }
.terminal-circle.yellow { background: #ffbd2e; }
.terminal-circle.green { background: #27c93f; }

.terminal-title {
  color: var(--text-muted);
  font-size: 10px;
  margin-left: 4px;
}

.terminal-body {
  padding: 10px;
  height: 130px; 
  overflow-y: auto;
  font-size: 11px;
  color: var(--text-main); 
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.command-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.terminal-prompt {
  color: #10b981; 
  white-space: nowrap;
}

#terminalInput {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: var(--text-main);
  font-family: inherit;
  font-size: inherit;
  flex: 1;
  padding: 0;
  margin: 0;
}

#custom-context-menu {
  position: fixed;
  background: var(--bg-sidebar) !important;
  border: 1px solid var(--accent-color, var(--accent));
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  width: 160px;
  padding: 6px 0;
}

.context-menu-item {
  padding: 10px 16px;
  color: var(--text-main);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.context-menu-item:hover {
  background: var(--accent-color, var(--accent)) !important;
  color: white !important;
}

#ctx-delete:hover {
  background: #ff3333 !important;
}

.game-card.is-favorite {
  border-color: #ffd700 !important; 
}
.game-card.is-favorite::before {
  content: '★';
  position: absolute;
  top: 10px;
  right: 15px;
  color: #ffd700;
  font-size: 16px;
  z-index: 5;
}
/* ==========================================================================
   RESET & CORE BODY LAYOUT
   ==========================================================================
body {
  margin: 0;
  padding: 0;
  background-color: #141111; /* Clean deep slate-black tone 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  color: #ffffff;
  overflow-x: hidden;
}

==========================================================================
   TOP HOVER-EXPANDING NAVIGATION BAR
   ========================================================================== 
.top-nav-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 20px;
  position: relative;
  z-index: 100;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 15, 15, 0.75); /* Crimson translucent tint 
  border: 1px solid rgba(139, 0, 0, 0.25); /* Dark crimson border line 
  padding: 10px 20px;
  border-radius: 30px;
  backdrop-filter: blur(12px);
  
  /* Adjusted widths: Fits all 7 icons perfectly when resting 
  min-width: 340px; 
  max-width: 360px;
  height: 36px;
  
  /* Smooth widening transition 
  transition: max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              min-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              padding 0.3s ease;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Hide the old single trigger bolt since all icons show instantly now 
.nav-trigger-icon {
  display: none;
}

.nav-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  transition: gap 0.3s ease;
}

/* NAVIGATION LINKS BASE STYLE 
.nav-tab-item {
  display: flex;
  align-items: center;
  gap: 0px; /* Snug up close when text labels are hidden 
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HIDE LINK TEXT LABELS ENTIRELY BY DEFAULT *
.nav-tab-item .tab-text {
  max-width: 0px;
  opacity: 0;
  display: inline-block;
  overflow: hidden;
  margin-left: 0px;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.2s ease, 
              margin-left 0.3s ease;
}

/* ==========================================================================
   HOVER TRIGGERS: SMOOTHLY WIDEN BAR & SLIDE OUT TEXT Labels
   ========================================================================== *
.nav-bar:hover {
  min-width: 850px; /* Expands wider to give room to the text *
  max-width: 950px; 
  padding: 10px 25px;
}

.nav-bar:hover .nav-tabs-wrapper {
  gap: 14px; /* Spreads tabs apart cleanly when text is showing *
}

.nav-bar:hover .nav-tab-item {
  gap: 8px; /* Creates space between the SVG icon graphic and the text string *
}

.nav-bar:hover .nav-tab-item .tab-text {
  max-width: 150px; /* Slides open the text wrapper smoothly *
  opacity: 1;
  margin-left: 2px;
}

/* LINK BUTTON HIGHLIGHT EFFECTS *
.nav-tab-item:hover {
  color: #ffffff;
  background: rgba(255, 59, 59, 0.15);
}

.nav-tab-item.active {
  color: #ffffff;
  background: rgba(255, 30, 30, 0.3);
  border: 1px solid rgba(255, 59, 59, 0.4);
}

.tab-icon {
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   DASHBOARD SIDE PANELS & FLEX ARRANGEMENT
   ========================================================================== *
.dashboard-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px;
  box-sizing: border-box;
  width: 100%;
  gap: 30px;
}

.side-panel {
  width: 280px;
  min-height: 220px;
  background: rgba(22, 14, 14, 0.7); /* Translucent backing tint *
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 22px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.widget-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* WEATHER STYLING *
.weather-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.weather-temp {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
}

.weather-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.weather-stats i {
  color: #ff3b3b;
  margin-right: 2px;
}

.location-label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255, 59, 59, 0.7);
  font-weight: 600;
  margin-top: 4px;
}

/* ==========================================================================
   CENTRAL CONTENT AREA & INTERFACE
   ========================================================================== *
.main-hub {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 780px;
}

.site-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 10px 0 25px 0;
  background: linear-gradient(135deg, #ffffff 30%, #ffaaaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* REFINED SEARCH CONTAINER *
.search-container {
  position: relative;
  width: 500px;
  max-width: 100%;
  margin-bottom: 45px;
}

.search-glass {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  display: flex;
  align-items: center;
}

.search-container input {
  width: 100%;
  padding: 15px 20px 15px 44px;
  background: rgba(15, 10, 10, 0.6);
  border: 1px solid rgba(255, 59, 59, 0.2);
  border-radius: 28px;
  color: #fff;
  font-size: 15px;
  outline: none;
  backdrop-filter: blur(6px);
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.search-container input:focus {
  border-color: rgba(255, 59, 59, 0.6);
  box-shadow: 0 0 15px rgba(255, 59, 59, 0.15);
}

/* ==========================================================================
   SHORTCUT ICONS LAYOUT GRID
   ========================================================================== *
.apps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  width: 100%;
}

.app-card {
  background: rgba(25, 20, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  background: rgba(35, 22, 22, 0.7);
  border-color: rgba(255, 59, 59, 0.25);
}

.app-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Theme color accents for grids *
.fn-bg { background: #3b1b1b; border: 1px solid rgba(255,59,59,0.3); color: #ff5555; }
.gm-bg { background: #2b1b3b; border: 1px solid rgba(168,85,247,0.3); color: #b975ff; }
.mv-bg { background: #1b2b3b; border: 1px solid rgba(59,130,246,0.3); color: #5599ff; }
.ai-bg { background: #1b3b2b; border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.ms-bg { background: #3b3b1b; border: 1px solid rgba(234,179,8,0.3); color: #facc15; }
.rb-bg { background: #3b2b1b; border: 1px solid rgba(249,115,22,0.3); color: #fb923c; }

.app-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

/* ==========================================================================
   RIGHT SIDE FEATURED BOX INTERNALS
   ========================================================================== *
.featured-preview-box {
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, #421111, #1f0808);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 59, 59, 0.15);
}

.preview-placeholder {
  font-size: 32px;
  color: rgba(255, 59, 59, 0.4);
}

.featured-content h3 {
  margin: 0 0 6px 0;
  font-size: 17px;
  font-weight: 600;
}

.featured-content p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.4;
}

.widget-btn {
  display: block;
  text-align: center;
  margin-top: 18px;
  background: #ff3b3b;
  color: white;
  text-decoration: none;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 12px rgba(255, 59, 59, 0.25);
}

.widget-btn:hover {
  background: #ff5555;
  transform: scale(1.02);
}

 ==========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================== 
@media (max-width: 1150px) {
  .dashboard-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
  .side-panel {
    width: 100%;
    max-width: 500px;
    min-height: auto;
  }
  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.hidden {
    display: none !important;
}
*/
