/* Custom Fonts */
@font-face {
  font-family: 'TagType';
  src: url('/tagtype-freefont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'RuthlessDrippin';
  src: url('/RuthlessDrippin1.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ADrip';
  src: url('/adrip1.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Import Google Fonts for readable options */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Roboto:wght@300;400;500;700&family=Open+Sans:wght@300;400;600;700&family=Poppins:wght@300;400;600;700&display=swap');

/* Font Options Classes */
.font-tagtype, .font-tagtype * {
  font-family: 'TagType', "Inter", system-ui, sans-serif !important;
}

.font-ruthless, .font-ruthless * {
  font-family: 'RuthlessDrippin', "Inter", system-ui, sans-serif !important;
}

.font-adrip, .font-adrip * {
  font-family: 'ADrip', "Inter", system-ui, sans-serif !important;
}

.font-inter, .font-inter * {
  font-family: 'Inter', system-ui, sans-serif !important;
}

.font-roboto, .font-roboto * {
  font-family: 'Roboto', system-ui, sans-serif !important;
}

.font-opensans, .font-opensans * {
  font-family: 'Open Sans', system-ui, sans-serif !important;
}

.font-poppins, .font-poppins * {
  font-family: 'Poppins', system-ui, sans-serif !important;
}

.font-system, .font-system * {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}

/* Ensure inputs, buttons, and textareas inherit the font */
.font-tagtype input, .font-tagtype button, .font-tagtype textarea, .font-tagtype select,
.font-ruthless input, .font-ruthless button, .font-ruthless textarea, .font-ruthless select,
.font-adrip input, .font-adrip button, .font-adrip textarea, .font-adrip select,
.font-inter input, .font-inter button, .font-inter textarea, .font-inter select,
.font-roboto input, .font-roboto button, .font-roboto textarea, .font-roboto select,
.font-opensans input, .font-opensans button, .font-opensans textarea, .font-opensans select,
.font-poppins input, .font-poppins button, .font-poppins textarea, .font-poppins select,
.font-system input, .font-system button, .font-system textarea, .font-system select {
  font-family: inherit !important;
}

/* Keep all existing login styles */
:root {
  --radius: 14px;
  --left-ratio: 3;
  --right-ratio: 1;
  --bg: #0d0d2b;
  --panel: #1a1a3d;
  --text: #ffffff;
  --muted: #a4a4c4;
  --accent: #2962ff;
  --accent-2: #7c4dff;
  --input-bg: rgba(255,255,255,0.08);
  --input-border: 0 0 0 1px rgba(255,255,255,0.1) inset;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font-family: 'TagType', "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  font-weight: 300;
}

#app {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--bg);
  position: relative;
}

/* Graffiti-style borders */
#app::before,
#app::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

#app::before {
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--primary) 20%, 
    var(--secondary) 50%, 
    var(--primary) 80%, 
    transparent 100%);
  animation: borderGlow 3s ease-in-out infinite;
}

#app::after {
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--secondary) 20%, 
    var(--primary) 50%, 
    var(--secondary) 80%, 
    transparent 100%);
  animation: borderGlow 3s ease-in-out infinite reverse;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.5; transform: scaleX(0.95); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* Side graffiti borders */
.dashboard-container::before,
.dashboard-container::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: 3px;
  pointer-events: none;
  z-index: 9998;
}

.dashboard-container::before {
  left: 0;
  background: linear-gradient(180deg, 
    transparent 0%, 
    var(--primary) 20%, 
    var(--secondary) 50%, 
    var(--primary) 80%, 
    transparent 100%);
  animation: borderGlowVertical 4s ease-in-out infinite;
}

.dashboard-container::after {
  right: 0;
  background: linear-gradient(180deg, 
    transparent 0%, 
    var(--secondary) 20%, 
    var(--primary) 50%, 
    var(--secondary) 80%, 
    transparent 100%);
  animation: borderGlowVertical 4s ease-in-out infinite reverse;
}

@keyframes borderGlowVertical {
  0%, 100% { opacity: 0.5; transform: scaleY(0.95); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Login Page Styles (keeping existing) */
.login-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
}

.left-side {
  flex: var(--left-ratio);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  height: 100vh;
}

/* Removed cityscape-bg as no longer needed */

/* Removed overlay as using light theme */

.mascot-container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mascot-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, 
    var(--bg) 0%, 
    transparent 100%);
  z-index: 3;
  pointer-events: none;
}

.mascot-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at center, 
    var(--accent) 0%, 
    var(--accent-2) 25%, 
    transparent 50%);
  filter: blur(60px);
  opacity: 0.6;
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite;
}

