/* Complete redesign with dark mode, red/black/gold theme */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

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

:root {
  --color-black: #0a0a0a;
  --color-dark: #1a1a1a;
  --color-darker: #151515;
  --color-red: #dc2626;
  --color-red-dark: #991b1b;
  --color-red-bright: #ef4444;
  /* Enhanced gold colors for more gold accents */
  --color-gold: #fbbf24;
  --color-gold-dark: #d97706;
  --color-gold-light: #fcd34d;
  --color-gold-bright: #fde047;
  --color-gray: #404040;
  --color-gray-light: #525252;
  --color-gray-lighter: #737373;
  --color-white: #ffffff;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-darker) 50%, var(--color-dark) 100%);
  min-height: 100vh;
  color: var(--color-white);
}

/* Added subtle gold glow animation to body */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Header with enhanced gold accents */
.header {
  background: linear-gradient(135deg, var(--color-darker) 0%, var(--color-black) 100%);
  /* Enhanced shadow with gold */
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3), 0 2px 10px rgba(251, 191, 36, 0.2);
  margin-bottom: 30px;
  border-bottom: 2px solid var(--color-red);
  position: relative;
}

/* Added animated gold line on top of header */
.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo-small {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  /* Added animation to logo */
  animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.8));
  }
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.username-display {
  color: var(--color-gold);
  font-weight: 600;
  /* Added subtle glow to username */
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

/* Login Page with enhanced animations */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-box {
  background: linear-gradient(135deg, var(--color-darker) 0%, var(--color-black) 100%);
  padding: 50px 40px;
  border-radius: 20px;
  /* Enhanced shadow with more gold */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(220, 38, 38, 0.3), 0 0 20px rgba(251, 191, 36, 0.2);
  width: 100%;
  max-width: 420px;
  border: 2px solid var(--color-red);
  position: relative;
  overflow: hidden;
  /* Added subtle scale animation */
  animation: fadeInScale 0.5s ease-out;
}

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

.login-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  animation: borderAnimation 3s linear infinite;
}

@keyframes borderAnimation {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Added bottom border animation */
.login-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-red), transparent);
  animation: borderAnimationReverse 3s linear infinite;
}

@keyframes borderAnimationReverse {
  0% {
    right: -100%;
  }
  100% {
    right: 100%;
  }
}

.logo-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
}

.logo-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--color-red);
  border-radius: 50%;
  border-top-color: var(--color-gold);
  animation: spin 2s linear infinite;
  /* Added glow to ring */
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.5), inset 0 0 20px rgba(220, 38, 38, 0.3);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.logo-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 1px;
  /* Added glow to center text */
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.login-box h1 {
  text-align: center;
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 30px;
  font-size: 2rem;
}

/* Forms */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-gray);
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s;
  background: var(--color-black);
  color: var(--color-white);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-red);
  /* Enhanced focus glow with gold */
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3), 0 0 10px rgba(251, 191, 36, 0.2);
}

.form-row {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
  min-width: 200px;
  padding: 12px;
  border: 2px solid var(--color-gray);
  border-radius: 8px;
  background: var(--color-black);
  color: var(--color-white);
}

.form-row input:focus {
  outline: none;
  border-color: var(--color-red);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Buttons with enhanced animations */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

/* Added shine effect to buttons */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  color: white;
  width: 100%;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-red-bright) 0%, var(--color-red) 100%);
  transform: translateY(-2px);
  /* Enhanced hover shadow with gold */
  box-shadow: 0 6px 25px rgba(220, 38, 38, 0.6), 0 0 20px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
  background: var(--color-gray);
  color: white;
}

.btn-secondary:hover {
  background: var(--color-gray-light);
  transform: translateY(-2px);
}

.btn-admin {
  background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold) 100%);
  color: var(--color-black);
  /* Added gold glow */
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.btn-admin:hover {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-bright) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(251, 191, 36, 0.6);
}

.btn-danger {
  background: var(--color-red-dark);
  color: white;
}

