/* ==========================================================================
   SOYUNDEV DASHBOARD DESIGN SYSTEM (v2.0)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Default Light Theme (Day) */
  --nav-main-text:white;
  --primary-accent: #2563EB;      /* Fine electric blue */
  --primary-hover: #1D4ED8;
  --primary-light: rgba(37, 99, 235, 0.1);
  --deep-space: #0B132B;          /* Space blue for sidebar */
  --white: #FFFFFF;               /* Card backgrounds */
  --neutral-light: #F8FAFC;       /* App background base */
  --neutral-border: #E2E8F0;      /* Thin borders */
  --neutral-text-main: #0F172A;   /* Primary dark text */
  --neutral-text-sec: #475569;    /* Secondary dark text */
  --neutral-text-muted: #64748B;  /* Muted text */
  --input-bg: #F8FAFC;
  --input-border: #E2E8F0;
  
  /* Status Colors */
  --status-success: #10B981;
  --status-success-light: #D1FAE5;
  --status-failed: #EF4444;
  --status-failed-light: #FEE2E2;
  --status-pending: #F59E0B;
  --status-pending-light: #FEF3C7;
  --status-orange: #F97316;
  --status-orange-light: #FFEDD5;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Structure UI */
  --radius-card: 3px;
  --radius-input: 3px;
  --radius-button: 3px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.01);
  --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.05), 0 1px 5px rgba(0, 0, 0, 0.02);
  --shadow-overlay: 0 20px 50px rgba(2, 0, 35, 0.15);
}

/* Dark Theme (Night) Overrides */
html[data-theme="dark"] {
  --nav-main-text:white;
  --white: #0E1626;               /* Dark card background */
  --neutral-light: #080C14;       /* Dark app background */
  --neutral-border: #1E293B;      /* Dark border color */
  --neutral-text-main: #F8FAFC;   /* Main text white */
  --neutral-text-sec: #94A3B8;    /* Secondary text slate */
  --neutral-text-muted: #64748B;  /* Muted text gray */
  --deep-space: #090F1C;          /* Sidebar dark background */
  --input-bg: #0A0E1A;
  --input-border: #1E293B;

  --status-success-light: rgba(16, 185, 129, 0.1);
  --status-failed-light: rgba(239, 68, 68, 0.1);
  --status-pending-light: rgba(245, 158, 11, 0.1);
  --status-orange-light: rgba(249, 115, 22, 0.1);
  
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.3), 0 1px 5px rgba(0, 0, 0, 0.15);
  --shadow-overlay: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   1. RESET & SYSTEM DEFAULTS
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--neutral-light);
  color: var(--neutral-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  height: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--neutral-text-main);
  line-height: 1.25;
}

a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--primary-hover);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Local Google Fonts Material Symbols Outlined */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/material-symbols-outlined.ttf') format('truetype');
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
  
  /* Alignment and scale */
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Rotation animation for spinner icons */
.material-symbols-outlined.spinner {
  animation: spin 1s linear infinite;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   2. REUSABLE UTILITIES & COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--primary-accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--neutral-text-sec);
  border-color: var(--neutral-border);
}

.btn-secondary:hover {
  background-color: var(--neutral-light);
  color: var(--neutral-text-main);
  border-color: var(--neutral-text-muted);
}

.btn-danger {
  background-color: #EF4444;
  color: var(--white);
}

.btn-danger:hover {
  background-color: #DC2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-button);
}