.mascot-glow::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: conic-gradient(from 45deg at center,
    var(--accent),
    var(--accent-2),
    transparent,
    var(--accent-2),
    var(--accent));
  filter: blur(80px);
  opacity: 0.4;
  animation: rotate-glow 8s linear infinite;
}

.graffiti-splatter {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -2;
  opacity: 0.3;
}

.graffiti-splatter::before,
.graffiti-splatter::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.graffiti-splatter::before {
  top: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: var(--accent);
  transform: rotate(-15deg) scaleX(1.5);
}

.graffiti-splatter::after {
  bottom: -20%;
  right: -15%;
  width: 250px;
  height: 250px;
  background: var(--accent-2);
  transform: rotate(25deg) scaleY(1.3);
}

@keyframes pulse-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

@keyframes rotate-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.mascot-container img {
  width: auto;
  height: 100vh;
  display: block;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.6))
          drop-shadow(0 0 80px var(--accent));
  position: relative;
  z-index: 2;
}

.right-side {
  flex: var(--right-ratio);
  display: grid;
  place-items: center;
  background: var(--panel);
  padding: 2.4rem 2rem;
  background:
    radial-gradient(600px 300px at 80% 20%, rgba(139,92,246,.18), transparent 60%),
    var(--panel);
  height: 100vh;
  overflow-y: auto;
}

.login-box {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  background: rgba(16, 17, 45, 0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .6rem;
  opacity: .9;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.3rem;
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 8px var(--accent-2);
}

h2 {
  margin: .2rem 0 1.4rem 0;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
}

h1 {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.12em;
}

h3 {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.1em;
}

label {
  display: block;
  margin: .3rem 0 .25rem;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

p {
  line-height: 1.8;
  letter-spacing: 0.06em;
  font-size: 1.15rem;
}

input, select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: var(--input-bg);
  padding: .55rem .75rem;
  border-radius: 10px;
  font-size: 1.1rem;
  box-shadow: var(--input-border);
  margin-bottom: .9rem;
  font-family: 'TagType', sans-serif;
  font-weight: 100;
  letter-spacing: 0.06em;
}

.btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  padding: .7rem .9rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 22px rgba(59,130,246,.35);
  transition: transform .06s ease, filter .2s ease;
}

.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.error-message {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: none;
}

.error-message.show {
  display: block;
}

/* Dashboard with Graffiti Style */
.dashboard-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  padding: 0;
  background: var(--bg);
  position: relative;
}

.dashboard-left {
  flex: 0 0 300px;
  width: 300px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--bg) 0%, var(--panel) 100%);
  border-right: 1px solid rgba(255,255,255,0.1);
}

.dashboard-mascot {
  height: 50vh;
  padding: 2rem;
}

.dashboard-mascot img {
  height: 100%;
  width: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.4))
          drop-shadow(0 0 40px var(--accent));
}

.sidebar-nav {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.sidebar-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: white;
}

.nav-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  text-align: left;
}

.sidebar-item img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.sidebar-item.active img,
.sidebar-item:hover img {
  opacity: 1;
}

.sidebar-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(5px);
  color: white;
}

.sidebar-item.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.nav-footer {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-right {
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
}

.dashboard-content {
  padding: 2rem 3rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Graffiti Style Elements */
.graffiti-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.5));
}

.graffiti-heading {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: white;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
}

.graffiti-card {
  background: rgba(255,255,255,0.05) !important;
  backdrop-filter: blur(20px);
  border: 2px solid var(--accent);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0,0,0,0.3),
              inset 0 0 20px rgba(255,255,255,0.05);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.graffiti-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at center,
    transparent,
    var(--accent),
    transparent,
    var(--accent-2),
    transparent);
  opacity: 0.1;
  animation: rotate-glow 10s linear infinite;
}

.graffiti-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent-2);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4),
              0 0 60px var(--accent);
}

.graffiti-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.graffiti-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.graffiti-button:hover::before {
  left: 100%;
}

.graffiti-panel {
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
}

.graffiti-panel::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent), var(--accent-2), var(--accent));
  border-radius: 20px;
  opacity: 0.5;
  z-index: -1;
  filter: blur(10px);
}

/* Keep existing styles but update */
.modern-dashboard {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.modern-nav {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.2rem;
}

.nav-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
}

.nav-item {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

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

.nav-item.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

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

.user-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

.btn-logout {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.3);
}

.modern-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.welcome-section {
  margin-bottom: 2rem;
}

.welcome-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.welcome-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s;
}

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

