/* Reset und Basis-Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Professional dark theme with dark green accents, better typography and reduced border radius */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0a0f1a;
  color: #e5e7eb;
  line-height: 1.6;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* Login-Seite */
.login-page {
  background: linear-gradient(135deg, #0a0f1a 0%, #111827 50%, #0a0f1a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo-icon {
  background: linear-gradient(135deg, #065f46, #047857);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.4);
}

.login-header h1 {
  color: white;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-header p {
  color: #9ca3af;
  font-size: 0.9rem;
}

.login-form {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.login-form h2 {
  color: white;
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.form-description {
  text-align: center;
  color: #9ca3af;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

/* App Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 0.75rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle:hover {
  background: #374151;
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Sidebar */
.sidebar {
  width: 256px;
  background: #111827;
  border-right: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #1f2937;
  position: relative;
}

.sidebar-header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-header .logo-icon {
  background: linear-gradient(135deg, #065f46, #047857);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(6, 95, 70, 0.4);
}

.logo-text {
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mobile-close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-close:hover {
  color: white;
  background: #374151;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: #9ca3af;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
  min-height: 44px;
  position: relative;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-item:hover {
  background: #1f2937;
  color: #e5e7eb;
}

.nav-item.active {
  background: linear-gradient(135deg, #065f46, #047857);
  color: white;
  box-shadow: 0 2px 8px rgba(6, 95, 70, 0.3);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: #10b981;
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  font-size: 1.125rem;
  width: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-icon {
  transform: scale(1.08);
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid #1f2937;
}

.logout {
  color: #ef4444 !important;
}

.logout:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 256px;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 100vh;
}

.header {
  background: #111827;
  border-bottom: 1px solid #1f2937;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.header h1 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header p {
  color: #9ca3af;
  font-size: 0.875rem;
}

.status-online {
  color: #10b981;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.user-credits {
  text-align: right;
  background: #1f2937;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  border: 1px solid #374151;
}

.user-credits span {
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.user-credits strong {
  color: #10b981;
  font-size: 1.5rem;
  display: block;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.user-info {
  color: #9ca3af;
  font-size: 0.9rem;
}

.user-info strong {
  color: white;
  font-weight: 600;
}

/* Content */
.content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  background-color: #0a0f1a;
}

/* Cards */
.card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-header h2,
.card-header h3 {
  color: white;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-content {
  padding: 1.5rem;
}

/* Reopen Card */
.reopen-card {
  border: 2px solid #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(239, 68, 68, 0.08));
}

.reopen-card .card-header {
  background: rgba(245, 158, 11, 0.1);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.reopen-info {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.reopen-info p {
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

.reopen-info p:last-child {
  margin-bottom: 0;
  color: #9ca3af;
  font-size: 0.875rem;
}

.reopen-form {
  margin-top: 1rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.stat-card.gradient-purple {
  background: linear-gradient(135deg, #065f46, #047857);
  border: 1px solid #059669;
  color: white;
}

.stat-card.gradient-teal {
  background: linear-gradient(135deg, #047857, #059669);
  border: 1px solid #10b981;
  color: white;
}

.stat-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.stat-info h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.stat-info p {
  font-size: 0.9rem;
  opacity: 0.95;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.stat-info small {
  font-size: 0.8rem;
  opacity: 0.8;
}

.stat-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.progress-bar {
  margin-top: 1rem;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Action Grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.action-card {
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.action-card.gradient-teal {
  background: linear-gradient(135deg, #047857, #059669);
  border: 1px solid #10b981;
  color: white;
}

.action-card.gradient-purple {
  background: linear-gradient(135deg, #065f46, #047857);
  border: 1px solid #059669;
  color: white;
}

.action-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.action-content p {
  margin-bottom: 1.25rem;
  opacity: 0.95;
  line-height: 1.5;
}

.action-icon {
  font-size: 3.5rem;
  opacity: 0.2;
}

/* Empty State */
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.empty-state-content {
  max-width: 400px;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state h3 {
  color: white;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.empty-state p {
  color: #9ca3af;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Ticket Detail Grid */
.ticket-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ticket-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-item.full-width {
  grid-column: 1 / -1;
}

.info-item label {
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-item span {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}

.description-text {
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* File Sections */
.file-section {
  margin-bottom: 1.5rem;
}

.file-section h4 {
  color: white;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #0a0f1a;
  border: 1px solid #1f2937;
  border-radius: 6px;
  flex-wrap: wrap;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.file-item:hover {
  background: #111827;
  border-color: #374151;
}

.file-name {
  color: #e5e7eb;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", "SF Mono", monospace;
  font-size: 0.85rem;
  word-break: break-all;
}

.file-status {
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 600;
}

.no-file {
  color: #9ca3af;
  font-style: italic;
  padding: 1rem;
  background: #0a0f1a;
  border: 1px solid #1f2937;
  border-radius: 6px;
  margin: 0;
}

/* Comments */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.comment-item {
  padding: 1.25rem;
  border-radius: 6px;
  border: 1px solid #1f2937;
}

.admin-comment {
  background: rgba(6, 95, 70, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.user-comment {
  background: #0a0f1a;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.comment-author {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.comment-date {
  color: #9ca3af;
  font-size: 0.75rem;
}

.comment-content {
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.7;
  word-wrap: break-word;
}

.no-comments {
  color: #9ca3af;
  font-style: italic;
  padding: 1.25rem;
  background: #0a0f1a;
  border: 1px solid #1f2937;
  border-radius: 6px;
  text-align: center;
}

.add-comment-form {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1f2937;
}

.add-comment-form h3 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.add-comment-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Admin Notes */
.admin-notes {
  background: #0a0f1a;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 1.25rem;
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  text-align: center;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #047857, #059669);
  color: white;
  box-shadow: 0 2px 8px rgba(4, 120, 87, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #065f46, #047857);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #1f2937;
  color: #e5e7eb;
  border: 1px solid #374151;
}

.btn-secondary:hover {
  background: #374151;
  border-color: #4b5563;
  transform: translateY(-1px);
}

.btn-warning {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.625rem 1rem;
  font-size: 0.8rem;
  min-height: 36px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  color: #e5e7eb;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  display: block;
}

/* Form Controls */
.form-control {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: #1f2937;
  border: 2px solid #374151;
  border-radius: 6px;
  color: #e5e7eb;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  min-height: 48px;
}

.form-control:focus {
  outline: none;
  border-color: #059669;
  background: #111827;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.form-control::placeholder {
  color: #6b7280;
  font-weight: 400;
}

.form-control:hover {
  border-color: #4b5563;
}

/* Select Dropdown Styles */
select.form-control {
  background: #1f2937;
  border: 2px solid #374151;
  color: #e5e7eb;
  cursor: pointer;
  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='white' 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: 1rem;
  padding-right: 3rem;
}

select.form-control:focus {
  outline: none;
  border-color: #059669;
  background: #111827;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

select.form-control:hover {
  border-color: #4b5563;
}

/* Select Options */
select.form-control option {
  background: #1f2937;
  color: #e5e7eb;
  padding: 0.75rem;
  border: none;
}

select.form-control option:hover,
select.form-control option:focus {
  background: #374151;
  color: white;
}

select.form-control option:checked {
  background: #047857;
  color: white;
}

/* Status Select */
.status-select {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #e5e7eb;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  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='white' 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 0.5rem center;
  background-size: 0.75rem;
  padding-right: 2rem;
  min-height: 36px;
}

.status-select:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}

.status-select:hover {
  border-color: #4b5563;
}

.status-select option {
  background: #1f2937;
  color: #e5e7eb;
  padding: 0.5rem;
}

.status-select option:hover,
.status-select option:focus {
  background: #374151;
}

/* Login Form Styles */
.login-form .form-group {
  margin-bottom: 1.5rem;
}

.login-form .form-group label {
  color: #e5e7eb;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}

.login-form .form-control {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: #1f2937;
  border: 2px solid #374151;
  border-radius: 6px;
  color: #e5e7eb;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.login-form .form-control:focus {
  outline: none;
  border-color: #059669;
  background: #111827;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.login-form .form-control:hover {
  border-color: #4b5563;
}

.login-form .form-control::placeholder {
  color: #6b7280;
  font-weight: 400;
}

/* Login Button */
.login-form .btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #047857, #059669);
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  border-radius: 6px;
  color: white;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}

.login-form .btn-primary:hover {
  background: linear-gradient(135deg, #065f46, #047857);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.4);
}

.login-form .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(4, 120, 87, 0.3);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 6px;
  border: 1px solid #1f2937;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.table th,
.table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid #1f2937;
  white-space: nowrap;
  font-size: 0.875rem;
}

.table th {
  background: #0a0f1a;
  color: #e5e7eb;
  font-weight: 600;
  position: sticky;
  top: 0;
  letter-spacing: -0.01em;
}

.table td {
  color: #9ca3af;
  font-weight: 500;
}

.table tr:hover {
  background: rgba(31, 41, 55, 0.4);
}

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

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.025em;
}

.status-pending {
  background: #1e40af;
  color: white;
}

.status-progress {
  background: #d97706;
  color: white;
}

.status-completed {
  background: #047857;
  color: white;
}

.status-cancelled {
  background: #dc2626;
  color: white;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-error {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(4, 120, 87, 0.15);
  border: 1px solid rgba(4, 120, 87, 0.3);
  color: #6ee7b7;
}

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

.modal-content {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.large-modal {
  max-width: 800px;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: white;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.modal-close:hover {
  color: white;
  background: #374151;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #1f2937;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Ticket Edit Grid */
.ticket-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.ticket-info h4,
.ticket-actions h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ticket-info .form-group {
  margin-bottom: 1rem;
}

.ticket-info .form-group label {
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: block;
}

.ticket-info .form-group span,
.ticket-info .form-group div {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}

.ticket-info .form-group a {
  color: #3b82f6;
  text-decoration: none;
}

.ticket-info .form-group a:hover {
  text-decoration: underline;
}

/* Demo Credentials */
.demo-credentials {
  background: rgba(31, 41, 55, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.demo-credentials p {
  margin-bottom: 0.25rem;
  color: #9ca3af;
}

.demo-credentials p:first-child {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #e5e7eb;
}

/* Ticket ID Styling */
.ticket-id {
  font-family: "Monaco", "Menlo", "Ubuntu Mono", "SF Mono", monospace;
  color: #3b82f6;
  font-weight: 600;
}

/* E-Mail-Einstellungen Styles */
.config-info {
  margin-bottom: 2rem;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.config-item {
  background: #0a0f1a;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #1f2937;
}

.config-item label {
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: block;
}

.config-item span {
  color: white;
  font-size: 0.9rem;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", "SF Mono", monospace;
  word-break: break-all;
}

.config-note {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1.5rem;
}

.config-note p {
  color: #93c5fd;
  margin: 0;
}

.config-note code {
  background: rgba(59, 130, 246, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", "SF Mono", monospace;
  color: white;
}

.notification-list {
  list-style: none;
  padding: 0;
}

.notification-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #0a0f1a;
  border: 1px solid #1f2937;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.notification-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notification-details strong {
  color: white;
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.notification-details p {
  color: #9ca3af;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1f2937;
  flex-wrap: wrap;
}

/* WhatsApp Integration Styles */
.whatsapp-settings {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.whatsapp-settings h4 {
  color: #4ade80;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.whatsapp-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.whatsapp-enabled {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.whatsapp-disabled {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

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

  .ticket-edit-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    position: fixed;
    top: 1rem;
    left: 1rem;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.mobile-visible {
    transform: translateX(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .sidebar.mobile-hidden {
    transform: translateX(-100%);
  }

  .mobile-close {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    padding-top: 4rem;
  }

  .header {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    margin-top: 0;
  }

  .header-right {
    justify-content: center;
    width: 100%;
  }

  .content {
    padding: 1rem;
  }

  /* Verbesserte Touch-Targets für Mobile */
  .nav-item {
    min-height: 52px;
    padding: 1rem;
    font-size: 1rem;
  }

  .nav-icon {
    font-size: 1.5rem;
    width: 24px;
  }

  /* Sidebar Animation für Mobile */
  .sidebar {
    will-change: transform;
  }
}

@media (max-width: 480px) {
  .login-form {
    padding: 1.5rem;
  }

  .login-header h1 {
    font-size: 1.5rem;
  }

  .logo-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .stat-info h3 {
    font-size: 1.25rem;
  }

  .action-card {
    padding: 1rem;
  }

  .action-icon {
    font-size: 2rem;
  }

  .card-content {
    padding: 1rem;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }
}

/* Desktop-only styles */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }

  .mobile-close {
    display: none !important;
  }

  .sidebar {
    transform: translateX(0) !important;
  }

  .sidebar-overlay {
    display: none !important;
  }

  .main-content {
    margin-left: 256px;
    padding-top: 0;
  }
}

/* Smooth Scrolling für Sidebar Navigation */
.sidebar-nav {
  scrollbar-width: thin;
  scrollbar-color: #374151 #111827;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: #111827;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .sidebar-overlay,
  .nav-item,
  .mobile-menu-toggle {
    transition: none;
  }
}

/* Focus States für Keyboard Navigation */
.nav-item:focus {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

.mobile-menu-toggle:focus {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

/* Hover Effects */
.card:hover {
  border-color: #4b5563;
  transition: border-color 0.2s;
}

.nav-item:hover .nav-icon {
  transform: scale(1.1);
  transition: transform 0.2s;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Focus States */
.form-control:focus,
.btn:focus {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

/* Leistungsrechner */
.card-bodyEcu {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1.25rem;
  color: white;
}

/* Options Checkboxen */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.option-item {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

.option-item:hover {
  background: #1f2937;
  border-color: #4b5563;
}

.option-list {
  margin: 5px 0 0 0;
  padding-left: 20px;
}

/* Touch Improvements */
@media (hover: none) and (pointer: coarse) {
  .nav-item:hover {
    background: initial;
  }

  .nav-item:active {
    background: #374151;
  }

  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.98);
  }
}

/* Accordion */
.accordion {
  background-color: #1f2937;
  color: #ffffff;
  cursor: pointer;
  width: 100%;
  outline: none;
  transition: 0.4s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid #374151;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px; /* Touch-friendly */
  text-align: center;
  margin-bottom: 1rem;
  border-radius: 6px;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active,
.accordion:hover {
  background-color: #111827;
  border-color: #4b5563;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  padding: 0 18px;
  background-color: #111827;
  display: none;
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #1f2937;
  padding: 1.25rem;
}