/* Cards */
.card-soft {
  background: var(--white);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.card-soft:hover {
  box-shadow: var(--shadow-medium);
  border-color: rgba(37, 99, 235, 0.25);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background-color: var(--status-success-light);
  color: var(--status-success);
}

.badge-failed {
  background-color: var(--status-failed-light);
  color: var(--status-failed);
}

.badge-pending {
  background-color: var(--status-pending-light);
  color: var(--status-pending);
  animation: pulse-pending 2s infinite ease-in-out;
}

.badge-warning-orange {
  background-color: var(--status-orange-light);
  color: var(--status-orange);
}

.badge-yellow {
  background-color: var(--status-pending-light);
  color: var(--status-pending);
}

/* Tooltip System for Badges */
.badge[data-tooltip] {
  position: relative;
  cursor: pointer;
}

.badge[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 135%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background-color: var(--white);
  color: var(--neutral-text-main);
  padding: 6px 12px;
  border-radius: var(--radius-card);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  border: 1px solid var(--neutral-border);
}

.badge[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: 117%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  border-width: 6px;
  border-style: solid;
  border-color: var(--neutral-border) transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.badge[data-tooltip]:hover::before,
.badge[data-tooltip]:focus::before,
.badge[data-tooltip]:hover::after,
.badge[data-tooltip]:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes pulse-pending {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Logo styling */
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--neutral-text-main);
  display: inline-block;
}

.logo span {
  color: var(--primary-accent);
}

.logo-light {
  color: var(--white);
}

/* Form Controls */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--neutral-text-sec);
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i, .input-wrapper svg, .input-wrapper .material-symbols-outlined {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  font-size: 18px;
  color: var(--neutral-text-muted);
  pointer-events: none;
}

.input-wrapper input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px 12px 38px;
  border-radius: var(--radius-input);
  border: 1px solid var(--neutral-border);
  background-color: var(--neutral-light);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-group textarea, .form-group select {
  padding-left: 16px;
}

.input-wrapper input[type="date"] {
  font-family: var(--font-sans);
  color: var(--neutral-text-main);
  cursor: pointer;
  padding-left: 35px;
}

.input-wrapper input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary-accent);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

