/*
 * Modern Admin UI - Complete Redesign
 */

/* CSS Variables for modern theming */
:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #e0e7ff;
  --secondary-color: #8b5cf6;
  --danger-color: #ef4444;
  --danger-hover: #dc2626;
  --danger-light: #fee2e2;
  --success-color: #10b981;
  --success-light: #d1fae5;
  --warning-color: #f59e0b;
  --warning-light: #fef3c7;
  --info-color: #3b82f6;
  --info-light: #dbeafe;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-dark-secondary: #1e293b;
  
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --text-white: #ffffff;
  
  --border-color: #e2e8f0;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 80px;
  --top-bar-height: 72px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: var(--bg-secondary);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 15px;
}

/* App Container Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  transition: var(--transition);
}

.app-container.sidebar-collapsed .main-content {
  margin-left: var(--sidebar-collapsed-width);
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-subtitle,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .user-details {
  display: none;
}

.sidebar.collapsed .sidebar-header {
  padding: 20px 16px;
}

.sidebar.collapsed .sidebar-logo {
  margin: 0 auto;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 16px;
}

.sidebar-header {
  padding: 32px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.sidebar-logo {
  max-width: 100%;
  height: auto;
  max-height: 40px;
  display: block;
  margin: 0 auto;
  border-radius: 0;
}

.sidebar.collapsed .sidebar-logo {
  max-height: 32px;
}

.sidebar-subtitle {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
  opacity: 0.8;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  margin: 4px 12px;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 14px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  transform: translateX(4px);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.nav-item.logout {
  color: rgba(255, 255, 255, 0.7);
  margin-top: auto;
}

.nav-item.logout:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger-color);
}

.nav-icon {
  font-size: 20px;
  margin-right: 12px;
  width: 20px;
  height: 20px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

.sidebar.collapsed .nav-icon {
  margin-right: 0;
}

.nav-text {
  flex: 1;
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-white);
  flex-shrink: 0;
  margin-right: 12px;
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-email {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-white);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  color: var(--text-light);
  margin: 2px 0 0 0;
  opacity: 0.8;
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

/* Top Bar */
.top-bar {
  height: var(--top-bar-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.sidebar-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: 16px;
}

.sidebar-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.top-bar-content {
  flex: 1;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.5px;
}

/* Flash Messages */
.flash-container {
  padding: 16px 32px 0;
}

.flash-message {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 16px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  animation: slideInDown 0.3s ease-out;
  font-weight: 500;
}

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

.flash-message.notice {
  background: linear-gradient(135deg, var(--success-light) 0%, #a7f3d0 100%);
  color: #065f46;
  border-left: 4px solid var(--success-color);
}

.flash-message.alert {
  background: linear-gradient(135deg, var(--danger-light) 0%, #fecaca 100%);
  color: #991b1b;
  border-left: 4px solid var(--danger-color);
}

.flash-icon {
  font-size: 20px;
  margin-right: 12px;
  font-weight: bold;
}

.flash-text {
  flex: 1;
}

/* Content Wrapper */
.content-wrapper {
  flex: 1;
  padding: 32px;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header h1 {
  margin-bottom: 4px;
}

.page-description {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  margin-top: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

h2 {
  font-size: 24px;
  margin-bottom: 24px;
}

h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

/* Cards */
.card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

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

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.card-body {
  color: var(--text-secondary);
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-change {
  font-size: 12px;
  color: var(--success-color);
  font-weight: 500;
}

/* Tables */
.table-container {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-top: 24px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

table thead {
  background: var(--bg-secondary);
}

table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
}

table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

table tbody tr {
  transition: var(--transition);
}

table tbody tr:hover {
  background-color: var(--bg-secondary);
}

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

table tbody tr td[colspan] {
  text-align: center;
  padding: 48px 32px;
  color: var(--text-secondary);
  font-style: italic;
}

/* Status Badges */
.status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status.active {
  background: var(--success-light);
  color: #065f46;
}

.status.inactive {
  background: var(--text-muted);
  color: var(--text-white);
}

.status.pending {
  background: var(--warning-light);
  color: #92400e;
}

/* Buttons */
.button, input[type="submit"], button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  margin-right: 12px;
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.button::before, input[type="submit"]::before, button[type="submit"]::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;
}

.button:hover::before, input[type="submit"]:hover::before, button[type="submit"]:hover::before {
  left: 100%;
}

.button:hover, input[type="submit"]:hover, button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button:active, input[type="submit"]:active, button[type="submit"]:active {
  transform: translateY(0);
}

.button.danger, button.danger {
  background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-hover) 100%);
}

.button.danger:hover, button.danger:hover {
  background: linear-gradient(135deg, var(--danger-hover) 0%, var(--danger-color) 100%);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.button.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.button.secondary:hover {
  background: var(--bg-tertiary);
  box-shadow: var(--shadow);
}

/* Action Buttons */
.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-buttons .button {
  margin: 0;
  padding: 8px 16px;
  font-size: 13px;
}

/* Forms */
form {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 700px;
  margin-top: 24px;
}

/* Forms inside actions should not have form styling */
.actions form,
.page-header .actions form,
.action-buttons form {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
  margin: 0;
  display: inline-block;
  vertical-align: baseline;
  line-height: 0;
  font-size: 0;
}

.actions form input[type="submit"],
.actions form button[type="submit"],
.page-header .actions form input[type="submit"],
.page-header .actions form button[type="submit"],
.action-buttons form input[type="submit"],
.action-buttons form button[type="submit"] {
  margin: 0;
  vertical-align: baseline;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  padding: 8px 16px;
}

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

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"],
.field input[type="number"],
.field input[type="file"],
.field textarea,
.field select {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 15px;
  transition: var(--transition);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field em {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  font-style: normal;
}

.field input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  accent-color: var(--primary-color);
  width: 18px;
  height: 18px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-field label {
  margin: 0;
  font-weight: 500;
}

/* Detail Views */
.detail-card {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin: 24px 0;
}

.detail-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.detail-row strong {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.detail-row span {
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
}

.description-content {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.8;
  margin-top: 8px;
}

.description-content p {
  margin: 0 0 12px 0;
}

.description-content p:last-child {
  margin-bottom: 0;
}

.thumbnail-content img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  max-width: 100%;
  height: auto;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.empty-state-icon svg {
  width: 64px;
  height: 64px;
  stroke: currentColor;
  fill: none;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 15px;
  margin-bottom: 24px;
}

/* Error Messages */
.error-messages {
  background: linear-gradient(135deg, var(--danger-light) 0%, #fecaca 100%);
  color: #991b1b;
  padding: 20px 24px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  border-left: 4px solid var(--danger-color);
  box-shadow: var(--shadow);
}

.error-messages h2 {
  margin-top: 0;
  font-size: 18px;
  font-weight: 600;
}

.error-messages ul {
  margin: 12px 0 0 0;
  padding-left: 24px;
}

.error-messages li {
  margin-bottom: 6px;
}

/* Links */
a:not(.button):not(.nav-item) {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

a:not(.button):not(.nav-item):hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Image Thumbnails */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.no-thumbnail {
  color: var(--text-muted);
  font-style: italic;
}

/* Current User Badge */
.current-user {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Auth Container */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 24px;
}

.auth-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 48px;
  width: 100%;
  max-width: 440px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-logo {
  max-width: 280px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
}

.auth-card form {
  margin-top: 0;
  padding: 0;
  box-shadow: none;
  max-width: 100%;
}

.auth-card .actions {
  margin-top: 24px;
}

.auth-card .devise-links {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.auth-card .devise-links a {
  color: var(--primary-color);
  font-size: 14px;
  text-decoration: none;
}

.auth-card .devise-links a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.collapsed {
    transform: translateX(0);
    width: var(--sidebar-collapsed-width);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .sidebar-toggle {
    display: flex;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 100%;
  }
  
  .content-wrapper {
    padding: 24px 16px;
  }
  
  .top-bar {
    padding: 0 16px;
  }
  
  .page-title {
    font-size: 20px;
  }
  
  .flash-container {
    padding: 16px 16px 0;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
  }
  
  table th,
  table td {
    padding: 12px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  form {
    padding: 24px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-buttons .button {
    width: 100%;
    margin-right: 0;
  }
}

/* Confirmation Modal */
.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
}

.confirm-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.confirm-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  transition: var(--transition);
}

.confirm-modal-content {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 32px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: var(--transition);
  z-index: 1;
}

.confirm-modal.active .confirm-modal-content {
  transform: scale(1) translateY(0);
}

.confirm-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--danger-light) 0%, #fecaca 100%);
  border-radius: 50%;
  color: var(--danger-color);
}

.confirm-modal-icon.warning {
  background: linear-gradient(135deg, var(--warning-light) 0%, #fef3c7 100%);
  color: var(--warning-color);
}

.confirm-modal-icon.primary {
  background: linear-gradient(135deg, var(--primary-light) 0%, #e0e7ff 100%);
  color: var(--primary-color);
}

.confirm-modal-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
}

.confirm-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.confirm-modal-message {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  margin: 0 0 32px 0;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.confirm-modal-actions .button {
  margin: 0;
  min-width: 120px;
}

@media (max-width: 480px) {
  .sidebar-header {
    padding: 20px 16px;
  }
  
  .nav-item {
    padding: 12px 16px;
  }
  
  .card {
    padding: 20px;
  }
  
  .detail-card {
    padding: 24px;
  }

  .confirm-modal-content {
    padding: 24px;
    margin: 16px;
  }

  .confirm-modal-title {
    font-size: 20px;
  }

  .confirm-modal-actions {
    flex-direction: column;
  }

  .confirm-modal-actions .button {
    width: 100%;
  }
}
