/* helpdesk/css/style.css */

/* ===== Reset & Basis ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-family: 'Open Sans', sans-serif;
  background: #f4f5f7;
  color: #333;
}

/* ===== Container für alle Seiten ===== */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px;
  box-sizing: border-box;
}

/* ===== Header (Logo + Navigation) ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3b28bb;
  text-decoration: none;
}
.header .nav-links a {
  margin-left: 16px;
  font-size: 14px;
  color: #3b28bb;
  text-decoration: none;
  transition: color 0.15s;
}
.header .nav-links a:hover {
  color: #6754e9;
}

/* ===== Formular‐Wrappers ===== */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(80,88,120,0.05);
  padding: 24px;
  margin-bottom: 24px;
}
.card h2 {
  margin-bottom: 16px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #3b28bb;
}

/* ===== Inputs, Selects, Textareas, Buttons ===== */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
}
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  border-color: #6754e9;
  box-shadow: 0 0 0 1.5px rgba(103,84,233,0.4);
}
.form-control-small {
  width: 100%;
  max-width: 200px;
  padding: 8px 10px;
  font-size: 13px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #6754e9 0%, #3b28bb 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s;
}
.button-primary:hover {
  background: linear-gradient(90deg, #3b28bb 0%, #6754e9 100%);
}
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #4b5563;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.button-secondary:hover {
  background: #d1d5db;
  color: #222;
}

/* ===== Alerts ===== */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-error {
  background: #ffe4e6;
  border: 1px solid #fca5a5;
  color: #b72850;
}
.alert-success {
  background: #e9faed;
  border: 1px solid #a0d995;
  color: #2f6b33;
}

/* ===== Tabellen (für Tickets‐Dashboard) ===== */
.table-wrapper {
  overflow-x: auto;
}
.ticket-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}
.ticket-table th,
.ticket-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.ticket-table th {
  background: #f9fafb;
  color: #333;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}
.ticket-table tr:nth-child(even) td {
  background: #fbfcfd;
}
.ticket-table tr:hover td {
  background: #f1f5f9;
}
.ticket-table td.ellipsis {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Badges ===== */
.badge-category {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.badge-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

/* ===== Icon-Buttons in Tabellenzeile ===== */
.icon-btn {
  background: none;
  border: none;
  color: #4b5563;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover {
  background: #eef2ff;
  color: #3b28bb;
}
.icon-btn-danger {
  color: #e11d48;
}
.icon-btn-danger:hover {
  background: #ffe4e6;
  color: #be123c;
}

/* ===== Pagination ===== */
.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pag-link {
  display: inline-block;
  padding: 8px 12px;
  color: #4b5563;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.pag-link:hover {
  background: #f3f4f6;
}
.pag-link.active {
  background: #6754e9;
  color: #fff;
  border-color: #6754e9;
}

/* ===== Footer‐Link (z. B. „powered by“) ===== */
.footer-link {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
.footer-link a {
  color: #6b7280;
  text-decoration: none;
}
.footer-link a:hover {
  text-decoration: underline;
}

/* ===== Responsive Anpassungen ===== */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .header .nav-links {
    display: flex;
    gap: 12px;
  }
  .ticket-table {
    min-width: 0;
  }
  .filter-bar {
    flex-direction: column;
    gap: 12px;
  }
  .filter-item .modern-input,
  .filter-item .modern-select,
  .filter-item .button-primary {
    width: 100%;
  }
}
</style>