/* Loading Spinners */
.loading-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background-color: var(--neutral-light);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--neutral-border);
  border-top-color: var(--primary-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   3. AUTHENTICATION PAGES (Login / 2FA)
   ========================================================================== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, rgba(2, 0, 35, 0.02) 90%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-medium);
  background: var(--white);
  animation: auth-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes auth-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-tagline {
  color: var(--neutral-text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
  font-weight: 500;
}

.text-center {
  text-align: center;
}

.text-sec {
  color: var(--neutral-text-sec);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.qr-container {
  background-color: var(--neutral-light);
  padding: 16px;
  border-radius: var(--radius-card);
  display: inline-block;
  margin-bottom: 16px;
  border: 1px dashed var(--neutral-border);
}

.qr-container img {
  width: 180px;
  height: 180px;
  display: block;
}

.secret-container {
  background-color: var(--neutral-light);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  border: 1px solid var(--neutral-border);
}

.secret-container code {
  font-family: monospace;
  font-weight: 600;
  color: var(--primary-accent);
}

.otp-input {
  color: rgba(0, 0, 0, 0.88);
  max-width: 100%;
  text-align: center;
  font-size: 2rem !important;
  letter-spacing: 0.5em;
  padding-left: 16px !important;
  font-family: monospace;
  font-weight: 700;
}

/* ==========================================================================
   4. DASHBOARD SHELL LAYOUT
   ========================================================================== */
.dashboard-shell {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Sidebar Styling (Deep Space / Glassmorphism theme) */
.sidebar {
  width: 260px;
  background-color: var(--deep-space);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  padding: 24px 0;
}

.sidebar-header {
  padding: 0 24px 24px 24px;
  border-bottom: 0px solid transparent;
}

.sidebar-subtitle {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  margin-top: 4px;
}

.sidebar-nav {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-button);
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  transition: var(--transition-smooth);
}

.nav-item i, .nav-item .material-symbols-outlined {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--white);
}

.nav-item.active {
  background-color: var(--primary-accent);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.sidebar-footer {
  padding: 16px 24px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar i, .avatar .material-symbols-outlined {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-info .username {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-accent);
}

.user-info .role {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.btn-logout {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-button);
  transition: var(--transition-smooth);
}

.btn-logout:hover {
  color: #EF4444;
  background-color: rgba(239, 68, 68, 0.05);
}

/* Main Content Layout */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  background-color: var(--neutral-light);
}

/* Top Bar */
.topbar {
  padding: 24px 40px;
  background-color: var(--white);
  border-bottom: 1px solid var(--neutral-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.topbar-actions {
  display: flex;
  gap: 12px;
}

/* View Containers */
.view-container {
  padding: 40px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex-grow: 1;
  animation: view-fade-in 0.3s ease;
}

@keyframes view-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   5. OVERVIEW / DASHBOARD VIEWS
   ========================================================================== */

/* Stat Grid Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.primary {
  background-color: var(--primary-light);
  color: var(--primary-accent);
}

.stat-icon.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--status-success);
}

.stat-icon.warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--status-pending);
}

.stat-icon.danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--status-failed);
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neutral-text-main);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--neutral-text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* Tables styling */
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-custom th {
  padding: 14px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--neutral-text-muted);
  border-bottom: 2px solid var(--neutral-border);
  letter-spacing: 0.05em;
}

.table-custom td {
  padding: 16px;
  font-size: 0.9rem;
  color: var(--neutral-text-sec);
  border-bottom: 1px solid var(--neutral-border);
}

.table-custom tbody tr:hover {
  background-color: var(--neutral-light);
}

.table-custom td code {
  background-color: var(--neutral-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--neutral-text-main);
  border: 1px solid var(--neutral-border);
}

.renew-critical {
  color: var(--status-failed);
  font-weight: 600;
}

.renew-warning {
  color: var(--status-pending);
  font-weight: 600;
}

.mobile-sites-list {
  display: none;
}

/* ==========================================================================
   6. PROJECTS VIEW & CARDS
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.project-desc {
  color: var(--neutral-text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding: 16px;
  background-color: var(--neutral-light);
  border-radius: 8px;
  font-size: 0.85rem;
}

.project-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.project-detail-item span.label {
  color: var(--neutral-text-muted);
  font-weight: 500;
}

.project-detail-item span.value {
  color: var(--neutral-text-main);
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.project-card-footer {
  display: flex;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid var(--neutral-border);
  padding-top: 16px;
}

/* ==========================================================================
   7. MODALS & POPUPS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(2, 0, 35, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: modal-fade-in 0.25s ease;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  width: 100%;
  max-width: 580px;
  background-color: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-overlay);
  border: 1px solid var(--neutral-border);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  animation: modal-scale-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}

@keyframes modal-scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content-lg {
  max-width: 800px;
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--neutral-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.btn-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--neutral-text-muted);
  border-radius: 50%;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-close:hover {
  background-color: var(--neutral-light);
  color: var(--neutral-text-main);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--neutral-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Webhook Info Display inside Modal */
.webhook-info-block {
  background-color: var(--neutral-light);
  border: 1px solid var(--neutral-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.webhook-info-block label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neutral-text-muted);
  margin-bottom: 6px;
}

.webhook-code-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.webhook-code-wrapper code {
  flex-grow: 1;
  font-family: monospace;
  font-size: 0.85rem;
  background-color: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--neutral-border);
  word-break: break-all;
}

.btn-copy {
  background-color: var(--white);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-button);
  padding: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-copy:hover {
  background-color: var(--neutral-light);
  border-color: var(--neutral-text-muted);
}

/* Monospace output for logs */
.terminal-output {
  background-color: #0A0A16;
  color: #A9B2C3;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre-wrap;
  max-height: 480px;
  line-height: 1.4;
  border: 1px solid #1E1E38;
}

/* Responsive Grid Form */
.grid-form-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .grid-form-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================================================================
   8. RESPONSIVENESS AND COLLAPSIBILITY
   ========================================================================== */
@media (max-width: 992px) {
  .dashboard-shell {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
  }
  
  .sidebar-header {
    padding: 0 0 16px 0;
  }
  
  .sidebar-nav {
    flex-direction: row;
    padding: 12px 0 0 0;
    overflow-x: auto;
    gap: 12px;
  }
  
  .sidebar-footer {
    display: none; /* Hide profile in mobile layout sidebar bottom */
  }
  
  .topbar {
    padding: 16px 24px;
  }
  
  .view-container {
    padding: 24px;
  }
}

/* ==========================================================================
   9. GLOBAL SETTINGS AND ALERT BANNERS
   ========================================================================== */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: var(--radius-card);
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
  animation: view-fade-in 0.3s ease;
}

.alert-banner i, .alert-banner .material-symbols-outlined {
  width: 24px;
  height: 24px;
  font-size: 24px;
  flex-shrink: 0;
}

.alert-content {
  flex-grow: 1;
}

.alert-content h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.alert-content p {
  font-size: 0.85rem;
  line-height: 1.4;
}

.alert-danger {
  background-color: var(--status-failed-light);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-danger i, .alert-danger .material-symbols-outlined, .alert-danger h4 {
  color: var(--status-failed);
}

.alert-danger p {
  color: #7f1d1d;
}

.alert-warning {
  background-color: var(--status-pending-light);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-warning i, .alert-warning .material-symbols-outlined, .alert-warning h4 {
  color: var(--status-pending);
}

.alert-warning p {
  color: #78350f;
}

/* Settings Form elements */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

/* Avatar settings card */
.avatar-upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.avatar-preview-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-accent);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background-color: var(--neutral-light);
}

.avatar-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-overlay-trigger {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 0, 35, 0.6);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  gap: 4px;
}

