.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.logo-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 2rem;
}

.logo-outer-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(139, 92, 246, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-accent);
  animation: spin 1.5s linear infinite;
}

.logo-inner-ring {
  position: absolute;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border: 3px solid rgba(139, 92, 246, 0.15);
  border-radius: 50%;
  border-top-color: var(--secondary-accent);
  animation: spinReverse 1.8s linear infinite;
}

.logo-center {
  position: absolute;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-center img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
  animation: pulse 2s ease-in-out infinite;
}

.loading-text {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.loading-text::after {
  content: "...";
  position: absolute;
  animation: dots 1.5s steps(5, end) infinite;
}

.progress-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 1.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  border-radius: 2px;
  transition: width 0.4s ease;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

@keyframes dots {
  0%, 20% { content: "."; }
  40% { content: ".."; }
  60%, 100% { content: "..."; }
}

:root {
  --bg-primary: #0a0c12;
  --header-bg: rgba(18, 21, 30, 0.95);
  --header-bg-hover: rgba(25, 29, 40, 0.98);
  --panel-bg: linear-gradient(145deg, #1a1e2a, #212838);
  --panel-solid: #1a1e2a;
  --sidebar-bg: linear-gradient(160deg, #151925, #1a1f2e);
  --sidebar-solid: #151925;
  --text-primary: #f0f2f6;
  --text-muted: #8b94b0;
  --primary-accent: #8b5cf6;
  --primary-accent-hover: #7c4dff;
  --secondary-accent: #3b82f6;
  --secondary-accent-hover: #2563eb;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --success: #10b981;
  --success-hover: #059669;
  --border-radius: 16px;
  --border-radius-sm: 12px;
  --border-radius-lg: 24px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.4);
  --scrollbar-thumb: #8b5cf6;
  --scrollbar-track: #151925;
  --glass-effect: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-glow: 0 0 15px rgba(139, 92, 246, 0.15);
}

[data-color-mode=light] {
  --bg-primary: #f8fafc;
  --header-bg: rgba(248, 250, 252, 0.95);
  --header-bg-hover: rgba(241, 245, 249, 0.98);
  --panel-bg: linear-gradient(145deg, #ffffff, #f1f5f9);
  --panel-solid: #ffffff;
  --sidebar-bg: linear-gradient(160deg, #f1f5f9, #e2e8f0);
  --sidebar-solid: #f1f5f9;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --glass-effect: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.08);
  --card-glow: 0 0 15px rgba(139, 92, 246, 0.1);
  --scrollbar-track: #f1f5f9;
}

[data-theme=default] {
  --primary-accent: #8b5cf6;
  --primary-accent-hover: #7c4dff;
  --scrollbar-thumb: #8b5cf6;
}

[data-theme=blue] {
  --primary-accent: #3b82f6;
  --primary-accent-hover: #2563eb;
  --scrollbar-thumb: #3b82f6;
}

[data-theme=green] {
  --primary-accent: #10b981;
  --primary-accent-hover: #059669;
  --scrollbar-thumb: #10b981;
}

[data-theme=red] {
  --primary-accent: #ef4444;
  --primary-accent-hover: #dc2626;
  --scrollbar-thumb: #ef4444;
}

[data-theme=orange] {
  --primary-accent: #f97316;
  --primary-accent-hover: #ea580c;
  --scrollbar-thumb: #f97316;
}

:root {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-accent-hover);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Rubik', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  background-image: url(DCbackground.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-blend-mode: overlay;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 75px 1fr;
  grid-template-areas: "header header" "sidebar main";
  transition: background-color 0.3s ease;
}

header {
  grid-area: header;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--header-bg);
  padding: 0 2rem;
  transition: var(--transition);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  height: 75px;
  border-bottom: 1px solid var(--glass-border);
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
}

.branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.branding:hover {
  transform: translateX(3px);
}

header img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.branding:hover img {
  transform: rotate(8deg) scale(1.05);
  border-color: var(--primary-accent);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.user-panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 200px;
  justify-content: flex-end;
}

.user-info {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  flex-direction: row; 
  flex-wrap: nowrap;
}

.user-info-header {
  flex-direction: row;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.95rem; 
  flex-wrap: nowrap;
  box-shadow: none;
}

.user-info img {
  flex-shrink: 0;
}

.user-info-button {
  background: var(--primary-accent);
  border: none;
  color: var(--text-primary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.user-info-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(30deg);
  opacity: 0;
  transition: var(--transition);
}

.user-info-button:hover {
  background: var(--primary-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.user-info-button:hover::before {
  opacity: 1;
}

.user-info-button:active {
  transform: translateY(0);
}

.user-details {
  position: absolute;
  top: 75px;
  right: 2rem;
  background: var(--panel-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  z-index: 100;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: var(--transition);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  width: 280px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.user-details.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.user-details div {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.user-details div:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.sidebar {
  grid-area: sidebar;
  background: var(--sidebar-bg);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-right: 1px solid var(--glass-border);
  height: calc(100vh - 75px);
  position: sticky;
  top: 75px;
  overflow-y: auto;
  transition: background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.server-selector {
  padding: 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}

.server-selector label {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select select {
  width: 100%;
  background: var(--panel-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Rubik', sans-serif;
  appearance: none;
  padding-right: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.custom-select::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-primary);
  pointer-events: none;
  transition: var(--transition);
}

.custom-select:hover::after {
  border-top-color: var(--primary-accent);
}

.custom-select select:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

[data-color-mode=light] .custom-select select {
  background: var(--panel-bg);
  border-color: var(--glass-border);
}

.custom-select select option {
  background: var(--panel-solid);
  color: var(--text-primary);
  padding: 0.5rem;
}

.custom-select select option:checked,
.custom-select select option:hover {
  background: var(--primary-accent);
  color: white;
}

.nav-menu {
  padding: 0.5rem 1.25rem;
  flex-grow: 1;
  overflow-y: auto;
}

.nav-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1.5rem 0 0.75rem 0;
  padding-left: 0.75rem;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 0.25rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.nav-item:hover {
  background: var(--glass-effect);
}

.nav-item:active {
  transform: scale(0.98);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), transparent);
  color: var(--primary-accent);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-accent);
  border-radius: 0 3px 3px 0;
}

.nav-item i {
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: inherit;
}

main {
  grid-area: main;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.1);
  height: calc(100vh - 75px);
  overflow-y: auto;
  transition: background-color 0.3s ease;
}

#dashboard-content {
  display: block;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.server-info {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.server-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-right: 1.5rem;
  object-fit: cover;
  border: 3px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.server-info:hover .server-icon {
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.server-meta h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--text-primary), var(--primary-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.server-meta p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification.success {
  background-color: #10B981;
  border-left: 4px solid #059669;
}

.notification.error {
  background-color: #EF4444;
  border-left: 4px solid #DC2626;
}

.notification i {
  font-size: 18px;
}

.dashboard-card {
  background: var(--panel-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  transition: background-color 0.3s ease;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
}

.dashboard-card h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.dashboard-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-card {
  background: var(--panel-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.feature-card p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-content {
  display: none;
  background: var(--panel-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  transition: background-color 0.3s ease;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.feature-content.mod-logs-feature,
.feature-content.mod-logs-feature.active {
  display: block;
  max-width: none;
  width: 100%;
  padding: 2rem;
  text-align: center;
  margin: 0;
  animation: fadeIn 0.3s ease;
}

.mod-logs-container-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.feature-content h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--text-primary), var(--primary-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.feature-content p {
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.feature-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  color: var(--text-primary);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(30deg);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover {
  background: linear-gradient(135deg, var(--primary-accent-hover), var(--secondary-accent-hover));
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(0);
}

.btn i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.btn-center-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
}

.loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-accent) 0, var(--secondary-accent) 100%);
  z-index: 9999;
  transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.full-page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-accent);
  animation: spin 1s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.mobile-menu-toggle {
  display: none;
  background: 0 0;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  padding: 0;
  margin-right: 1rem;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0);
  transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
  top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 10px;
}

.mobile-menu-toggle span:nth-child(3) {
  top: 20px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  left: -20px;
}

.mobile-menu-toggle.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

.sidebar-overlay {
  position: fixed;
  top: 75px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.sidebar-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.theme-controls {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
}

.theme-picker {
  background: var(--panel-bg);
  padding: 10px;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.theme-options {
  display: flex;
  gap: 8px;
  align-items: center;
}

.theme-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.theme-option::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(30deg);
  opacity: 0;
  transition: var(--transition);
}

.theme-option:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.theme-option:hover::before {
  opacity: 0.3;
}

.theme-option.active {
  border-color: var(--text-primary);
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.theme-option.active::before {
  opacity: 0.5;
}

.mode-toggle {
  background: var(--panel-bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-left: 8px;
  border: 1px solid var(--glass-border);
}

.mode-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.admin-btn {
  position: fixed;
  bottom: 90px;
  right: 25px;
  z-index: 1000;
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.admin-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.admin-btn:active {
  transform: translateY(0);
}

.admin-btn i {
  font-size: 1.2rem;
}

.automod-settings {
  max-width: 900px;
  margin: 2rem auto;
}

.setting-card {
  background: var(--panel-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.setting-card:hover {
  box-shadow: var(--shadow-md);
}

.setting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.setting-header h3 {
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.setting-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--glass-border);
  transition: var(--transition);
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: var(--text-primary);
  transition: var(--transition);
  border-radius: 50%;
}

input:checked + .slider {
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.word-list-container {
  margin-top: 1rem;
}

.word-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.word-list-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.word-item {
  background: rgba(139, 92, 246, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.word-item:hover {
  background: rgba(139, 92, 246, 0.25);
}

.word-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 0.8rem;
  transition: var(--transition);
}

.word-remove-btn:hover {
  color: var(--danger);
}

.add-word-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.add-word-form input {
  flex-grow: 1;
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
}

.btn-cancel {
  background: var(--glass-border) !important;
}

.punishment-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.punishment-option {
  background: rgba(139, 92, 246, 0.08);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.punishment-option:hover {
  background: rgba(139, 92, 246, 0.15);
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.radio-option input {
  display: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: var(--transition);
}

.radio-option input:checked + .radio-custom {
  border-color: var(--primary-accent);
  background-color: var(--primary-accent);
}

.radio-option input:checked + .radio-custom::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.punishment-details {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--glass-border);
  margin-left: 2rem;
}

.punishment-details label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.punishment-details select,
.punishment-details textarea {
  width: 100%;
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
}

.punishment-details textarea {
  min-height: 80px;
  resize: vertical;
}

.unsaved-changes-bar {
  position: sticky;
  bottom: 20px;
  background: var(--panel-bg);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--primary-accent);
  animation: fadeInUp 0.3s ease;
  z-index: 10;
}

.unsaved-message {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-accent);
  font-weight: 600;
}

.unsaved-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-reset {
  background: var(--glass-border) !important;
}

select#guilds option {
  padding-left: 40px !important;
  height: 32px !important;
  line-height: 32px !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: 32px 32px !important;
}

.custom-select select {
  background-color: transparent !important;
}

.ticket-preview-modal {
  position: fixed;
  border-radius: var(--border-radius);
  top: 0;
  left: 0;
  width: 80%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ticket-preview-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.ticket-preview-container {
  background-color: var(--panel-solid);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  margin-bottom: 2rem;
}

.ticket-preview-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-preview-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.ticket-preview-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.ticket-preview-close:hover {
  color: var(--primary-accent);
}

.ticket-preview-content {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ticket-preview-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: flex-end;
}

.ticket-preview-embed {
  background-color: var(--panel-bg);
  border-radius: var(--border-radius-sm);
  padding: 15px;
  border-left: 4px solid var(--primary-accent);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.ticket-preview-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.ticket-preview-author-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.ticket-preview-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ticket-preview-description {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.ticket-preview-image {
  max-width: 100%;
  border-radius: var(--border-radius-sm);
  margin-top: 5px;
}

.ticket-preview-thumbnail {
  float: right;
  margin-left: 16px;
  margin-bottom: 10px;
}

.ticket-preview-thumbnail img {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
}

.ticket-preview-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.ticket-preview-footer-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.ticket-preview-url {
  color: var(--primary-accent);
  text-decoration: none;
  font-size: 0.85rem;
  margin-top: 5px;
  display: inline-block;
}

.ticket-preview-url:hover {
  text-decoration: underline;
}

.ticket-preview-button {
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  align-self: center;
  margin-top: 15px;
}

.ticket-preview-button.primary {
  background-color: var(--primary-accent);
  color: white;
}

.ticket-preview-button.primary:hover {
  background-color: var(--primary-accent-hover);
}

.ticket-preview-button.secondary {
  background-color: var(--secondary-accent);
  color: white;
}

.ticket-preview-button.secondary:hover {
  background-color: var(--secondary-accent-hover);
}

.ticket-preview-button.success {
  background-color: var(--success);
  color: white;
}

.ticket-preview-button.success:hover {
  background-color: var(--success-hover);
}

.ticket-preview-button.danger {
  background-color: var(--danger);
  color: white;
}

.ticket-preview-button.danger:hover {
  background-color: var(--danger-hover);
}

.ticket-preview-button:active {
  transform: scale(0.98);
}

#tickets {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  padding: 2rem;
}

.ticket-header {
  margin-bottom: 2rem;
  text-align: center;
}

.ticket-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.ticket-header p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.ticket-builder-container {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
}

.ticket-form-container {
  background: var(--panel-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.ticket-preview-container {
  background: var(--panel-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.form-section {
  background: var(--panel-solid);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-header i {
  color: var(--primary-accent);
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

.section-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.section-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.section-badge {
  position: absolute;
  right: 0;
  top: 0;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row.combined {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-row.combined {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.setting-description {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.input-with-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.image-preview {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.color-picker-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-picker {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
}

.color-value {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--panel-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: monospace;
}

.support-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.additional-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.preview-wrapper {
  background: var(--panel-solid);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.channel-header {
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.channel-name {
  font-weight: 600;
  color: var(--text-primary);
}

.channel-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.message-preview {
  display: flex;
  margin-bottom: 1.5rem;
}

.avatar {
  margin-right: 1rem;
}

.avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.message-content {
  flex: 1;
}

.message-header {
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.username {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 0.5rem;
}

.timestamp {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.message-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.discord-embed {
  display: flex;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.embed-color-bar {
  width: 4px;
  flex-shrink: 0;
}

.embed-content {
  padding: 0.75rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.embed-preview {
  background: var(--panel-solid);
  border-radius: var(--border-radius);
  padding: 1rem;
  border: 1px solid var(--glass-border);
  margin-bottom: 0rem;
}

.embed-preview-content {
  border-left: 4px solid;
  padding: 0.75rem 1rem;
  background: var(--panel-bg);
  border-radius: inherit;
  position: relative;
  font-family: 'Rubik', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.embed-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.author-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.embed-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
  margin: 0.5rem 0;
}

.embed-description {
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.4;
  white-space: pre-line;
  margin-bottom: 0.5rem;
}

.embed-image-container {
  margin-top: 0.5rem;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  max-width: 100%;
}

.embed-image {
  max-width: 100%;
  max-height: 300px;
  display: block;
  border-radius: var(--border-radius-sm);
}

.embed-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.embed-thumbnail {
  float: right;
  margin-left: 1rem;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  position: absolute;
  top: 0;
  right: 0;
  margin-right: 5rem;
}

.embed-thumbnail img {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
}

.embed-url {
  display: inline-block;
  color: #00aff4;
  text-decoration: none;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.embed-url:hover {
  text-decoration: underline;
}

.button-row {
  margin-top: 1rem;
  display: flex;
}

.discord-button {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  border: none;
  margin-top: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Rubik', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
}

.discord-button.blurple {
  background-color: #5865F2;
  color: white;
}

.discord-button.blurple:hover {
  background-color: #4752c4;
}

.discord-button.green {
  background-color: #3BA55C;
  color: white;
}

.discord-button.green:hover {
  background-color: #2D7D46;
}

.discord-button.red {
  background-color: #ED4245;
  color: white;
}

.discord-button.red:hover {
  background-color: #C03537;
}

.discord-button.gray {
  background-color: #4F545C;
  color: white;
}

.discord-button.gray:hover {
  background-color: #5D6269;
}

.embed-image[src=""],
.embed-thumbnail img[src=""],
.embed-author-icon[src=""],
.footer-icon[src=""] {
  display: none;
}

#ticket-unsaved-bar {
  position: sticky;
  bottom: 20px;
  background: var(--panel-bg);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--primary-accent);
  animation: fadeInUp 0.3s ease;
  z-index: 10;
  margin-top: 2rem;
}

#ticket-unsaved-bar .unsaved-message {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-accent);
  font-weight: 600;
}

#ticket-unsaved-bar .unsaved-actions {
  display: flex;
  gap: 0.75rem;
}

#ticket-unsaved-bar .btn-reset {
  background: var(--glass-border) !important;
}

@media (max-width: 768px) {
  .support-roles-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .additional-settings-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row.combined {
    grid-template-columns: 1fr;
  }
}

.btn-secondary {
  background: var(--glass-border) !important;
}

.btn-secondary:hover {
  background: var(--glass-effect) !important;
}

.btn-outline {
  background: transparent !important;
  border: 1px solid var(--glass-border) !important;
}

.btn-outline:hover {
  background: var(--glass-effect) !important;
}

.btn-close-preview {
  background: var(--primary-accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.btn-close-preview:hover {
  background: var(--primary-accent-hover);
}

.embed-builder {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.builder-form {
  background: var(--panel-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.builder-preview {
  background: var(--panel-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.form-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section h3 i {
  color: var(--primary-accent);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--panel-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: 'Rubik', sans-serif;
  transition: var(--transition);
  resize: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row.combined {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-row.combined {
    grid-template-columns: 1fr;
  }
}

.embed-builder-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.form-section {
  background: var(--panel-solid);
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid var(--glass-border);
}

.form-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row.combined {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.discord-input {
  width: 100%;
  padding: 8px 10px;
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  transition: border-color .2s ease-in-out;
}

.discord-input:focus {
  border-color: var(--primary-accent);
  outline: none;
}

.discord-textarea {
  width: 100%;
  min-height: 80px;
  padding: 8px 10px;
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  resize: vertical;
  transition: border-color .2s ease-in-out;
}

.discord-textarea:focus {
  border-color: var(--primary-accent);
  outline: none;
}

.support-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 1200px) {
  .support-roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .support-roles-grid {
    grid-template-columns: 1fr;
  }
}

.select-container {
  margin-bottom: 1rem;
}

.select-container label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.select-menu {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--panel-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23dcddde' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}

.select-menu:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.select-container::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-primary);
  pointer-events: none;
  transition: var(--transition);
}

.select-container:hover::after {
  border-top-color: var(--primary-accent);
}

.select-menu option {
  background: var(--panel-solid);
  color: var(--text-primary);
  padding: 0.5rem;
}

.select-menu option:checked {
  background: var(--primary-accent);
  color: white;
}

.discord-select {
  width: 100%;
  padding: 8px 10px;
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-picker-row input[type="color"] {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
}

.color-hex {
  font-family: monospace;
  font-size: 14px;
  color: var(--text-secondary);
}

.color-reset {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  margin-left: auto;
}

.color-reset:hover {
  color: var(--text-primary);
}

.preview-container {
  background: var(--panel-solid);
  border-radius: var(--border-radius);
  padding: 15px;
  border: 1px solid var(--glass-border);
}

.channel-preview {
  font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.channel-header {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 15px;
}

.channel-name {
  color: var(--text-primary);
  font-weight: 600;
}

.channel-topic {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-left: 10px;
}

.message-preview {
  display: flex;
  margin-bottom: 20px;
}

.message-avatar {
  margin-right: 15px;
}

.message-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.message-content {
  text-align: left;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.message-author {
  color: var(--text-primary);
  font-weight: 600;
  margin-right: 8px;
}

.message-timestamp {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.message-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.discord-embed {
  display: flex;
  margin-top: 8px;
  margin-bottom: 8px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.embed-color {
  width: 4px;
  flex-shrink: 0;
}

.embed-content {
  padding: 8px 16px 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.embed-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-top: 8px;
}

.embed-author-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.embed-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
  margin-top: 8px;
}

.embed-title, 
.embed-description {
  text-align: left;
}

.embed-title a {
  color: #00aff4;
  text-decoration: none;
}

.embed-title a:hover {
  text-decoration: underline;
}

.embed-description {
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.4;
  white-space: pre-line;
}

.embed-image-container {
  margin-top: 8px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.embed-image {
  max-width: 100%;
  display: block;
}

.embed-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.embed-footer-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.embed-thumbnail {
  float: right;
  margin-left: 16px;
  margin-bottom: 10px;
  flex-shrink: 0;
  position: absolute;
  top: 0;
  right: 0;
  margin-right: 0rem;
}

.embed-thumbnail img {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
}

.discord-button-container {
  margin-top: 16px;
}

.discord-button {
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  border: none;
  font-weight: 500;
  font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .17s ease;
}

.discord-button.primary {
  background-color: #5865F2;
  color: white;
}

.discord-button.primary:hover {
  background-color: #4752c4;
}

.discord-button.green {
  background-color: #3ba55c;
  color: white;
}

.discord-button.green:hover {
  background-color: #2d7d46;
}

.discord-button.red {
  background-color: #ed4245;
  color: white;
}

.discord-button.red:hover {
  background-color: #c03537;
}

.discord-button.gray {
  background-color: #4f545c;
  color: white;
}

.discord-button.gray:hover {
  background-color: #5d6269;
}

.support-roles-section {
  background: var(--panel-solid);
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid var(--glass-border);
}

.support-roles-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.support-roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .support-roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.additional-settings {
  background: var(--panel-solid);
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid var(--glass-border);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ticket-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.ticket-builder {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: auto;
}

.builder-form {
  background: var(--panel-solid);
  border-radius: var(--border-radius);
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-section {
  margin-bottom: 25px;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  position: relative;
}

.section-header i {
  margin-right: 10px;
  color: var(--primary-accent);
}

.section-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.section-badge {
  position: absolute;
  right: 0;
  top: 0;
  background: var(--panel-bg);
  padding: 3px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row.combined {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 768px) {
  .form-row.combined {
    grid-template-columns: 1fr;
  }
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  transition: all 0.2s;
  resize: none;
}

.form-control:focus {
  border-color: var(--primary-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.3);
}

.form-select {
  width: 100%;
  padding: 10px 12px;
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23dcddde' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  transition: all 0.2s;
}

.form-select:focus {
  border-color: var(--primary-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.3);
}

.color-picker-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-picker {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  background: transparent;
}

.color-value {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--panel-solid);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: monospace;
}

.color-picker input[type="color"] {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
}

.color-picker input[type="text"] {
  flex: 1;
  min-width: 80px;
}

.color-reset {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px;
  border-radius: var(--border-radius-sm);
}

.color-reset:hover {
  background: var(--panel-bg);
  color: var(--text-primary);
}

.input-with-preview {
  position: relative;
}

.image-preview-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.image-preview {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  background: var(--panel-solid);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

@media (max-width: 768px) {
  .roles-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.builder-preview {
  background: var(--panel-solid);
  border-radius: var(--border-radius);
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.channel-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-left: 10px;
}

.message-text {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.375;
  word-wrap: break-word;
}

.discord-button.blurple {
  background-color: #5865F2;
  color: white;
}

.discord-button.blurple:hover {
  background-color: #4752c4;
}

.discord-button.green {
  background-color: #3ba55c;
  color: white;
}

.discord-button.green:hover {
  background-color: #2d7d46;
}

.discord-button.red {
  background-color: #ed4245;
  color: white;
}

.discord-button.red:hover {
  background-color: #c03537;
}

.discord-button.gray {
  background-color: #4f545c;
  color: white;
}

.discord-button.gray:hover {
  background-color: #5d6269;
}

@media (max-width: 1200px) {
  .ticket-builder-container {
    max-width: 100%;
    padding: 1rem;
  }
  
  .support-roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .additional-settings-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  body {
    grid-template-columns: 1fr;
    grid-template-rows: 75px 1fr;
    grid-template-areas: "header" "main";
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 75px;
    height: calc(100vh - 75px);
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 90;
    box-shadow: var(--shadow-lg);
  }

  .sidebar.visible {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: block;
  }

  main {
    padding: 1.5rem;
    height: auto;
    min-height: calc(100vh - 75px);
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 1.5rem;
  }

  .user-info {
    max-width: 120px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .server-icon {
    width: 56px;
    height: 56px;
  }

  .server-meta h1 {
    font-size: 1.4rem;
  }

  .nav-item {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
  }

  .dashboard-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0 1rem;
  }

  .user-info {
    max-width: 80px;
    font-size: 0.85rem;
  }

  .user-info-button {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .branding h2 {
    font-size: 1.1rem;
    font-weight: 700;
  }

  header img {
    width: 36px;
    height: 36px;
  }

  .dashboard-card {
    padding: 1.25rem;
  }

  .feature-content {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
  }

  .server-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .server-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

.ticket-preview-content {
  overflow-y: auto;
  max-height: 70vh;
}

@media (max-width: 768px) {
  .logo-container {
    width: 150px;
    height: 150px;
  }
  
  .loading-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .logo-container {
    width: 120px;
    height: 120px;
  }
  
  .loading-text {
    font-size: 1rem;
    margin-top: 1rem;
  }
  
  .progress-bar {
    width: 160px;
  }
}

.ticket-preview-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  margin-bottom: 2rem;
}

.ticket-preview-wrapper {
  width: 100%;
  max-width: 100%;
}

.channel-header {
  width: 100%;
  padding: 10px 15px;
  box-sizing: border-box;
}

.message-preview {
  width: 100%;
  max-width: 100%;
  display: flex;
  padding: 10px 15px;
  box-sizing: border-box;
}

.message-content {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.discord-embed {
  width: 100% !important;
  max-width: 100% !important;
}

.ticket-preview-modal {
  width: 90%;
  max-width: 800px;
}

.btn-close-preview {
  background: var(--primary-accent);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-close-preview:hover {
  background: var(--primary-accent-hover);
}

.ticket-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ticket-preview-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.ticket-preview-modal {
  background: var(--panel-solid);
  width: 80%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 10000;
}

.ticket-preview-overlay.active .ticket-preview-modal {
  transform: translateY(0);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ticket-preview-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--panel-solid);
  z-index: 1;
}

.ticket-preview-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.ticket-preview-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.ticket-preview-close:hover {
  color: var(--primary-accent);
}

.ticket-preview-content {
  padding: 16px;
  overflow-y: auto;
  flex-grow: 1;
}

.ticket-preview-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: var(--panel-solid);
}

.mod-logs-controls {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  flex-grow: 1;
}

.filter-group label {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-weight: 500;
}

.search-controls {
  margin-top: 15px;
}

.search-input {
  position: relative;
  max-width: 500px;
  flex-grow: 1;
}

.search-input i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input input {
  width: 100%;
  padding: 10px 20px 10px 40px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-normal);
  font-size: 14px;
}

.mod-logs-container {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mod-logs-header {
  display: grid;
  grid-template-columns: 120px 1.5fr 1.5fr 2fr 180px 140px;
  padding: 15px 20px;
  background: #161616;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  gap: 15px;
}

.mod-logs-list {
  min-height: 400px;
}

.mod-log-entry {
  display: grid;
  grid-template-columns: 120px 1.5fr 1.5fr 2fr 180px 140px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s;
  gap: 15px;
  align-items: center;
}

.mod-log-entry:hover {
  background: var(--bg-tertiary);
}

.log-item {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 50px;
}

.action-type {
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-weight: 600;
  gap: 5px;
}

.action-icon {
  font-size: 22px;
  margin-bottom: 5px;
}

.action-ban { color: var(--red); }
.action-mute { color: var(--yellow); }
.action-kick { color: var(--orange); }
.action-warn { color: var(--blue); }

.user, .moderator {
  gap: 12px;
}

.user-avatar, .mod-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.user-avatar img, .mod-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.username, .mod-name {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 3px;
}

.user-id, .mod-id {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}

.reason {
  padding-right: 15px;
  font-size: 14px;
  line-height: 1.5;
}

.details {
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #ffffff;
}

.date {
  flex-direction: column;
  font-size: 14px;
  gap: 5px;
}

.date-text {
  font-weight: 500;
}

.time-text {
  color: var(--text-muted);
  font-size: 13px;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 20px;
  background: var(--bg-tertiary);
}

.page-info {
  font-size: 15px;
  color: var(--text-muted);
  min-width: 120px;
  text-align: center;
}

.btn-pagination {
  padding: 8px 20px;
  min-width: 120px;
  font-size: 14px;
}

.loading-placeholder, .no-results, .error-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  color: var(--text-muted);
  font-size: 15px;
}

.loading-placeholder i {
  font-size: 20px;
}

@media (max-width: 1200px) {
  .mod-logs-header, .mod-log-entry {
    grid-template-columns: 100px 1.2fr 1.2fr 1.8fr 160px 120px;
  }
}

@media (max-width: 992px) {
  .mod-logs-header {
    display: none;
  }
  
  .mod-log-entry {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto;
    gap: 15px;
    padding: 20px;
  }
  
  .log-item {
    justify-content: flex-start;
  }
  
  .action-type {
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
  }
  
  .action-icon {
    margin-bottom: 0;
  }
  
  .user, .moderator {
    margin-left: 30px;
  }
  
  .reason {
    padding: 10px 0;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    margin: 10px 0;
  }
}

.mod-log-entry {
  display: grid;
  grid-template-columns: 100px 1fr 1fr 2fr 150px 120px;
  align-items: center;
}

.mod-info {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.7rem;
  flex-direction: column; 
  flex-wrap: nowrap;
}

.username, .mod-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.user-id, .mod-id {
  font-size: 0.8em;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

.user-id.active, .mod-id.active {
  white-space: normal;
  overflow: visible;
}

#dashboard-content,
.feature-content {
  display: none;
}

#dashboard-content.active,
.feature-content.active {
  display: block;
}

.filter-group.date-range {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: var(--panel-solid);
  border-radius: var(--border-radius-sm);
  padding: 1.25rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.filter-group.date-range label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date-input input[type="date"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: 'Rubik', sans-serif;
  transition: var(--transition);
}

.date-input input[type="date"]:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.date-input input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.5);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.date-input input[type="date"]::-webkit-calendar-picker-indicator:hover {
  background: rgba(139, 92, 246, 0.1);
  filter: invert(0.7);
}

.date-input input[type="date"]::-webkit-datetime-edit {
  padding: 0;
}

.date-input input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

@media (max-width: 768px) {
  .filter-group.date-range {
    padding: 1rem;
  }
  
  .date-input {
    flex-direction: column;
  }
  
  .date-input input[type="date"] {
    width: 100%;
  }
}

[data-color-mode=light] .date-input input[type="date"] {
  background: white;
}

[data-color-mode=light] .date-input input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.3);
}

[data-color-mode=light] .date-input input[type="date"]::-webkit-calendar-picker-indicator:hover {
  filter: invert(0.5);
}

.date-range-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.date-range-modal {
  background: var(--panel-solid);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--primary-accent);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.date-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date-input label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.date-input input[type="date"] {
  width: 100%;
  padding: 0.75rem;
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: inherit;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-apply {
  background: var(--primary-accent);
  color: white;
}

.btn-cancel {
  background: var(--glass-border);
}

.action-unban {
  background-color: rgba(67, 181, 129, 0.1);
  border-left: 3px solid #43b581;
  color: #43b581;
}

.mod-logs-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mod-logs-header, 
.mod-log-entry {
  display: grid;
  grid-template-columns: minmax(100px, 120px) minmax(150px, 1fr) minmax(150px, 1fr) minmax(200px, 2fr) minmax(150px, 180px) minmax(120px, 140px);
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
}

.mod-log-entry {
  min-width: 0;
}

.log-item {
  min-width: 0;
  overflow: hidden;
}

.username, 
.mod-name,
.user-id, 
.mod-id,
.date-text,
.time-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.reason {
  white-space: normal;
  overflow: visible;
  word-wrap: break-word;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 15;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.user-id, 
.mod-id {
  font-family: monospace;
  font-size: 0.8em;
}

.user-avatar, 
.mod-avatar {
  min-width: 42px;
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .mod-logs-header, 
  .mod-log-entry {
    grid-template-columns: minmax(80px, 100px) minmax(120px, 1fr) minmax(120px, 1fr) minmax(150px, 1.8fr) minmax(120px, 160px) minmax(100px, 120px);
    gap: 10px;
    padding: 12px 15px;
  }
}

@media (max-width: 992px) {
  .mod-logs-header {
    display: none;
  }
  
  .mod-log-entry {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
  }
  
  .log-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .action-type {
    flex-direction: row;
    gap: 10px;
  }
  
  .user, 
  .moderator {
    margin-left: 0;
  }
  
  .reason {
    -webkit-line-clamp: unset;
    padding: 10px 0;
    border-top: 1px dashed var(--glass-border);
    border-bottom: 1px dashed var(--glass-border);
    margin: 10px 0;
    width: 100%;
  }
  
  .username, 
  .mod-name,
  .user-id, 
  .mod-id,
  .date-text,
  .time-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

@media (max-width: 480px) {
  .mod-log-entry {
    padding: 12px;
    gap: 8px;
  }
  
  .user-avatar, 
  .mod-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  
  .action-icon {
    font-size: 18px;
  }
}

.mod-log-entry:hover, 
.mod-log-entry *, 
.mod-log-entry *:hover {
  background: inherit !important;
  transform: none !important;
  cursor: default !important;
}

@media (max-width: 1450px) {
  .log-entry {
    display: grid !important;
    grid-template-columns: 50px 1fr 1fr 160px !important;
    align-items: center !important;
    gap: 12px;
    padding: 12px !important;
  }

  .user-id,
  .mod-id,
  .user-id-value,
  .mod-id-value {
    display: none !important;
  }

  .username,
  .mod-name {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-weight: 500 !important;
    display: block !important;
  }

  .user-avatar,
  .mod-avatar {
    display: none !important;
  }

  .action-icon {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 1.2em !important;
  }

  .action-icon > *:not(:first-child),
  .action-type-label,
  .action-label {
    display: none !important;
  }

  .date-time {
    font-size: 0.85em !important;
    color: var(--text-secondary, #aaa) !important;
    white-space: nowrap !important;
    display: block !important;
  }

  .reason,
  .details {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