.stat-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon img {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.stat-content h3 {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 0.25rem;
}

.quick-actions {
  margin-bottom: 3rem;
}

.quick-actions h2 {
  margin-bottom: 1rem;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.action-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.action-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.action-icon {
  font-size: 2rem;
}

.action-icon-img {
  width: 48px;
  height: 48px;
  filter: invert(1);
  margin-bottom: 0.5rem;
}

.modern-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.repo-list {
  margin-top: 1rem;
}

.repo-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.repo-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.repo-name {
  font-weight: 600;
}

.repo-action {
  opacity: 0.5;
}

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

.page-header h1 {
  margin: 0;
}

.back-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 1rem;
}

.search-bar {
  margin-bottom: 1.5rem;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
}

.repository-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.repo-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  position: relative;
}

.repo-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.repo-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.repo-card h3 {
  margin: 0.5rem 0;
}

.repo-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.repo-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.action-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.action-btn.small {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.action-btn.delete {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #fca5a5 !important;
}

.tag-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tag-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag-name {
  font-weight: 600;
}

.tag-actions {
  display: flex;
  gap: 0.5rem;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
}

.modern-table th {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modern-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-admin {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
}

.badge-user {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--panel);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.graffiti-modal {
  background: rgba(26, 26, 61, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid var(--accent);
  box-shadow: 0 0 50px rgba(0,0,0,0.5),
              0 0 100px var(--accent);
  animation: modal-pop 0.3s ease-out;
}

@keyframes modal-pop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.graffiti-form label {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.graffiti-input {
  background: rgba(255,255,255,0.05) !important;
  border: 2px solid rgba(255,255,255,0.2) !important;
  color: white !important;
  padding: 0.75rem !important;
  border-radius: 10px !important;
  width: 100% !important;
  margin-bottom: 1rem !important;
  transition: all 0.3s;
}

.graffiti-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 20px var(--accent);
  outline: none;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.5;
}

.modal-close:hover {
  opacity: 1;
}

.instructions {
  margin-top: 1rem;
}

.instructions h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gradient1);
}

.instructions code {
  display: block;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  font-family: monospace;
  margin-bottom: 1rem;
  word-break: break-all;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.5);
}

.no-data, .error {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.5);
}

.no-data-card {
  text-align: center;
  padding: 3rem;
}

.no-data-card h3 {
  margin-bottom: 1rem;
}

.no-data-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

/* Mobile hamburger styles (hidden on desktop) */
.mobile-menu-toggle {
  display: none;
}

