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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
}

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

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

.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, #7c3aed, #3b82f6);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.login-header h1 {
  color: white;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: #94a3b8;
}

.login-form {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-form h2 {
  color: white;
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.form-description {
  text-align: center;
  color: #94a3b8;
  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: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle:hover {
  background: #334155;
  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: #1e293b;
  border-right: 1px solid #334155;
  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.5);
  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 #334155;
  position: relative;
}

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

.sidebar-header .logo-icon {
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.logo-text {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
}

.mobile-close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #94a3b8;
  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: #334155;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
  min-height: 48px;
  position: relative;
}

.nav-item:hover {
  background: #334155;
  color: white;
  transform: translateX(4px);
}

.nav-item.active {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: white;
}

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

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

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

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

.logout {
  color: #ef4444 !important;
}

.logout:hover {
  background: rgba(239, 68, 68, 0.1) !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: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.header h1 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.header p {
  color: #94a3b8;
  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;
}

.user-credits span {
  color: #94a3b8;
  font-size: 0.875rem;
}

.user-credits strong {
  color: #3b82f6;
  font-size: 1.25rem;
  display: block;
}

.user-info {
  color: #94a3b8;
}

.user-info strong {
  color: white;
}

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

/* Cards */
.card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

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

.card-header h2,
.card-header h3 {
  color: white;
  margin: 0;
}

.card-content {
  padding: 1.5rem;
}

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

.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: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

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

.reopen-info p:last-child {
  margin-bottom: 0;
  color: #94a3b8;
  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: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.stat-card.gradient-purple {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  border: none;
  color: white;
}

.stat-card.gradient-teal {
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
  border: none;
  color: white;
}

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

.stat-info h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-info p {
  font-size: 0.875rem;
  opacity: 0.9;
}

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

.stat-icon {
  font-size: 2rem;
  opacity: 0.7;
}

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

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #3b82f6);
  border-radius: 4px;
  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: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.action-card.gradient-teal {
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
  color: white;
}

.action-card.gradient-purple {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: white;
}

.action-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.action-content p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.action-icon {
  font-size: 3rem;
  opacity: 0.3;
}

/* 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.5;
}

.empty-state h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

/* 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: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-item span {
  color: white;
  font-size: 0.875rem;
}

.description-text {
  color: white;
  font-size: 0.875rem;
  line-height: 1.6;
}

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

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

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.file-name {
  color: white;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.875rem;
  word-break: break-all;
}

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

.no-file {
  color: #94a3b8;
  font-style: italic;
  padding: 0.75rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  margin: 0;
}

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

.comment-item {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #334155;
}

.admin-comment {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
}

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

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

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

.comment-date {
  color: #94a3b8;
  font-size: 0.75rem;
}

.comment-content {
  color: #e2e8f0;
  font-size: 0.875rem;
  line-height: 1.6;
  word-wrap: break-word;
}

.no-comments {
  color: #94a3b8;
  font-style: italic;
  padding: 1rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  text-align: center;
}

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

.add-comment-form h3 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

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

/* Admin Notes */
.admin-notes {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1rem;
  color: #e2e8f0;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px; /* Touch-friendly */
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6d28d9, #2563eb);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #d97706, #dc2626);
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  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 {
  /*display: block;*/
  color: #e2e8f0;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

/* Form Controls */
.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  min-height: 48px; /* Touch-friendly */
}

.form-control:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.6);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1), 0 8px 32px rgba(124, 58, 237, 0.15), inset 0 1px 0
    rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.form-control:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

/* Select Dropdown Styles */
select.form-control {
  background: #1e293b;
  border: 2px solid #334155;
  color: white;
  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: #7c3aed;
  background: #1e293b;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

select.form-control:hover {
  border-color: #475569;
  background: #1e293b;
}

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

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

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

/* Status Select (für Admin-Bereich) */
.status-select {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  color: white;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  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: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

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

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

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

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

.login-form .form-group label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

.login-form .form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.login-form .form-control:focus {
  outline: none;
  border-color: #7c3aed;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15), 0 8px 25px rgba(124, 58, 237, 0.2), inset 0 1px 0
    rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.login-form .form-control:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.login-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

/* Login Button */
.login-form .btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  border-radius: 12px;
  color: white;
  margin-top: 0.5rem;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.login-form .btn-primary:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.login-form .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

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

.table th {
  background: #0f172a;
  color: #e2e8f0;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.table td {
  color: #94a3b8;
}

.table tr:hover {
  background: rgba(51, 65, 85, 0.3);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.status-pending {
  background: #3b82f6;
  color: white;
}

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

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

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

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #86efac;
}

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

.modal-content {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  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 #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: white;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  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: #334155;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #334155;
  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;
}

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

.ticket-info .form-group label {
  color: #94a3b8;
  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.875rem;
}

.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(51, 65, 85, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.demo-credentials p {
  margin-bottom: 0.25rem;
  color: #94a3b8;
}

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

/* Ticket ID Styling */
.ticket-id {
  font-family: "Monaco", "Menlo", "Ubuntu 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: #0f172a;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #334155;
}

.config-item label {
  color: #94a3b8;
  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.875rem;
  font-family: "Monaco", "Menlo", "Ubuntu 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: 8px;
  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", monospace;
  color: white;
}

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

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

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

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

.notification-details p {
  color: #94a3b8;
  margin: 0;
  font-size: 0.875rem;
}

.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 #334155;
  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: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

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

.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: #334155 #1e293b;
}

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

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

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

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

/* 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 #7c3aed;
  outline-offset: 2px;
}

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

/* Hover Effects */
.card:hover {
  border-color: #475569;
  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 #7c3aed;
  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;
  /*background: #f8f9fa;*/
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

.option-item:hover {
  /*background: #e9ecef;*/
}

.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: #334155;
  }

  .btn:hover {
    transform: none;
  }

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

/* Accordion */
.accordion {
	background-color: #1e293b;
	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 #334155;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	min-height: 44px; /* Touch-friendly */
	text-align: center;
	margin-bottom: 1rem;
}

/* 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: #1e293b;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
	padding: 0 18px;
	background-color: #1e293b;
	display: none;
	overflow: hidden;
	margin-bottom: 1rem;
}