.avatar-preview-wrapper:hover .avatar-overlay-trigger {
  opacity: 1;
}

.avatar-overlay-trigger .material-symbols-outlined {
  font-size: 24px;
}

.avatar-overlay-trigger span:not(.material-symbols-outlined) {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Canvas Crop Modal */
.crop-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.crop-canvas-wrapper {
  position: relative;
  background-color: #121824;
  border-radius: var(--radius-card);
  border: 1px solid var(--neutral-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  line-height: 0;
}

#crop-canvas {
  display: block;
  max-width: 100%;
  cursor: move;
}

.crop-zoom-control {
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.crop-zoom-control input[type="range"] {
  flex-grow: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--neutral-border);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.crop-zoom-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-accent);
  cursor: pointer;
  border: none;
}

.crop-zoom-control .material-symbols-outlined {
  color: var(--neutral-text-muted);
  font-size: 20px;
}

.info-card-text {
  font-size: 0.85rem;
  color: var(--neutral-text-muted);
  line-height: 1.5;
  margin-top: 8px;
}

/* ==========================================================================
   11. PROFILE SIDE DRAWER AND OVERLAY SYSTEM (BASE LAYOUT)
   ========================================================================== */
.mobile-profile-trigger {
  display: none; /* Hidden on desktop */
}

.profile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--deep-space);
  color: rgba(255, 255, 255, 0.8);
  box-shadow: -10px 0 30px rgba(2, 0, 35, 0.25);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-drawer.open {
  transform: translateX(-300px);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(2, 0, 35, 0.5);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.drawer-header .btn-close {
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.drawer-header .btn-close:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.user-profile-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 8px 0;
}

.avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.avatar-large i, .avatar-large .material-symbols-outlined {
  width: 32px;
  height: 32px;
  font-size: 32px;
}

.user-info-large .username {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.user-info-large .role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  margin-top: 2px;
  display: block;
}

.drawer-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-opt-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-button);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

.drawer-opt-btn:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.drawer-opt-btn i, .drawer-opt-btn .material-symbols-outlined {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.drawer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin: 8px 0;
}

.drawer-footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   10. MOBILE WEB LAYOUT FIXES (RESPONSIVENESS & UI/UX POLISH)
   ========================================================================== */

