/* ========================================
   COMMON STYLES - Smart Pet Feeder
   Спільні стилі для всіх сторінок
======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ========== CARDS ========== */
.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h2 .icon {
  font-size: 1.5rem;
}

/* ========== BUTTONS ========== */
.btn {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 10px;
  transition: transform 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: scale(1.02);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0088cc, #00aaff);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, #00ff88, #00cc66);
  color: #000;
}

.btn-warning {
  background: linear-gradient(135deg, #ff9f43, #ff7f00);
  color: #000;
}

.btn-danger {
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
}

/* ========== ALERTS ========== */
.alert {
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
}

.alert-info {
  background: rgba(0, 136, 204, 0.2);
}

.alert-success {
  background: rgba(0, 255, 136, 0.2);
}

.alert-error {
  background: rgba(255, 68, 68, 0.2);
}

.alert-warning {
  background: rgba(255, 159, 67, 0.2);
}

/* ========== LANGUAGE SELECTOR ========== */
.lang-selector {
  display: flex;
  gap: 5px;
}

.lang-btn {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
  background: rgba(0, 255, 136, 0.2);
  border-color: #00ff88;
}

/* ========== FORM ELEMENTS ========== */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #888;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: #00ff88;
}

.form-group input::placeholder {
  color: #666;
}

/* ========== STATUS INDICATORS ========== */
.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: auto;
}

.status-indicator.online {
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88;
}

.status-indicator.offline {
  background: #ff4444;
  box-shadow: 0 0 10px #ff4444;
}

/* ========== LINKS ========== */
.telegram-link {
  display: block;
  text-align: center;
  padding: 15px 30px;
  background: linear-gradient(135deg, #0088cc, #00aaff);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: transform 0.3s;
}

.telegram-link:hover {
  transform: scale(1.05);
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 0.9rem;
}

footer a {
  color: #888;
  text-decoration: none;
}

footer a:hover {
  color: #00ff88;
}

/* ========== UTILITIES ========== */
.hidden {
  display: none !important;
}

/* ========== ANIMATIONS ========== */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  .card {
    padding: 20px;
  }

  .btn {
    padding: 12px;
  }
}
