/* Core Variable Declarations */
:root {
  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --bg-panel: #ffffff;
  --bg-input: #ffffff;
  
  --primary: #000000;
  --primary-hover: #1a1a1a;
  --primary-glow: rgba(0, 0, 0, 0.05);
  
  --success: #000000;
  --success-hover: #1a1a1a;
  --success-glow: rgba(0, 0, 0, 0.05);
  
  --danger: #ff3b30;
  --danger-hover: #d32f2f;
  --danger-glow: rgba(255, 59, 48, 0.15);
  
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.15);
  
  --text-main: #000000;
  --text-muted: #666666;
  --text-dark: #ffffff;
  
  --border-color: #e5e5e5;
  --border-hover: #000000;
  --border-glow: rgba(0, 0, 0, 0.05);
  
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Header */
.app-header {
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(9, 13, 22, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.4));
}

.brand h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Main Layout */
.app-main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.pulse-green {
  color: var(--success);
  text-shadow: 0 0 10px var(--success-glow);
  animation: pulse-dot 2s infinite;
}

.icon-blue { color: var(--primary); }
.icon-purple { color: #8b5cf6; }
.icon-pink { color: #ec4899; }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Projects Section */
.projects-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.search-bar input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  width: 280px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 15px var(--border-glow);
}

.project-card.running {
  --border-glow: rgba(16, 185, 129, 0.15);
}

.project-card.running:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

/* Project Info */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Badge System */
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-stopped {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.badge-running {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.1);
}

.badge-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Meta Data inside cards */
.project-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-val {
  color: var(--text-main);
  font-weight: 500;
  font-family: var(--font-mono);
}

/* Project Actions */
.project-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* Buttons */
.btn {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.btn-success {
  background: var(--success);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--success-glow);
}

.btn-success:hover {
  background: var(--success-hover);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--danger-glow);
}

.btn-icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-small {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-icon {
  font-size: 3rem;
  filter: drop-shadow(0 5px 15px rgba(59, 130, 246, 0.2));
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 400px;
  margin-bottom: 8px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity var(--transition-fast);
}

.modal-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  padding: 1.5rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: modal-zoom var(--transition-fast);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

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

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input[type="text"],
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
}

.checkbox-group input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2rem;
}

/* Slide-in Panels */
.panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 900;
  display: flex;
}

.panel-box {
  background: var(--bg-panel);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

/* Right-side Editor Panel */
.panel-right {
  width: 60%;
  min-width: 500px;
  max-width: 900px;
  height: 100%;
  margin-left: auto;
  border-left: 1px solid var(--border-color);
  animation: slide-right var(--transition-normal);
}

@media (max-width: 768px) {
  .panel-right {
    width: 100%;
    min-width: 100%;
  }
}

/* Bottom log console panel */
.panel-bottom {
  width: 100%;
  height: 50vh;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  animation: slide-bottom var(--transition-normal);
}

.panel-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.15);
}

.panel-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 4px;
}

.badge-terminal {
  background: #1e293b;
  border: 1px solid var(--border-color);
}

