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

:root {
  --bg: #f5f6fa;
  --white: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --text-muted: #b2bec3;
  --border: #e9ecef;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --purple: #8b5cf6;
  --teal: #14b8a6;
  --orange: #f97316;
  --sidebar-bg: #1e293b;
  --sidebar-text: #94a3b8;
  --sidebar-active: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
}

/* ── Layout ── */

.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 24px;
  color: var(--primary);
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--sidebar-active);
  letter-spacing: -0.3px;
}

.sidebar-nav {
  padding: 12px 10px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 2px;
  font-size: 14px;
  transition: all 0.15s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sidebar-active);
}

.nav-item.active {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
  font-weight: 500;
}

.nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

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

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 13px;
  color: var(--sidebar-active);
  font-weight: 500;
}

.user-role {
  font-size: 11px;
  color: var(--sidebar-text);
}

.logout-btn {
  display: block;
  text-align: center;
  padding: 8px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.main-content {
  flex: 1;
  margin-left: 240px;
  min-height: 100vh;
}

.content-wrapper {
  padding: 32px;
  max-width: 1600px;
  margin: 0 auto;
}

/* ── Page Header ── */

.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.page-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.back-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 13px;
  margin-right: 4px;
}

.back-link:hover {
  color: var(--primary);
}

/* ── Stats Grid ── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid var(--border);
}

.stat-card.revenue {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #bbf7d0;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
}

.stat-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 20px;
  opacity: 0.6;
}

.stat-icon.blue { color: var(--primary); }
.stat-icon.orange { color: var(--orange); }
.stat-icon.green { color: var(--success); }
.stat-icon.purple { color: var(--purple); }
.stat-icon.teal { color: var(--teal); }

/* ── Section ── */

.section {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 17px;
  font-weight: 600;
}

/* ── Table ── */

.table-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow-x: auto;
}

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

thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
  white-space: nowrap;
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

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

tbody tr:hover {
  background: #f8f9ff;
}

.clickable-row {
  cursor: pointer;
}

.domain-cell {
  font-weight: 600;
  color: var(--primary);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 16px !important;
}

.price-sold {
  color: var(--success);
  font-weight: 600;
}

/* ── Badges ── */

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-seo {
  background: #fef3c7;
  color: #92400e;
}

.badge-hazir {
  background: #d1fae5;
  color: #065f46;
}

.badge-ilanda {
  background: #e0e7ff;
  color: #3730a3;
}

.badge-satildi {
  background: #ccfbf1;
  color: #134e4a;
}

.badge-admin {
  background: #fae8ff;
  color: #86198f;
}

.badge-user {
  background: #e0e7ff;
  color: #3730a3;
}

.badge-active {
  background: #d1fae5;
  color: #065f46;
}

.badge-inactive {
  background: #fee2e2;
  color: #991b1b;
}

.badge-count {
  background: var(--border);
  color: var(--text-light);
}

.badge-price {
  background: #d1fae5;
  color: #065f46;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ── Filters ── */

.filters-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.filters-form-grid {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: space-between;
  align-items: end;
}

.filter-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex: 1;
  min-width: 0;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-field label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.filter-input,
.filter-select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--primary);
}

.filter-input {
  width: 180px;
}

.filter-input-sm {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}

.filter-input-sm:focus {
  border-color: var(--primary);
}

.range-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.range-sep {
  color: var(--text-muted);
  font-size: 12px;
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-liste {
  background: #1e293b;
  color: white;
  border-color: #1e293b;
}

.btn-liste:hover {
  background: #334155;
  border-color: #334155;
}

.btn-check-all {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.btn-check-all:hover {
  background: #059669;
  border-color: #059669;
}

.btn-check-all:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* ── Sorting ── */

th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

th.sortable:hover {
  background: #f0f1f5;
}

.sort-icon {
  font-size: 10px;
  color: var(--text-muted);
}

.sort-icon.active {
  color: var(--primary);
  font-weight: 700;
}

/* ── Status Dots ── */

.status-cell {
  white-space: nowrap;
}

.status-dot {
  font-size: 12px;
}

.status-dot.online {
  color: var(--success);
}

.status-dot.offline {
  color: var(--danger);
}

.status-dot.pending {
  color: var(--text-muted);
}

.btn-check-sm {
  padding: 3px 8px;
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  color: var(--text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  margin-left: 6px;
  vertical-align: middle;
}

.btn-check-sm:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f0f4ff;
}

.btn-check-sm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Table Actions ── */

.actions-cell {
  white-space: nowrap;
}

.actions-cell .btn {
  margin-right: 4px;
}

.actions-cell .inline-form {
  display: inline;
}

.domain-cell a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.domain-cell a:hover {
  text-decoration: underline;
}

/* ── Liste Toast ── */

.liste-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #1e293b;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  background: var(--white);
  transition: all 0.15s ease;
  gap: 6px;
}

.btn:hover {
  border-color: var(--text-muted);
  background: #fafbfc;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

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

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

.btn-warning {
  background: var(--white);
  color: var(--warning);
  border-color: var(--warning);
}

.btn-success {
  background: var(--white);
  color: var(--success);
  border-color: var(--success);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

/* ── Forms ── */

.form-group {
  margin-bottom: 16px;
  flex: 1;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-row {
  display: flex;
  gap: 16px;
}

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

.inline-form {
  display: inline;
}

.action-cell {
  display: flex;
  gap: 6px;
}

/* ── Detail Grid ── */

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.detail-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.detail-stat {
  text-align: center;
  padding: 16px;
  background: var(--bg);
  border-radius: 8px;
}

.detail-stat-label {
  font-size: 12px;
  color: var(--text-light);
  display: block;
  margin-bottom: 4px;
}

.detail-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.detail-stat-value.big {
  font-size: 32px;
  color: var(--primary);
}

.detail-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
}

.detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.detail-meta-info {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
}

/* ── Login Page ── */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

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

.logo-large .logo-icon {
  font-size: 32px;
}

.logo-large .logo-text {
  font-size: 24px;
  color: var(--text);
}

.login-subtitle {
  color: var(--text-light);
  font-size: 14px;
  margin-top: 8px;
}

/* ── Alerts ── */

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── Error Page ── */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.error-page h1 {
  font-size: 72px;
  font-weight: 700;
  color: var(--text-muted);
}

.error-page p {
  color: var(--text-light);
  margin: 8px 0 24px;
}

/* ── Roles & Permissions ── */

.roles-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.perm-section {
  background: var(--bg);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border);
}

.perm-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.perm-section-icon {
  font-size: 16px;
  color: var(--primary);
}

.perm-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.perm-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}

.perm-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.perm-check-label {
  user-select: none;
}

.perm-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 320px;
}