@media (max-width: 992px) {
  /* Sidebar Nav improvements */
  .sidebar-nav {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  
  .sidebar-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  .nav-item {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .sidebar-header {
    position: relative;
    padding-right: 48px;
  }

  .mobile-profile-trigger {
    display: inline-flex;
    position: absolute;
    top: -4px;
    right: 0;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition-smooth);
  }

  .mobile-profile-trigger:hover {
    background-color: var(--primary-accent);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
  }

  .mobile-profile-trigger i, .mobile-profile-trigger .material-symbols-outlined {
    width: 18px;
    height: 18px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
  }
  
  .topbar h1 {
    font-size: 1.3rem;
    width: 100%;
  }
  
  .topbar-actions {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
  
  #refresh-btn,
  #top-add-project-btn {
    display: inline-flex !important;
  }
  
  .view-container {
    padding: 16px;
  }
  
  /* Responsive Table to Cards conversion */
  .table-custom, 
  .table-custom thead, 
  .table-custom tbody, 
  .table-custom tr, 
  .table-custom td {
    display: block;
    width: 100%;
  }
  
  .table-custom thead {
    display: none; /* Hide table headers */
  }
  
  .table-custom tr {
    margin-bottom: 16px;
    border: 1px solid var(--neutral-border);
    border-radius: 6px;
    padding: 12px 16px;
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
  }
  
  .table-custom td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.85rem;
  }
  
  .table-custom td:last-child {
    border-bottom: none;
  }
  
  /* Text and link truncate in cards */
  .table-custom td > * {
    max-width: 60%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  
  /* Empty state table rows */
  .table-custom td[colspan] {
    display: block;
    text-align: center;
    padding: 30px 16px;
    max-width: 100%;
  }
  
  .table-custom td[colspan]::before {
    display: none !important;
  }
  
  /* Dynamic labels for overview table fields */
  #tab-overview-view .table-custom td:nth-of-type(1)::before { content: "Proyecto"; font-weight: 600; color: var(--neutral-text-muted); }
  #tab-overview-view .table-custom td:nth-of-type(2)::before { content: "Dominio"; font-weight: 600; color: var(--neutral-text-muted); }
  #tab-overview-view .table-custom td:nth-of-type(3)::before { content: "Renov. Dominio"; font-weight: 600; color: var(--neutral-text-muted); }
  #tab-overview-view .table-custom td:nth-of-type(4)::before { content: "Renov. Hosting"; font-weight: 600; color: var(--neutral-text-muted); }
  #tab-overview-view .table-custom td:nth-of-type(5)::before { content: "Última Act."; font-weight: 600; color: var(--neutral-text-muted); }
  #tab-overview-view .table-custom td:nth-of-type(6)::before { display: none !important; }

  /* Dynamic labels for logs table fields */
  #tab-logs-view .table-custom td:nth-of-type(1)::before { content: "ID"; font-weight: 600; color: var(--neutral-text-muted); }
  #tab-logs-view .table-custom td:nth-of-type(2)::before { content: "Proyecto"; font-weight: 600; color: var(--neutral-text-muted); }
  #tab-logs-view .table-custom td:nth-of-type(3)::before { content: "Rama"; font-weight: 600; color: var(--neutral-text-muted); }
  #tab-logs-view .table-custom td:nth-of-type(4)::before { content: "Origen"; font-weight: 600; color: var(--neutral-text-muted); }
  #tab-logs-view .table-custom td:nth-of-type(5)::before { content: "Commit"; font-weight: 600; color: var(--neutral-text-muted); }
  #tab-logs-view .table-custom td:nth-of-type(6)::before { content: "Autor"; font-weight: 600; color: var(--neutral-text-muted); }
  #tab-logs-view .table-custom td:nth-of-type(7)::before { content: "Fecha"; font-weight: 600; color: var(--neutral-text-muted); }
  #tab-logs-view .table-custom td:nth-of-type(8)::before { content: "Estado"; font-weight: 600; color: var(--neutral-text-muted); }
  #tab-logs-view .table-custom td:nth-of-type(9)::before { content: "Acción"; font-weight: 600; color: var(--neutral-text-muted); }
}

@media (max-width: 576px) {
  /* Project Card footer stacking & grid */
  .project-card-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .project-card-footer .btn-deploy-trigger {
    width: 100%;
    justify-content: center;
  }
  
  .project-card-footer .btn-webhook-info,
  .project-card-footer .btn-edit-project {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  
  .project-card-footer .btn-delete-project {
    flex: 0 0 auto;
    margin-left: 0;
    justify-content: center;
    padding: 8px 12px;
  }
  
  /* Alert Banners mobile stacking */
  .alert-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  
  .alert-banner button {
    width: 100%;
  }
  
  /* Modal responsive behavior */
  .modal-content {
    width: 92%;
    margin: 4%;
    max-height: 85vh;
  }
  
  .modal-body {
    padding: 16px;
  }
  
  .modal-footer {
    padding: 12px 16px;
  }
}

/* ==========================================================================
   12. NEW MOBILE UX & DAY/NIGHT REDESIGN (MOBILE SPECIFIC STYLES)
   ========================================================================== */

/* Date Input overrides & alignment */
input[type="date"] {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--neutral-text-main);
  border-radius: var(--radius-input);
  font-family: var(--font-sans);
  padding: 10px 12px;
  height: 46px;
  box-shadow: none;
}

/* Avatar Image formatting */
.avatar img, .avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--primary-accent);
  display: block;
}