.mobile-overlay {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    width: 100%;
    justify-content: center;
  }
  
  .stats-section {
    grid-template-columns: 1fr;
  }
  
  .action-grid {
    grid-template-columns: 1fr;
  }
  
  .repository-grid {
    grid-template-columns: 1fr;
  }
  
  /* Dashboard mobile layout */
  .dashboard-container {
    flex-direction: row;
    height: 100vh;
    position: relative;
  }
  
  /* Mobile hamburger menu button */
  .mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary);
    border: 2px solid var(--text);
    padding: 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .mobile-menu-toggle:hover {
    transform: scale(1.1);
    background: var(--secondary);
  }
  
  .mobile-menu-toggle img {
    width: 24px;
    height: 24px;
    filter: invert(1);
  }
  
  /* Mobile sidebar overlay */
  .mobile-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
  
  .dashboard-left {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--panel);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-right: 3px solid var(--primary);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
  }
  
  .dashboard-left.mobile-menu-open {
    transform: translateX(280px);
  }
  
  .dashboard-mascot {
    height: 150px;
    margin: 2rem 1rem 1rem;
  }
  
  .dashboard-mascot img {
    height: 120px;
    width: auto;
  }
  
  .sidebar-nav {
    padding: 1rem;
  }
  
  .sidebar-nav .nav-items {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .sidebar-item {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    justify-content: flex-start;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  
  .sidebar-item img {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    margin-bottom: 0;
  }
  
  .dashboard-right {
    width: 100%;
    padding-top: 4.5rem;
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
  }
  
  .dashboard-header {
    padding: 1rem 0;
  }
  
  .dashboard-header h1 {
    font-size: 1.5rem;
  }
  
  /* Quick actions grid */
  .quick-actions {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .action-card {
    padding: 1.5rem 0.75rem;
  }
  
  .action-icon-img {
    width: 32px;
    height: 32px;
  }
  
  /* Repository cards */
  .repo-grid {
    grid-template-columns: 1fr;
  }
  
  /* Recent repositories */
  .recent-grid {
    grid-template-columns: 1fr;
  }
  
  .recent-list {
    max-height: none;
  }
}

@media (max-width: 1400px) {
  :root { --left-ratio: 2.5; --right-ratio: 1; }
}

@media (max-width: 1200px) {
  :root { --left-ratio: 2; --right-ratio: 1; }
  .login-box { max-width: 320px; }
}

@media (max-width: 980px) {
  :root { --left-ratio: 1.5; --right-ratio: 1; }
  .login-box { 
    max-width: 300px;
    padding: 1.5rem;
  }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .login-container { 
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
  }
  
  .left-side { 
    flex: none;
    height: 35vh;
    min-height: 250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .right-side { 
    flex: 1;
    height: auto;
    min-height: 65vh;
    padding: 2rem 1rem;
    width: 100%;
  }
  
  .mascot-container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mascot-container img {
    height: 80%;
    width: auto;
    max-width: 200px;
    object-fit: contain;
  }
  
  .mascot-glow {
    width: 150%;
    height: 150%;
  }
  
  .login-box {
    max-width: 100%;
    width: min(380px, 90%);
    margin: 0 auto;
  }
  
  /* Admin table mobile */
  .modern-table {
    font-size: 0.85rem;
    overflow-x: auto;
    display: block;
  }
  
  .modern-table th,
  .modern-table td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
  
  /* Modal on mobile */
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .left-side { 
    height: 30vh;
    min-height: 200px;
  }
  
  .mascot-container img { 
    height: 70%;
    max-width: 150px;
  }
  
  .login-box {
    padding: 1.25rem;
    width: 95%;
  }
  
  h2 { 
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  input {
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.65rem 0.8rem;
    font-size: 0.95rem;
  }
  
  /* Dashboard mobile adjustments */
  .dashboard-mascot {
    height: 80px;
  }
  
  .dashboard-mascot img {
    height: 60px;
  }
  
  .sidebar-item {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
  
  .sidebar-item img {
    width: 20px;
    height: 20px;
  }
  
  .dashboard-header h1 {
    font-size: 1.3rem;
  }
  
  /* Quick actions single column on very small screens */
  .quick-actions {
    grid-template-columns: 1fr;
  }
  
  .action-card {
    padding: 1.25rem;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .login-container { 
    flex-direction: row;
  }
  
  .left-side, .right-side {
    height: 100vh;
  }
  
  .mascot-container {
    width: min(300px, 50%);
  }
  
  .login-box {
    transform: scale(0.9);
  }
}

/* Tags and Layers View Styles */
.btn-back {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-2px);
}

.tags-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tag-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tag-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.tag-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tag-info h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
}

.tag-digest {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tag-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag-actions .action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.tag-actions .action-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.tag-actions .action-btn.delete:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* Image Info Grid */
.image-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.info-value {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

/* Config Section */
.config-section {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
}

.config-section strong {
  color: var(--accent);
  margin-right: 0.5rem;
}

.config-section code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

/* Layers List */
.layers-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.layer-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.layer-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.layer-number {
  background: var(--accent);
  color: var(--bg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.layer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.layer-digest {
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.layer-size {
  color: var(--muted);
  font-size: 0.85rem;
}

.layer-type {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Error Card */
.error-card {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.error-card h3 {
  color: #ef4444;
  margin: 0 0 1rem 0;
}

.error-card p {
  color: var(--muted);
  margin: 0 0 1.5rem 0;
}

.error-card .btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.error-card .btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--bg);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: slideIn 0.3s ease;
}

.notification.success {
  background: rgba(34, 197, 94, 0.9);
  color: white;
}

.notification.error {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Font Selector Styles */
.font-selector {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
}

.font-selector-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.font-selector-toggle:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.font-selector-menu {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: rgba(26, 26, 61, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  min-width: 250px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.font-selector-menu.active {
  display: block;
  animation: slideUp 0.3s ease;
}

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

.font-selector-title {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.font-option {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.font-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.font-option.active {
  background: var(--accent);
}

.font-option-name {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.font-option-preview {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.font-category {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1rem 0 0.5rem 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.font-category:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Layer Detail Modal */
.layer-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 2rem;
}

.layer-detail-content {
  background: var(--panel);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.layer-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.layer-detail-title {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 600;
}

.layer-detail-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.layer-detail-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.layer-detail-section {
  margin-bottom: 1.5rem;
}

.layer-detail-section h3 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.layer-detail-code {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--text);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* CVE Scanning Styles */
.cve-scan-button {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.cve-scan-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.cve-scan-button.scanning {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  cursor: not-allowed;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.cve-results {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cve-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cve-stat {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

.cve-stat.active {
  transform: translateY(-2px);
  border-color: currentColor;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.cve-stat-label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  pointer-events: none;
}

.cve-stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  pointer-events: none;
}

.cve-stat.critical .cve-stat-value {
  color: #dc2626;
}

.cve-stat.high .cve-stat-value {
  color: #f59e0b;
}

.cve-stat.medium .cve-stat-value {
  color: #fbbf24;
}

.cve-stat.low .cve-stat-value {
  color: #60a5fa;
}

.cve-list {
  max-height: 400px;
  overflow-y: auto;
}

.cve-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.cve-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

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

.cve-id {
  color: var(--accent);
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.cve-severity {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.cve-severity.critical {
  background: rgba(220, 38, 38, 0.2);
  color: #dc2626;
}

.cve-severity.high {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.cve-severity.medium {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.cve-severity.low {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

.cve-description {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* CVE Modal Styles */
.cve-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cve-modal-content {
  background: var(--panel);
  border-radius: 16px;
  max-width: 1200px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cve-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.cve-modal-title {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cve-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 1.5rem;
}

.cve-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.cve-modal-filters {
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cve-filter-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.cve-filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cve-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.cve-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.cve-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.cve-filter-btn.all {
  background: rgba(255, 255, 255, 0.1);
}

.cve-filter-btn.critical.active {
  background: #dc2626;
  border-color: #dc2626;
}

.cve-filter-btn.high.active {
  background: #f59e0b;
  border-color: #f59e0b;
}

.cve-filter-btn.medium.active {
  background: #fbbf24;
  border-color: #fbbf24;
  color: var(--bg);
}

.cve-filter-btn.low.active {
  background: #60a5fa;
  border-color: #60a5fa;
}

.cve-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.cve-modal-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.cve-modal-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cve-modal-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.cve-modal-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  transform: translateX(4px);
}

.cve-modal-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.cve-modal-item-id {
  color: var(--accent);
  font-weight: 600;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
}

.cve-modal-item-description {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.cve-modal-item-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.cve-modal-item-details strong {
  color: var(--text);
  margin-right: 0.25rem;
}

.cve-expand-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.cve-expand-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cve-no-results {
  text-align: center;
  color: var(--muted);
  padding: 3rem;
  font-size: 1.1rem;
}

/* Vulnerability badge styles */
.vuln-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 2;
}

.vuln-badge.critical {
  background: rgba(220, 38, 38, 0.9);
  border: 1px solid #dc2626;
}

.vuln-badge.high {
  background: rgba(245, 158, 11, 0.9);
  border: 1px solid #f59e0b;
}

.vuln-badge.medium {
  background: rgba(251, 191, 36, 0.9);
  border: 1px solid #fbbf24;
}

/* Layer card improvements */
.layer-command {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.layer-summary {
  color: var(--text);
  font-size: 0.85rem;
  opacity: 0.8;
  font-family: monospace;
  margin-bottom: 0.3rem;
}

.layer-info {
  flex: 1;
  min-width: 0; /* Allow shrinking */
  overflow: hidden;
}

.layer-detail-modal {
  max-width: 600px;
  width: 90%;
}

.layer-detail-modal .info-card {
  margin-bottom: 1rem;
}

.layer-detail-modal .mono {
  font-family: monospace;
}

.layer-modal-title {
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.layer-detail-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.layer-detail-section h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.layer-command-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--bg);
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
}

.layer-command-badge.run { background: #10b981; }
.layer-command-badge.copy { background: #3b82f6; }
.layer-command-badge.add { background: #8b5cf6; }
.layer-command-badge.workdir { background: #f59e0b; }
.layer-command-badge.env { background: #ec4899; }
.layer-command-badge.expose { background: #14b8a6; }
.layer-command-badge.cmd { background: #ef4444; }
.layer-command-badge.entrypoint { background: #f97316; }

.layer-command-details {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9rem;
  word-break: break-all;
  white-space: pre-wrap;
  color: var(--text);
}

.layer-info-grid {
  display: grid;
  gap: 1rem;
}

.layer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.layer-info-item .label {
  font-weight: 600;
  color: var(--muted);
  min-width: 100px;
}

.layer-info-item .value {
  flex: 1;
  color: var(--text);
  word-break: break-all;
}

.layer-info-item .value.mono {
  font-family: monospace;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}

.layer-context {
  display: flex;
  gap: 2rem;
}

.context-item {
  color: var(--text);
  font-size: 0.95rem;
}

/* Font Size Controls */
.font-size-controls {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.size-control-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.size-btn {
  background: var(--primary);
  color: var(--bg);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-btn:hover {
  transform: scale(1.1);
  background: var(--primary-hover);
}

.size-display {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  min-width: 60px;
  text-align: center;
}

.size-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.size-preset {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.size-preset:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
}

.size-preset.active {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}
