* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: #000000;
  color: #e2e8f0;
  min-height: 100vh;
}
body.page-login {
  min-height: 100vh;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: #0a0a0a;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.topbar a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 18px;
  font-weight: 600;
}
.topbar a:hover {
  color: #f8fafc;
}
.container {
  max-width: 1180px;
  margin: 32px auto;
  padding: 0 20px 40px;
}
.card {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.card h1,
.card h2,
.card h3 {
  margin-top: 0;
  color: #f8fafc;
}
.hero-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), #0a0a0a);
}
.card-hero {
  min-height: 190px;
}
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: white;
  text-decoration: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button-google {
  background: white;
  color: #202124;
  border: 1px solid #0a0a0a;
  padding: 14px 22px;
}
.button-google:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}
.button-google .icon-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 12px;
}
.button-google svg,
.button-discord svg {
  width: 22px;
  height: 22px;
  shape-rendering: geometricPrecision;
  image-rendering: optimizeQuality;
}
.button-discord .icon-discord {
  width: 32px;
  height: 32px;
}
.button-discord {
  background: #5865f2;
  color: white;
  border: none;
  padding: 14px 22px;
}
.button-discord:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(88,101,242,0.25);
}
.login-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}
.button:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(59,130,246,0.25);
}
.button-large {
  min-width: 220px;
}
form label {
  display: block;
  margin-bottom: 16px;
  color: #cbd5e1;
}
form input,
form textarea,
form select {
  width: 100%;
  padding: 14px 16px;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #0a0a0a;
  color: #f8fafc;
  font: inherit;
}
form textarea {
  resize: vertical;
}
form button {
  margin-top: 8px;
}
.task-list,
.user-list,
.role-stats {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.task-list li,
.user-list li {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  margin-bottom: 14px;
  background: #0a0a0a;
}
.task-list li h3 {
  margin: 0 0 10px;
}
small,
.hint {
  color: #94a3b8;
}
.alert {
  background: rgba(244, 63, 94, 0.12);
  color: #fecdd3;
  border: 1px solid rgba(244, 63, 94, 0.26);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0;
}
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}
.hero-content {
  max-width: 560px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.28);
}
.tag {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(59,130,246,0.15);
  color: #7dd3fc;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-meta,
.top-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.hero-meta span,
.top-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.role-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56,189,248,0.18);
  color: #bae6fd;
  font-weight: 700;
  font-size: 11px;
}
/* Owner & Admin */
.role-pill.owner {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.role-pill.verwaltung {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.role-pill.adminz {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
/* Moderators */
.role-pill.head-modz {
  background: rgba(14, 165, 233, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, 0.3);
}
.role-pill.modz {
  background: rgba(51, 185, 255, 0.2);
  color: #80deea;
  border: 1px solid rgba(51, 185, 255, 0.3);
}
/* Supporter */
.role-pill.sr-supporter {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.role-pill.supporter {
  background: rgba(52, 211, 153, 0.2);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.role-pill.jr-supporter {
  background: rgba(110, 231, 183, 0.2);
  color: #ccfbf1;
  border: 1px solid rgba(110, 231, 183, 0.3);
}
/* Builder */
.role-pill.sr-builder {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}
.role-pill.builder {
  background: rgba(244, 114, 182, 0.2);
  color: #fbcfe8;
  border: 1px solid rgba(244, 114, 182, 0.3);
}
.role-pill.jr-builder {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.3);
}
/* Content Creator */
.role-pill.content {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
/* Member */
.role-pill.mitglied {
  background: rgba(156, 163, 175, 0.2);
  color: #d1d5db;
  border: 1px solid rgba(156, 163, 175, 0.3);
}
.role-pill.dev {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.role-pill.moderator {
  background: rgba(14, 165, 233, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, 0.3);
}
.app-page {
  min-height: 100vh;
}
.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 0;
  background: #050505;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 20px;
  min-height: 100vh;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.sidebar-logo {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.sidebar-brand span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: white;
  font-weight: 800;
}
.sidebar-brand strong {
  display: block;
  color: #f8fafc;
  font-size: 1rem;
}
.sidebar-brand small {
  color: #94a3b8;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-category {
  display: block;
  padding: 12px 18px 6px 18px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 12px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.2);
  padding-bottom: 8px;
}
.sidebar-nav a {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 8px;
  color: #a0a0a0;
  text-decoration: none;
  font-weight: 500;
  background: transparent;
  transition: background .2s ease, color .2s ease;
}
.sidebar-nav a.active,
.sidebar-nav a:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #38bdf8;
}
.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.button-small {
  padding: 10px 16px;
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.role-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: 18px;
  background: #0a0a0a;
}
.member-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.member-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
  background: #0a0a0a;
}
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}
.content-header {
  margin-bottom: 40px;
}
.content-header h1 {
  margin: 0 0 12px 0;
  font-size: 32px;
  font-weight: 700;
  color: #f8fafc;
}
.content-subtitle {
  margin: 0;
  color: #94a3b8;
  font-size: 16px;
}
.user-list {
  display: grid;
  gap: 16px;
}
.user-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  overflow: hidden;
}
.user-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  background: #0a0a0a;
}
.user-card summary::-webkit-details-marker {
  display: none;
}
.user-card-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.avatar-wrap img,
.avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  object-fit: cover;
}
.avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #f8fafc;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
}
.user-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: #0a0a0a;
  padding: 20px;
  display: grid;
  gap: 18px;
}
.user-card-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}
.delete-form {
  margin: 0;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 24px;
}
.modal-overlay.hidden {
  display: none;
}
.modal {
  width: min(720px, 100%);
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 28px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.modal-header h3 {
  margin: 0;
  color: #f8fafc;
}
.modal-subtitle {
  margin: 8px 0 0;
  color: #94a3b8;
}
.modal-close {
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.modal-body {
  display: grid;
  gap: 18px;
  padding: 24px 28px 28px;
}
.profile-preview {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 18px 12px;
  border-radius: 20px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.preview-avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
}
.modal-actions {
  justify-content: flex-end;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.button-danger {
  background: #ef4444;
  color: white;
}
.meta-line {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.4;
}
.summary-label {
  color: #cbd5e1;
  font-size: 0.95rem;
  white-space: nowrap;
}
.user-edit-form,
.delete-form {
  display: grid;
  gap: 14px;
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.button-danger {
  background: #ef4444;
  color: white;
}
.content {
  padding: 32px;
  overflow: auto;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.action-card {
  padding: 24px;
  border-radius: 28px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 16px;
}
.action-card strong {
  color: #38bdf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.action-card h3 {
  margin: 0;
  font-size: 1.1rem;
}
.action-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}
.button-secondary {
  background: rgba(96, 165, 250, 0.12);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.2);
}
.button-secondary:hover {
  background: rgba(59, 130, 246, 0.18);
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
@media (max-width: 960px) {
  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .action-grid {
    grid-template-columns: 1fr;
  }
}
.panel {
  transition: opacity .2s ease, transform .2s ease;
}
.panel.hidden {
  display: none;
}
.add-member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-card {
  padding: 22px;
  border-radius: 24px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 16px;
}
.form-card h3 {
  margin: 0;
}
.form-card p {
  margin: 0;
  color: #cbd5e1;
}
@media (max-width: 900px) {
  .add-member-grid {
    grid-template-columns: 1fr;
  }
}
.card-wide {
  grid-column: span 12;
}
.stat-card {
  min-height: 190px;
}
.dashboard-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.dashboard-grid > .hero-card {
  grid-column: span 12;
}
.dashboard-grid > .stat-card {
  grid-column: span 4;
}
.dashboard-grid > .card {
  grid-column: span 12;
}
.admin-grid > .hero-card {
  grid-column: span 12;
}
.admin-grid > .stat-card {
  grid-column: span 4;
}
.card-wide {
  grid-column: span 12;
}
.user-table {
  width: 100%;
  border-collapse: collapse;
}
.user-table th,
.user-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.user-table th {
  color: #cbd5e1;
  font-weight: 700;
}
.user-table td {
  color: #e2e8f0;
}
.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
  }
  .sidebar-nav {
    display: none;
  }
  .content {
    padding: 20px;
  }
  .role-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding: 32px;
  }
}

/* Members Page Styles */
.members-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 20px;
}
.members-title {
  margin: 0;
  font-size: 28px;
}
.profile-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.profile-widget:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.06);
}
.profile-widget img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
}
.profile-widget-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-widget-name {
  font-weight: 600;
  font-size: 14px;
  color: #f8fafc;
}
.profile-widget-action {
  font-size: 12px;
  color: #94a3b8;
}