.perm-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  background: #e0e7ff;
  color: #3730a3;
  white-space: nowrap;
}

.perm-tag.danger {
  background: #fee2e2;
  color: #991b1b;
}

.text-muted {
  color: var(--text-muted);
  font-size: 13px;
}

/* ── Credentials ── */

.credentials-card {
  margin-bottom: 24px;
  border-left: 3px solid var(--warning);
}

.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cred-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
}

.cred-label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.cred-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.cred-hidden {
  letter-spacing: 2px;
  color: var(--text-muted);
}

.cred-toggle {
  align-self: flex-start;
  margin-top: 4px;
}

.cred-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.cred-link:hover {
  text-decoration: underline;
}

.cred-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.check-result {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
}

.check-result.success {
  background: #d1fae5;
  color: #065f46;
}

.check-result.error {
  background: #fee2e2;
  color: #991b1b;
}

.check-result.loading {
  background: #fef3c7;
  color: #92400e;
}

/* ── Estimated Price ── */

.estimated-price {
  margin-top: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 8px;
  text-align: center;
  border: 1px solid #bfdbfe;
}

.estimated-label {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.estimated-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

/* ── Logs ── */

.log-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.log-info { background: #dbeafe; color: #1e40af; }
.log-success { background: #d1fae5; color: #065f46; }
.log-danger { background: #fee2e2; color: #991b1b; }
.log-warning { background: #fef3c7; color: #92400e; }
.log-default { background: #f3f4f6; color: #374151; }

.log-date {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
}

.log-detail {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 12px;
  max-width: 400px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ── Deploy Files ── */

.upload-group + .upload-group {
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  margin-top: 12px;
}

.deploy-files-list {
  margin-top: 20px;
}

.deploy-files-list h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.deploy-files-list code {
  font-size: 12px;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary);
}

.file-input {
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  width: 100%;
  background: var(--white);
}

.settings-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
}

/* ── Settings ── */

.settings-grid {
  max-width: 700px;
}

.settings-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

.settings-example {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13px;
  color: var(--text-light);
}

.settings-example-title {
  font-weight: 600;
  color: var(--text);
  margin-right: 8px;
}

/* ── Mobile Header ── */

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--sidebar-bg);
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 200;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--sidebar-active);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  line-height: 1;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-header .logo-icon {
  font-size: 18px;
}

.mobile-header .logo-text {
  font-size: 16px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .filters-form-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-row {
    flex-wrap: wrap;
  }

  .filter-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 150;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding-top: 56px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .content-wrapper {
    padding: 20px 16px;
    max-width: 100%;
  }

  .page-header {
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  .page-header h1 {
    font-size: 20px;
  }

  /* Dashboard */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-value {
    font-size: 22px;
  }

  .stat-label {
    font-size: 12px;
  }

  /* Filters */
  .filters-card {
    padding: 14px;
  }

  .filters-form-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-row {
    flex-direction: column;
    gap: 10px;
  }

  .filter-field {
    width: 100%;
  }

  .filter-input {
    width: 100%;
  }

  .filter-input-sm {
    width: auto;
    flex: 1;
    min-width: 0;
  }

  .filter-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .filter-actions .btn {
    text-align: center;
    justify-content: center;
  }

  /* Table */
  .table-wrapper {
    border-radius: 8px;
  }

  thead th {
    padding: 10px 10px;
    font-size: 11px;
  }

  tbody td {
    padding: 10px 10px;
    font-size: 13px;
  }

  /* Forms */
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  /* Detail */
  .detail-card {
    padding: 16px;
  }

  .detail-card h3 {
    font-size: 15px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .detail-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .detail-stat {
    padding: 10px;
  }

  .detail-stat-value {
    font-size: 16px;
  }

  .detail-stat-value.big {
    font-size: 24px;
  }

  .detail-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
  }

  .detail-meta-info {
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
  }

  /* Credentials */
  .cred-grid {
    grid-template-columns: 1fr;
  }

  .cred-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  /* Roles */
  .permissions-grid {
    grid-template-columns: 1fr;
  }

  .perm-summary {
    max-width: 200px;
  }

  /* Settings */
  .settings-grid {
    max-width: 100%;
  }

  /* Liste toast */
  .liste-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .detail-stats {
    grid-template-columns: 1fr;
  }

  .page-header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
