/* ===== Reset & Basics ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  color: #1f2937;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Layout ===== */
.sidebar {
  width: 240px;
  background: linear-gradient(180deg, #111827, #1f2937);
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from { transform: translateX(-40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

/* ===== Sidebar ===== */

/* Login als Menüpunkt wie die anderen Links */
.sidebar a.menu-link {
  color: #d1d5db;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.sidebar a.menu-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateX(4px);
}


.sidebar h3 {
  margin-bottom: 24px;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.sidebar a {
  color: #d1d5db;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateX(4px);
}


.login-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(59,130,246,0.35);
}

/* ===== Headings ===== */
h2 {
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

h3 { margin-bottom: 16px; }
h4 { margin: 20px 0 8px; }

/* ===== Cards ===== */
.card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 24px;
  max-width: 520px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  animation: fadeUp 0.5s ease-out;
}

/* ===== Inputs & Select ===== */
input,
select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  transition: border 0.2s, box-shadow 0.2s, transform 0.15s;
}

input:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.25);
  transform: scale(1.01);
}

/* ===== Buttons ===== */
button {
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.actions button {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  margin-right: 6px;
}

.actions button:last-child {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* ===== Table ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

th, td {
  text-align: left;
  padding: 10px;
}

thead {
  background: #f3f4f6;
}

tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: #f1f5f9;
}

/* ===== Utility ===== */
.hidden { display: none; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  body { flex-direction: column; }

  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar a {
    flex: 1 1 45%;
    text-align: center;
  }

  .login-btn {
    width: 100%;
    margin-top: 16px;
  }

  .content { padding: 20px; }
}