.members-table-container {
  overflow-x: auto;
}
.members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.members-table thead {
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
}
.members-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #a0a0a0;
  background: #0a0a0a;
}
.members-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}
.members-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.member-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
}
.member-status.offline {
  background: #6b7280;
}

.member-cell-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
}
.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.modal-header h2 {
  margin: 0;
  font-size: 20px;
}
.modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.modal-close:hover {
  color: #f8fafc;
}
.modal-body {
  padding: 24px 0;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #cbd5e1;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #f8fafc;
  font-size: 14px;
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
}
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.button-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.button-primary {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: white;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
}
.button-secondary-form {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.button-secondary-form:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Profile Dropdown */
.profile-dropdown {
  position: relative;
}
.profile-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0;
}
.profile-widget:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.06);
}
.profile-widget img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0;
}
.profile-widget-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-widget-name {
  font-weight: 600;
  font-size: 14px;
  color: #f8fafc;
}
.profile-widget-action {
  font-size: 14px;
  color: #94a3b8;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.dropdown-menu.active {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: #b0b0b0;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dropdown-menu a:last-child {
  border-bottom: none;
}
.dropdown-menu a:hover {
  background: #151515;
  color: #f8fafc;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
}
.tab-button {
  padding: 12px 20px;
  background: none;
  border: none;
  color: #94a3b8;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tab-button:hover {
  color: #cbd5e1;
}
.tab-button.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-content.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Absence Card */
.absence-card {
  padding: 16px;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 12px;
}
.absence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}
.absence-header strong {
  color: #f8fafc;
}
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.status-badge.status-ausenstehend {
  background: rgba(251, 146, 60, 0.2);
  color: #fbbf24;
}
.status-badge.status-abgelehnt {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}
.status-badge.status-angenommen {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}
.absence-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

