/* Háttér és alapbeállítások */
.login-page {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Külső konténer a középre igazításhoz */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* A bejelentkező kártya */
.login-box {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.login-box h2 {
    margin: 0 0 5px 0;
    color: #2d3748;
    font-size: 24px;
    font-weight: 700;
}

.login-subtitle {
    color: #718096;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Hibaüzenet doboz */
.error-msg {
    background-color: #fff5f5;
    color: #e53e3e;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid #fed7d7;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Input mezők konténere az ikonokhoz */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 16px;
    transition: color 0.2s ease;
}

/* Maguk az input mezők */
.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    border-radius: 10px;
    font-size: 15px;
    color: #4a5568;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

/* Aktív állapot (fókusz) */
.input-group input:focus {
    background-color: #ffffff;
    border-color: #2f89fc; /* A korábbi gombod kék színe */
    box-shadow: 0 0 0 3px rgba(47, 137, 252, 0.15);
}

.input-group input:focus + .input-icon {
    color: #2f89fc;
}

/* Bejelentkező gomb */
.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #2f89fc;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(47, 137, 252, 0.2);
}

.btn-login:hover {
    background-color: #1a75e8;
}

.btn-login:active {
    transform: scale(0.99);
}

/* Lábléc link */
.login-footer {
    margin-top: 25px;
    font-size: 14px;
}

.login-footer a {
    color: #718096;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: #2f89fc;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f5f7;
  color: #333;
}
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 220px;
  height: 100vh;
  background: #2c3e50;
  padding: 20px;
  color: #fff;
}
.sidebar .logo {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 30px;
}
.menu a {
  display: block;
  color: #bdc3c7;
  text-decoration: none;
  margin: 15px 0;
  padding: 10px;
  border-radius: 6px;
}
.menu a.active,
.menu a:hover {
  background: #1abc9c;
  color: white;
}
.topbar {
  margin-left: 220px;
  height: 60px;
  background: #ecf0f1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.topbar .username {
  font-weight: bold;
}
.main {
  margin-left: 220px;
  padding: 20px;
}
.content-header {
  margin-bottom: 20px;
}
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 20px;
}
.page-title {
  font-size: 24px;
  font-weight: 600;
}

.button {
  display: inline-block;
  padding: 10px 16px;
  background: #1abc9c;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  margin-bottom: 20px;
}
.button:hover {
  background: #16a085;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
}
.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.data-table th {
  background: #ecf0f1;
  font-weight: bold;
}
.data-table tr:hover {
  background: #f9f9f9;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.admin-table th, .admin-table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
.admin-table th {
  background: #f0f0f0;
}
.button {
  background: #1abc9c;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 6px;
}
.button:hover {
  background: #16a085;
}

.table-actions a {
  display: inline-block;
  padding: 6px 12px;
  margin-right: 5px;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
}
.table-actions a.edit {
  background-color: #3498db;
}
.table-actions a.edit:hover {
  background-color: #2980b9;
}
.table-actions a.delete {
  background-color: #e74c3c;
}
.table-actions a.delete:hover {
  background-color: #c0392b;
}
.submenu {
  margin-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.submenu a {
  font-size: 0.95rem;
  color: #333;
  padding-left: 1rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.submenu a:hover {
  background: #f0f0f0;
  border-radius: 4px;
}

