@import "./reset.css";

:root {
  font-size: 10px;
}

body {
  font-family: sans-serif;
  margin: 0;
  background-color: #f9f9f9;
  padding-top: 30px;
}

.app {
  background-color: #fff;
  padding: 20px;
  @media screen and (min-width: 768px) {
    max-width: 768px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }

  header {
    h1 {
      font-size: 1.8rem;
      text-align: center;
      margin-bottom: 20px;
    }
  }
}

.status-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.status-category-group {
  h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #777;
  }  
}

.status-category-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.status-category-buttons > button {
  width: 100%;
  box-sizing: border-box;
}

button {
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}

button:hover {
  background-color: #f0f0f0;
  color: #333;
  img {
    opacity: 0.8;
  }
}

button:active {
  background-color: #e0e0e0;
  color: #333;
}

button > span {
  display: none;
}

.toast-container {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  width: min(90vw, 420px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #333;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  font-size: 1.4rem;
  position: relative;
  overflow: hidden;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(8px) scale(0.98); }
}

.toast.show { animation: toast-in .18s ease-out both; }
.toast.hide { animation: toast-out .18s ease-in both; }

.toast::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.6);
  width: 100%;
  transform-origin: left center;
  animation: toast-progress var(--duration, 3000ms) linear both;
}

@keyframes toast-progress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

.toast.success { background: #2e7d32; }
.toast.error   { background: #c62828; }
.toast.warn    { background: #ef6c00; }