/* Calendar Events */
.calendar-container {
  margin-bottom: 24px;
}
.calendar-events {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.events-section {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 16px;
}
.events-section h3 {
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 600;
}
.events-list {
  display: grid;
  gap: 8px;
}
.event-item {
  padding: 10px;
  background: #0a0a0a;
  border-radius: 6px;
  border-left: 3px solid #38bdf8;
}
.event-item strong {
  display: block;
  color: #f8fafc;
  margin-bottom: 2px;
}
.event-item small {
  color: #94a3b8;
  font-size: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.button-secondary-form:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ============================================ */
/* MOBILE RESPONSIVENESS - COMPREHENSIVE */
/* ============================================ */

/* Extra Small Phones (320px - 480px) */
@media (max-width: 480px) {
  * {
    font-size: 14px;
  }
  
  body {
    font-size: 14px;
  }
  
  .topbar {
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
  }
  
  .topbar a {
    margin-left: 0;
  }
  
  .hero {
    padding: 16px;
    min-height: auto;
  }
  
  .hero-content {
    padding: 24px 16px;
    border-radius: 16px;
  }
  
  .container {
    padding: 0 12px 24px;
    margin: 16px auto;
  }
  
  .card {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
  }
  
  .card h1 {
    font-size: 24px;
  }
  
  .card h2 {
    font-size: 20px;
  }
  
  .button, button {
    padding: 10px 16px;
    font-size: 13px;
    width: 100%;
  }
  
  .button-large {
    min-width: auto;
  }
  
  .button-small {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  form label {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  form input, form textarea, form select {
    padding: 10px 12px;
    font-size: 16px;
    border-radius: 4px;
  }
  
  .app-shell {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    flex-direction: row;
    padding: 12px;
    justify-content: space-around;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    min-height: auto;
  }
  
  .sidebar-brand {
    display: none;
  }
  
  .sidebar-nav {
    display: flex !important;
    flex-direction: row;
    gap: 0;
    width: 100%;
  }
  
  .sidebar-category {
    display: none;
  }
  
  .sidebar-nav a {
    flex: 1;
    padding: 8px 4px;
    border-radius: 4px;
    font-size: 11px;
    text-align: center;
  }
  
  .sidebar-footer {
    display: none;
  }
  
  .main-content {
    padding: 16px 12px 80px 12px;
  }
  
  .content {
    padding: 12px;
    padding-bottom: 80px;
  }
  
  .content-header {
    margin-bottom: 20px;
  }
  
  .content-header h1 {
    font-size: 22px;
  }
  
  .action-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  
  .action-card {
    padding: 16px;
  }
  
  .role-grid {
    grid-template-columns: 1fr !important;
  }
  
  .dashboard-grid, .admin-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  
  .modal-content {
    padding: 20px;
    width: 95%;
    margin: 20px;
  }
  
  .modal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
  }
  
  .members-table {
    font-size: 12px;
  }
  
  .members-table th, .members-table td {
    padding: 10px;
  }
  
  .profile-widget {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .button-group {
    flex-direction: column;
    gap: 8px;
  }
  
  .button-primary, .button-secondary-form {
    width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr !important;
  }
  
  .inline-form {
    grid-template-columns: 1fr !important;
  }
  
  .add-member-grid {
    grid-template-columns: 1fr !important;
  }
  
  .user-table {
    font-size: 12px;
  }
  
  .user-table th, .user-table td {
    padding: 8px 10px;
  }
  
  .events-section {
    padding: 12px;
  }
  
  .tab-navigation {
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .tab-button {
    padding: 10px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* Small Phones & Tablets (481px - 768px) */
@media (max-width: 768px) {
  .topbar {
    padding: 14px 20px;
    flex-wrap: wrap;
  }
  
  .hero {
    padding: 20px;
  }
  
  .hero-content {
    padding: 32px 20px;
  }
  
  .container {
    padding: 0 16px 32px;
  }
  
  .card {
    padding: 20px;
  }
  
  .button {
    padding: 12px 20px;
  }
  
  .button-small {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .app-shell {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: sticky;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    min-height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: none;
  }
  
  .sidebar-nav {
    display: none;
  }
  
  .main-content {
    padding: 24px 16px;
  }
  
  .content {
    padding: 16px;
  }
  
  .content-header h1 {
    font-size: 28px;
  }
  
  .action-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px;
  }
  
  .role-grid {
    grid-template-columns: 1fr !important;
  }
  
  .dashboard-grid, .admin-grid {
    grid-template-columns: 1fr !important;
  }
  
  .modal-content {
    max-width: 90%;
    width: 90%;
    padding: 24px;
  }
  
  .members-topbar {
    flex-wrap: wrap;
  }
  
  .members-title {
    font-size: 24px;
  }
  
  .members-table-container {
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px;
  }
  
  .members-table {
    min-width: 100%;
  }
  
  .button-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .button-primary, .button-secondary-form {
    min-width: 120px;
  }
  
  .form-row {
    grid-template-columns: 1fr !important;
  }
  
  .user-card {
    padding: 16px;
  }
  
  .user-card-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .card-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .inline-form {
    grid-template-columns: 1fr !important;
  }
  
  .add-member-grid {
    grid-template-columns: 1fr !important;
  }
  
  .tab-navigation {
    gap: 0;
    overflow-x: auto;
  }
  
  .tab-button {
    padding: 12px 16px;
  }
}

/* Medium Tablets (769px - 1024px) */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }
  
  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  
  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  
  .dashboard-grid > .stat-card {
    grid-column: span 6 !important;
  }
  
  .admin-grid > .stat-card {
    grid-column: span 6 !important;
  }
  
  .sidebar {
    width: 200px;
  }
  
  .modal-content {
    max-width: 80%;
  }
}

/* Large Tablets to Desktop */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
  }
  
  .main-content {
    max-width: 100%;
  }
  
  .dashboard-grid > .stat-card {
    grid-column: span 6 !important;
  }
  
  .admin-grid > .stat-card {
    grid-column: span 6 !important;
  }
}

/* Improved touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
  .button, button, a.button {
    min-height: 44px;
    min-width: 44px;
  }
  
  .sidebar-nav a {
    padding: 14px 18px;
  }
  
  .tab-button {
    padding: 12px 20px;
  }
  
  .user-table th, .user-table td {
    padding: 16px 12px;
  }
}

/* Landscape Phones */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    padding: 12px;
    min-height: auto;
  }
  
  .hero-content {
    padding: 20px;
  }
  
  .sidebar {
    padding: 8px 12px;
  }
  
  .main-content {
    padding: 16px 12px;
  }
  
  .card {
    padding: 12px;
    margin-bottom: 8px;
  }
}
