body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #2d2d2d, #392727);
  /* linear-gradient(135deg, #2d2d2d, #392727); */
  /* radial-gradient(circle at center, #1b1313 0%, #271919 100%) */
  color: #fff;
  overflow-x: hidden;
}
h1 {
  text-align: center;
  font-size: 38px;
  margin: 40px 0 30px;
  color: #ff1e1e;
  text-shadow: 0 0 12px #ff1e1e;
  animation: fadeInDown 0.7s ease-out;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 50px;
}

.status-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.card {
  background-color: #1a1a1a;
  border-radius: 16px;
  padding: 25px;
  flex: 1 1 22%;
  text-align: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 30, 30, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 30, 30, 0.6);
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background-color: #1b1b1b;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
  animation: fadeInUp 1s ease forwards;
}

th, td {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #333;
}

thead {
  background-color: #111;
  color: #ff4c4c;
}

tbody tr {
  transition: transform 0.2s ease;
}

tbody tr:hover {
  background-color: #252525;
  transform: scale(1.01);
}

tbody tr:nth-child(even) {
  background-color: #1c1c1c;
}

tbody tr:nth-child(odd) {
  background-color: #161616;
}

.status {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
}

.online {
  background-color: #00ff00;
  box-shadow: 0 0 8px #00ff00;
}

.offline {
  background-color: #ff0000;
  box-shadow: 0 0 8px #ff0000;
}

.card-label {
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.card-value {
  font-size: 30px;
  font-weight: bold;
}

.search-bar {
  width: 250px;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #333;
  border-radius: 8px;
  border: 2px solid #444;
  color: #fff;
  font-size: 18px;
  display: inline-block;
  box-shadow: 0 0 5px rgba(255, 30, 30, 0.3);
}

.search-bar:focus {
  outline: none;
  box-shadow: 0 0 8px #ff1e1e;
}

.filter-btn {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  margin: 0 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-btn:hover {
  background-color: #ff1e1e;
}

.copy-btn, .delete-btn {
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  margin-left: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.copy-btn:hover, .delete-btn:hover {
  background-color: #ff1e1e;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: linear-gradient(135deg, #2d2d2d, #392727);
    padding: 10px 0;
    text-align: center;
  }
  
.footer p {
    margin: 0;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .search-bar {
    width: 100%;
  }
}

.auth-form {
  max-width: 400px;
  margin: 210px auto;
  padding: 30px;
  background-color: #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(255, 30, 30, 0.3);
  animation: fadeInUp 0.6s ease forwards;
}

.auth-form h2 {
  text-align: center;
  color: #ff4c4c;
  margin-bottom: 25px;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
  width: 95%;
  padding: 10px;
  margin: 1px 0 10px;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #2c2c2c;
  color: #fff;
  font-size: 16px;
  box-shadow: inset 0 0 5px rgba(255, 30, 30, 0.2);
}

.auth-form input:focus {
  outline: none;
  border-color: #ff1e1e;
  box-shadow: 0 0 6px #ff1e1e;
}

.auth-form .toggle-password {
  position: relative;
  float: right;
  margin-top: -40px;
  margin-right: 10px;
  cursor: pointer;
  font-size: 15px;
  color: #ff4c4c;
}

.auth-form button {
  width: 100%;
  padding: 12px;
  background-color: #ff1e1e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.auth-form button:hover {
  background-color: #e60000;
}

.auth-form p {
  text-align: center;
  margin-top: 15px;
}

.auth-form a {
  color: #ff4c4c;
  text-decoration: none;
}

.auth-form a:hover {
  text-decoration: underline;
}

.center-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box {
  background-color: #1a1a1a;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 30, 30, 0.3);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.top-right-user {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 999;
}

.user-info {
	color: #fff;
	font-size: 16px;
}

.profile-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	border: 1px solid #ab0e0e;
	object-fit: cover;
}

.profile-dropdown {
	position: relative;
}

.profile-menu {
	display: none;
	position: absolute;
	top: 50px;
	right: 0;
	background: #1c1c1c;
	border: 1px solid #444;
	border-radius: 10px;
	padding: 10px 15px;
	box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
	z-index: 1000;
	min-width: 200px;
	color: #fff;
}

.profile-menu p {
	margin: 0 0 10px;
	font-size: 14px;
}

.logout-link {
	display: block;
	text-align: center;
	padding: 6px 10px;
	background-color: #ff1e1e;
	border-radius: 6px;
	color: #fff;
	text-decoration: none;
	font-weight: bold;
}

.logout-link:hover {
	background-color: #c00;
}

.snowflake {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 8px;
  background: white;
  opacity: 0.5;
  border-radius: 50%;
  pointer-events: none;
  animation: fall linear infinite;
  z-index: 1;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
  }
}