:root {
  --primary: rgba(10, 132, 255, 0.8);
  --danger: rgba(255, 69, 58, 0.8);
  --background: url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat fixed;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--background);
  padding: 20px;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(10px) brightness(0.6);
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 420px;
  background: rgba(28, 28, 30, 0);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: white;
}

h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
  background: linear-gradient(90deg, #32D0FF, #A162E8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(44, 44, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  transition: all 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(44, 44, 46, 0.8);
}

button {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: rgba(10, 132, 255, 0.9);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: rgba(255, 69, 58, 0.9);
}

.alarms-section {
  margin-top: 28px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: 18px;
  font-weight: 500;
}

.alarms-list {
  max-height: 300px;
  overflow-y: auto;
}

.alarm-item {
  background: rgba(44, 44, 46, 0.5);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid var(--primary);
  transition: all 0.3s;
}

.alarm-time {
  font-size: 18px;
  font-weight: 500;
}

.alarm-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.status-message {
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
}

.status-message.show {
  opacity: 1;
}

.success {
  background: rgba(48, 209, 88, 0.2);
  color: #30D158;
}

.error {
  background: rgba(255, 69, 58, 0.2);
  color: #FF453A;
}

@media (max-width: 480px) {
  .container {
    padding: 20px;
  }
}

.connection-status {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-dot.connected {
  background-color: #30D158;
  box-shadow: 0 0 8px #30D158;
}

.status-dot.disconnected {
  background-color: #FF453A;
}

.status-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}