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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 14px;
  background-color: #f5f5f5;
  min-height: 100vh;
}

button {
  margin: 0;
  padding: 0;
  line-height: normal;
  border: none;
  outline: none;
}

button::after {
  border: none;
}

button:active {
  opacity: 0.8;
  transform: scale(0.98);
  transition: all 0.2s;
}

.container {
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-text {
  color: white;
  font-size: 16px;
}

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0,0,0,0.7);
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 10000;
  animation: fadeIn 0.2s ease-out;
}

.toast-success {
  background-color: rgba(76, 175, 80, 0.9);
}

.toast-error {
  background-color: rgba(244, 67, 54, 0.9);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  width: 80%;
  max-width: 300px;
  background-color: white;
  border-radius: 15px;
  padding: 25px;
  animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 15px;
}

.modal-text {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 20px;
}

.modal-buttons {
  display: flex;
  gap: 10px;
}

.modal-btn {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: bold;
  border: none;
}

.modal-btn-secondary {
  background-color: #f5f5f5;
  color: #666;
}

.modal-btn-primary {
  background-color: #ff6b81;
  color: white;
}

.btn-back {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  z-index: 10;
}

.btn-back:active {
  background-color: rgba(255,255,255,0.5);
}

@media (min-width: 768px) {
  .page-container {
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
  }
}
