:root {
    --color-active: #28a745;
    --color-total: #007bff;
    --color-expired: #dc3545;
    --color-users: #fd7e14;
}

.stats-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #222;
}

.table-responsive {
    margin-bottom: 2rem;
}
table.table td, table.table th {
    text-align: center;
    vertical-align: middle;
}
h2 {
    text-align: center;
}

@media (max-width: 768px) {
    .stats-number {
        font-size: 1.25rem;
    }

    table.table td, table.table th {
        font-size: 0.9rem;
		
    }
}

.stats-row {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stats-box {
    flex: 1 1 20%;
    padding: 1rem;
    border-radius: 8px;
    color: white;
    text-align: center;
    font-weight: bold;
    min-width: 150px;
}

.stats-active {
    background-color: var(--color-active);
}

.stats-total {
    background-color: var(--color-total);
}

.stats-expired {
    background-color: var(--color-expired);
}

.stats-users {
    background-color: var(--color-users);
}

@media (max-width: 768px) {
  table.table thead {
    display: none;
  }

  table.table tbody tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: #f7f9fc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
    color: #222;
  }

  table.table tbody tr:hover {
    background-color: #e6f0ff;
  }

  table.table tbody tr td {
    display: block;
    width: 100%;
    padding: 0.25rem 0;
  }

  table.table tbody tr td:first-child {
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
  }

  table.table tbody tr td:not(:first-child) {
    font-size: 0.95rem;
    color: #444;
  }

  /* Aktív emlékeztetők zöld keret */
  table.table tbody tr .badge.bg-success {
    border: 2px solid #28a745;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
  }

table.table tbody tr.active {
    border: 2px solid #28a745; /* szép zöld keret */
}

table.table tbody tr.expired {
    border: 2px solid #dc3545; /* szép piros keret */
}