.btn-danger:hover {
  background: var(--color-red);
  transform: translateY(-2px);
}

.btn-small {
  padding: 6px 14px;
  font-size: 12px;
}

.btn-icon {
  padding: 10px;
  border-radius: 8px;
}

/* Error Message */
.error-message {
  background: rgba(220, 38, 38, 0.2);
  color: var(--color-red-bright);
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--color-red);
  /* Added animation */
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

/* Dashboard */
.dashboard-content {
  background: linear-gradient(135deg, var(--color-darker) 0%, var(--color-black) 100%);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--color-red);
}

.dashboard-content h2 {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 30px;
  font-size: 2rem;
}

/* Completely redesigned stats section */
.stats-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px; /* Added margin to separate from next section */
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.stats-row-main {
  grid-template-columns: 1fr;
  max-width: 300px;
}

.stats-row-activity {
  grid-template-columns: repeat(3, 1fr);
}

.stats-section-title {
  color: var(--color-gold);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 10px;
  margin-bottom: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-gray);
}

.stat-card {
  background: var(--color-black);
  border: 1px solid var(--color-gray);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-card-large {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-darker) 100%);
  border: 2px solid var(--color-gold);
}

.stat-card-large .stat-number {
  font-size: 3rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-darker);
  color: var(--color-gray-lighter);
}

.stat-card-large .stat-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-gold) 100%);
  color: var(--color-white);
}

.stat-icon-gold {
  color: var(--color-gold);
}

.stat-icon-red {
  color: var(--color-red);
}

.stat-icon-green {
  color: #22c55e;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-gray-lighter);
  margin-top: 5px;
}

.stat-bar {
  width: 100%;
  height: 4px;
  background: var(--color-darker);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 5px;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold));
  border-radius: 2px;
  transition: width 0.5s ease;
}

.stat-bar-red {
  background: linear-gradient(90deg, var(--color-red-dark), var(--color-red));
}

.stat-bar-green {
  background: linear-gradient(90deg, #15803d, #22c55e);
}

.stat-card-activity {
  text-align: center;
  padding: 25px;
}

.stat-activity-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 10px;
}

.stat-activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.stat-dot-green {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.stat-dot-gold {
  background: var(--color-gold);
  box-shadow: 0 0 10px var(--color-gold);
}

.stat-dot-red {
  background: var(--color-red);
  box-shadow: 0 0 10px var(--color-red);
}

.stat-card-activity .stat-number {
  font-size: 2.5rem;
}

@media (max-width: 1024px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-row-activity {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-row,
  .stats-row-activity {
    grid-template-columns: 1fr;
  }
}

/* Square card design with enhanced hover animations */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
}

.site-card {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-darker) 100%);
  color: white;
  padding: 30px;
  border-radius: 15px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--color-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-gold) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.site-card:hover::before {
  opacity: 0.1;
}

.site-card:hover {
  transform: translateY(-10px) scale(1.05);
  /* Enhanced hover shadow with more gold */
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.5), 0 0 30px rgba(251, 191, 36, 0.4), 0 0 15px rgba(251, 191, 36, 0.2);
  border-color: var(--color-gold);
}

.site-icon {
  margin-bottom: 15px;
  color: var(--color-gold);
  position: relative;
  z-index: 1;
  /* Added pulse animation */
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.site-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--color-white);
  position: relative;
  z-index: 1;
}

.site-url {
  font-size: 0.75rem;
  color: var(--color-gold-light);
  word-break: break-all;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.site-card:hover .site-url {
  opacity: 1;
  transform: translateY(0);
}

.no-sites {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-gray-lighter);
}

.no-sites svg {
  color: var(--color-red);
  margin-bottom: 20px;
}

.no-sites p {
  font-size: 1.1rem;
}

/* Admin Panel */
.admin-content {
  background: linear-gradient(135deg, var(--color-darker) 0%, var(--color-black) 100%);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--color-red);
}

.admin-section {
  margin-bottom: 60px;
}

.admin-section h2 {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--color-red);
  font-size: 1.8rem;
}

