/* 
  2VNET Suite Evolution - Master Design System
  One Theme to Rule All IT Tools
*/

:root {
  /* Core Palette (High Contrast / Hub Aligned) */
  --bg-dark: #0a0b10;
  --bg-card: rgba(17, 24, 39, 0.4);
  --bg-sidebar: rgba(10, 11, 16, 0.98); /* Deep Opaque Black */
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --accent-orange: #ff6b00;
  --accent-blue: #3b82f6;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);
  
  /* UI Tokens */
  --primary: var(--accent-orange);
  --accent: #ff8533;
  --success: #10b981;
  --error: #ef4444;
  --primary-glow: rgba(255, 107, 0, 0.25);
  --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Modal Core (Shared across all tools) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modalFade 0.2s ease-out;
}

.modal-content {
  background: rgba(15, 17, 24, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-actions {
  padding: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* 1. Global Reset & Body */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Inter', 'Outfit', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* 2. Global Form Elements (Suite-Wide Hardening) */
input, select, textarea {
  background-color: rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.15);
  background-color: rgba(0, 0, 0, 0.4);
}

option {
  background-color: #1a1b23;
  color: white;
}

button {
  cursor: pointer;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: var(--accent-orange) !important;
  color: white !important;
  border: none !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
}

.btn-primary:hover {
  background: #ff8533 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
}

/* 3. Utility Classes (Evolution Standards) */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.form-control {
  width: 100%;
  display: block;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* 4. Standard Layout Classes */
.dashboard {
  display: flex !important;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-dark) !important;
  background: radial-gradient(circle at 0% 0%, rgba(255,107,0,0.05) 0%, transparent 40%),
              radial-gradient(circle at 100% 100%, rgba(59,130,246,0.05) 0%, transparent 40%);
}

.main-layout-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  position: relative;
}

.main-area {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  position: relative;
  background-color: transparent;
}

/* 3. Universal Shared Components Styling */

/* Header (GlobalNav) */
.vnet-nav {
  height: 70px;
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 11, 16, 0.8);
  backdrop-filter: var(--glass-blur);
  z-index: 100;
}

.vnet-nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.vnet-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.vnet-nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.vnet-nav-link.active {
  color: var(--accent-orange);
  background: rgba(255, 107, 0, 0.1);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.1);
}

.vnet-nav-brand a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo {
  height: 32px;
}

.nav-tool-name {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.vnet-nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.suite-sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--bg-sidebar);
  backdrop-filter: var(--glass-blur); /* Glass restoration */
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 101;
  height: 100vh;
}

.sidebar-brand {
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-brand .brand-text {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.sidebar-section {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-search {
  padding: 1rem 1.25rem;
  display: flex;
  position: relative;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-search .search-icon {
  position: absolute;
  left: 2rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.sidebar-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s;
}

.sidebar-search-input:focus {
  border-color: var(--accent-orange);
  background: rgba(255, 107, 0, 0.05);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.1);
}

.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

/* Sidebar Identity Select (Fixed White Regression) */
.identity-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.identity-select:focus {
  border-color: var(--accent-orange);
  background: rgba(255, 107, 0, 0.05);
}

.identity-select option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

/* Sidebar Nav Items */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  cursor: pointer;
  transition: all 0.15s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(255, 107, 0, 0.1);
  color: var(--accent-orange);
  border-color: rgba(255, 107, 0, 0.2);
}

/* Pulse Feed */
.activity-pulse {
  overflow-y: auto;
}

.activity-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.item-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
  margin-top: 0.4rem;
  box-shadow: 0 0 10px var(--accent-orange);
}

.item-content {
  flex: 1;
}

.item-msg {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.item-time {
  font-size: 0.6rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Utilities */
.btn-primary {
  background: var(--accent-orange);
  color: white;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Active Timer & Identity Enhancements */
.identity-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid var(--border-color) !important;
  color: white !important;
  padding: 0.6rem !important;
  border-radius: 8px !important;
  margin-top: 0.5rem;
}

.active-timer {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 107, 0, 0.05) 100%);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.timer-info {
  flex: 1;
  min-width: 0;
}

.timer-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-orange);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.15rem;
}

.timer-subtitle {
  font-size: 0.7rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timer-stop {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: rgba(248, 113, 113, 0.1) !important;
  border: 1px solid rgba(248, 113, 113, 0.2) !important;
  color: #f87171 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border-radius: 8px !important;
  cursor: pointer;
}

.timer-stop:hover {
  background: rgba(248, 113, 113, 0.2) !important;
  transform: scale(1.05);
}

.stop-square {
  width: 10px;
  height: 10px;
  background: #f87171;
  border-radius: 1px;
}