/* drawer styles override */
.drawer-user-info-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.avatar-img-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-accent);
}

.drawer-user-text {
  display: flex;
  flex-direction: column;
}

.drawer-user-text .username {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--nav-main-text);
  line-height: 1.2;
}

.drawer-user-text .role {
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--primary-accent);
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: 2px;
}

.drawer-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.08em;
  margin: 16px 0 8px 0;
  display: block;
}

.profile-drawer {
  background-color: var(--deep-space);
  color: rgba(255, 255, 255, 0.8);
}

.drawer-opt-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.drawer-opt-btn.disabled:hover {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid #EF4444;
  color: #EF4444;
}

.btn-outline-danger:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}

/* General card theme improvements */
.card-soft {
  background-color: var(--white);
  border-color: var(--neutral-border);
  color: var(--neutral-text-main);
}

/* Mobile responsive navigation & UI components overrides */
@media (max-width: 992px) {
  .sidebar-nav {
    display: none !important;
  }
  
  .sidebar-footer {
    display: none !important;
  }
  
  .sidebar {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--neutral-border) !important;
    background-color: var(--white) !important;
    height: 56px !important;
  }
  
  .sidebar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 !important;
  }
  
  .sidebar-subtitle {
    display: none !important;
  }
  
  .logo-light {
    color: var(--neutral-text-main) !important;
  }
  
  .mobile-profile-trigger {
    position: static !important;
    display: inline-flex !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
  }
  
  .mobile-profile-trigger img {
    width: 32px;
    height: 32px;
  }
  
  /* Layout adjustments for fixed mobile elements */
  .main-content {
    padding-bottom: 80px !important;
    background-color: var(--neutral-light);
  }
  
  /* Mobile Tab Bar styles */
  .mobile-tab-bar {
    display: grid !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: var(--white);
    border-top: 1px solid var(--neutral-border);
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 0 12px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
  }
  
  .tab-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--neutral-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    height: 48px;
    border-radius: 6px;
    transition: var(--transition-smooth);
    width: 100%;
    max-width: 90px;
    margin: 0 auto;
  }
  
  .tab-item i, .tab-item svg, .tab-item .material-symbols-outlined {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: var(--neutral-text-muted);
  }
  
  .tab-item.active {
    background-color: var(--primary-accent) !important;
    color: var(--white) !important;
  }
  
  .tab-item.active i, .tab-item.active svg, .tab-item.active .material-symbols-outlined {
    color: var(--white) !important;
  }

  /* Bottom Sheet Overlay styling */
  .bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 140;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .bottom-sheet-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }
  
  /* Bottom Sheet menu panel drawer */
  .bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-top: 1px solid var(--neutral-border);
    padding: 8px 16px 80px 16px;
    z-index: 145;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .bottom-sheet.open {
    transform: translateY(0);
  }
  
  .bottom-sheet-drag-handle {
    width: 36px;
    height: 4px;
    background-color: var(--neutral-border);
    border-radius: 2px;
    margin: 8px auto 20px auto;
  }
  
  .bottom-sheet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .sheet-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background-color: var(--neutral-light);
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-card);
    color: var(--neutral-text-main);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
  }
  
  .sheet-btn:hover:not(.disabled) {
    border-color: var(--primary-accent);
    background-color: var(--white);
  }
  
  .sheet-btn i, .sheet-btn svg, .sheet-btn .material-symbols-outlined {
    width: 22px;
    height: 22px;
    font-size: 22px;
    color: var(--neutral-text-sec);
  }
  
  .sheet-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  /* Stats Grid vertical stacking on mobile */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .stat-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 20px !important;
    position: relative !important;
  }
  
  .stat-card::after {
    content: "›";
    position: absolute;
    right: 20px;
    font-size: 1.8rem;
    color: var(--neutral-text-muted);
    font-weight: 300;
    line-height: 1;
  }
  
  .stat-card:last-child::after {
    content: "";
    position: absolute;
    right: 20px;
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23EF4444" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .stat-details {
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }
  
  .stat-label {
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    margin: 0 !important;
    color: var(--neutral-text-muted) !important;
  }
  
  .stat-value {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--neutral-text-main) !important;
  }

  /* Target danger values for failed deploys */
  .stat-card:has(.stat-icon.danger) .stat-value {
    color: #EF4444 !important;
  }
  
  /* Project card representation on mobile */
  #tab-overview-view .table-responsive {
    display: none !important;
  }
  
  #tab-overview-view .mobile-sites-list {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .mobile-site-card {
    background-color: var(--white);
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-card);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .mobile-site-card .card-top {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .mobile-site-card .proj-icon-container {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background-color: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-accent);
    border: 1px solid rgba(37, 99, 235, 0.15);
  }
  
  .mobile-site-card .proj-icon-container .material-symbols-outlined {
    font-size: 20px;
  }
  
  .mobile-site-card .proj-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }
  
  .mobile-site-card .proj-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--neutral-text-muted);
    letter-spacing: 0.05em;
    line-height: 1;
  }
  
  .mobile-site-card .proj-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--neutral-text-main);
    line-height: 1.2;
  }
  
  .mobile-site-card .card-separator {
    height: 1px;
    background-color: var(--neutral-border);
    opacity: 0.6;
    width: 100%;
  }
  
  .mobile-site-card .card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .mobile-site-card .card-meta-left {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .mobile-site-card .status-icon {
    font-size: 18px;
  }
  
  .mobile-site-card .status-icon.renew-success {
    color: var(--status-success);
  }
  
  .mobile-site-card .status-icon.renew-warning {
    color: var(--status-pending);
  }
  
  .mobile-site-card .status-icon.renew-critical {
    color: var(--status-failed);
  }
  
  .mobile-site-card .update-info {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--neutral-text-muted);
  }
  
  .mobile-site-card .update-info .material-symbols-outlined {
    font-size: 16px;
  }
  
  .mobile-site-card .update-text {
    font-size: 0.8rem;
    font-weight: 500;
  }
  
  .mobile-site-card .badge-deploy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
  }
  
  .mobile-site-card .badge-deploy.success {
    color: var(--status-success);
  }
  
  .mobile-site-card .badge-deploy.failed {
    color: var(--status-failed);
  }
  
  .mobile-site-card .badge-deploy.pending {
    color: var(--status-pending);
  }
  
  .mobile-site-card .badge-deploy.none {
    color: var(--neutral-text-muted);
  }
  
  .mobile-site-card .badge-deploy .material-symbols-outlined {
    font-size: 16px;
  }
}