.panel-title-area h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.panel-title-area-horizontal {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-details {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.log-status-indicator {
  color: var(--text-muted);
}

.log-status-indicator.active {
  color: var(--success);
  text-shadow: 0 0 6px var(--success-glow);
  animation: pulse-dot 2s infinite;
}

.panel-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.panel-footer {
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.15);
}

.save-status {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-actions {
  display: flex;
  gap: 10px;
}

/* Monaco Editor Container */
#monaco-container {
  width: 100%;
  height: 100%;
  background-color: #1e1e1e;
}

.editor-body {
  padding: 0;
}

/* Console Styling */
.console-body {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.console-controls {
  padding: 0.5rem 1.5rem;
  background: #0b0f19;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.control-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.control-label input {
  accent-color: var(--primary);
}

.console-output {
  flex: 1;
  background: #05070c;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: 1.5rem;
  margin: 0;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(0);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.toast.show {
  animation: slide-in-toast var(--transition-fast) forwards;
}

.toast-success { border-color: var(--success); }
.toast-error { border-color: var(--danger); }
.toast-info { border-color: var(--primary); }

/* Helper classes */
.hidden {
  display: none !important;
}

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

/* Animations */
@keyframes pulse-dot {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

@keyframes modal-zoom {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slide-right {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slide-bottom {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes slide-in-toast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Footer Section */
.app-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* File/Folder Selector Inputs */
input[type="file"] {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
}

input[type="file"]::file-selector-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-right: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

input[type="file"]::file-selector-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

/* Split Pane Editor & File Explorer */
.split-editor-container {
  display: flex;
  height: 100%;
  overflow: hidden;
}

.editor-sidebar {
  width: 250px;
  border-right: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

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

.sidebar-header h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.btn-add-file {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.btn-add-file:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.file-tree {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  border-left: 3px solid transparent;
}

.file-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

.file-item.active {
  background: rgba(59, 130, 246, 0.08);
  border-left-color: var(--primary);
  color: var(--text-main);
  font-weight: 500;
}

.file-item-name {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.file-item-delete {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
  padding: 2px 4px;
  border-radius: 4px;
}

.file-item:hover .file-item-delete {
  opacity: 1;
}

.file-item-delete:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.15);
}

.editor-main-view {
  flex: 1;
  height: 100%;
  position: relative;
}

/* ==========================================
   Navigation Tabs & Views
   ========================================== */
.header-nav {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin: 0 1rem;
}

.nav-link {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.nav-link.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

/* Tab View Structure */
.tab-view {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeIn var(--transition-normal);
}

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

/* ==========================================
   Domain Page Layout
   ========================================== */
.domain-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .domain-grid-container {
    grid-template-columns: 1fr;
  }
}

.domain-card-pane {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pane-header h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 4px;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pane-header p {
  font-size: 0.85rem;
}

.input-action-group {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.input-action-group input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.input-action-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.separator {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 0;
}

.pane-subheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pane-subheader h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Diagnostics List */
.diagnostics-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.diag-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.diag-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.diag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.diag-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.diag-icon {
  font-size: 1.2rem;
}

.diag-title h4 {
  font-size: 0.95rem;
  font-weight: 500;
}

.diag-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Analytics Stats Mini Grid */
.stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-mini-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value-small {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Charts styling */
.charts-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chart-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chart-wrapper h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.chart-canvas-holder {
  position: relative;
  width: 100%;
  height: 200px;
}

.privacy-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  background: rgba(59, 130, 246, 0.03);
  border: 1px solid rgba(59, 130, 246, 0.1);
  padding: 10px 14px;
  border-radius: var(--radius-md);
}

/* ==========================================
   Cookie Consent Banner
   ========================================== */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 850px;
  background: rgba(13, 19, 32, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  z-index: 9999;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: slideUpCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpCookie {
  from { transform: translate(-50%, 100px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.cookie-banner-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.4));
}

.cookie-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
}

.cookie-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==========================================
   Order Management Styles
   ========================================== */
.orders-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow-x: auto;
  backdrop-filter: blur(8px);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.orders-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.orders-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: var(--text-main);
}

.orders-table tr:last-child td {
  border-bottom: none;
}

.orders-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
  color: #ffffff;
}

/* Detail Info Card Details */
.detail-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.detail-table-info td {
  padding: 6px 8px;
  vertical-align: top;
}

.detail-table-info td:first-child {
  padding-left: 0;
  width: 140px;
}

/* Image grid inside panel details */
.detail-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.detail-image-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: #000;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.detail-image-card:hover {
  border-color: var(--primary);
}

.detail-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.detail-image-card:hover img {
  transform: scale(1.08);
}

/* Color codes for specific order statuses */
.badge-status-new {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.badge-status-waiting {
  background: rgba(148, 163, 184, 0.1) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

.badge-status-paid {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.badge-status-design {
  background: rgba(139, 92, 246, 0.15) !important;
  color: #a78bfa !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
}

.badge-status-designdone {
  background: rgba(236, 72, 153, 0.15) !important;
  color: #f472b6 !important;
  border: 1px solid rgba(236, 72, 153, 0.3) !important;
}

.badge-status-print {
  background: rgba(6, 182, 212, 0.15) !important;
  color: #22d3ee !important;
  border: 1px solid rgba(6, 182, 212, 0.3) !important;
}

.badge-status-shipped {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.badge-status-completed {
  background: rgba(243, 244, 246, 0.05) !important;
  color: #9ca3af !important;
  border: 1px solid rgba(243, 244, 246, 0.15) !important;
}

.badge-status-problem {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}