.admin-section h3 {
  margin-bottom: 20px;
  color: var(--color-gold);
  font-size: 1.2rem;
}

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
  background: var(--color-black);
  border-radius: 10px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-gray);
}

.admin-table th {
  background: var(--color-darker);
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.admin-table tr:hover {
  background: rgba(220, 38, 38, 0.1);
  /* Added transition */
  transition: background 0.2s;
}

.admin-table code {
  background: var(--color-darker);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--color-gold-light);
  font-size: 0.85rem;
}

/* Forms */
.add-form {
  background: var(--color-black);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 25px;
  border: 2px solid var(--color-gray);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--color-white);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-red);
}

/* Permissions list design */
.permissions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--color-darker);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.permission-item:hover {
  background: rgba(220, 38, 38, 0.2);
  /* Added gold border on hover */
  border: 1px solid var(--color-gold);
  transform: translateX(5px);
}

.permission-item input[type="checkbox"] {
  accent-color: var(--color-red);
  cursor: pointer;
}

.permission-item span {
  font-size: 0.9rem;
  color: var(--color-white);
}

/* Badges */
.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-admin {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: var(--color-black);
  /* Added shadow */
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

.badge-user {
  background: var(--color-gray);
  color: var(--color-white);
}

.action-badge {
  padding: 4px 10px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid var(--color-red);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--color-red-bright);
}

.text-muted {
  color: var(--color-gray-lighter);
  font-style: italic;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(135deg, var(--color-darker) 0%, var(--color-black) 100%);
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 2px solid var(--color-red);
  /* Added animation */
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 2px solid var(--color-red);
}

.modal-header h3 {
  color: var(--color-gold);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--color-red);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
}

.modal-close:hover {
  color: var(--color-red-bright);
  transform: rotate(90deg);
}

.modal-content form {
  padding: 30px;
}

/* Added log filters styling */
.log-filters {
  background: var(--color-black);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  border: 2px solid var(--color-gray);
}

.filter-form {
  width: 100%;
}

/* Added pagination styling */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding: 20px;
}

.page-info {
  color: var(--color-gold);
  font-weight: 600;
  font-size: 1rem;
}

/* Logs */
.logs-table {
  font-size: 0.9rem;
}

.user-agent {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Added styles for new role management and user search features */

/* Role Cards */
.role-card {
  background: var(--color-black);
  border: 2px solid var(--color-gray);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.role-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 5px 20px rgba(251, 191, 36, 0.2);
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-gray);
}

.role-header h3 {
  color: var(--color-gold);
  margin: 0;
  font-size: 1.3rem;
}

.role-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.role-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Search Box */
.search-box {
  background: var(--color-black);
  padding: 20px;
  border-radius: 10px;
  border: 2px solid var(--color-gray);
  transition: all 0.3s;
}

.search-box:focus-within {
  border-color: var(--color-gold);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.search-box input {
  width: 100%; /* Added this to match form-group input style */
  padding: 14px 16px; /* Added this to match form-group input style */
  background: var(--color-darker);
  border: 2px solid var(--color-gray);
  border-radius: 8px;
  color: var(--color-white);
  font-size: 16px;
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3); /* Added to match form-group input focus */
}

/* Sync Result */
.sync-result {
  padding: 15px;
  background: var(--color-black);
  border-radius: 10px;
  border: 1px solid var(--color-gray);
}

.sync-result p {
  margin: 0;
  font-weight: 500;
}

/* Large Modal */
.modal-large {
  max-width: 700px;
}

/* Roles Overview Table */
.roles-overview {
  background: var(--color-black);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid var(--color-gray);
}

/* Sites Grid in Roles */
.role-form .sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  background: var(--color-darker);
  padding: 15px;
  border-radius: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.role-form .sites-grid .checkbox-label {
  padding: 8px 12px;
  background: var(--color-black);
  border-radius: 6px;
  transition: all 0.2s;
}

.role-form .sites-grid .checkbox-label:hover {
  background: rgba(220, 38, 38, 0.2);
}
