* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, #00b4db, #0083b0);
}

.app {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 18px 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    color: #ffffff;
}

.app h1 {
    text-align: center;
    font-size: 1.7rem;
    margin-bottom: 6px;
}

.subtitle {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 18px;
}

.card {
    background: linear-gradient(120deg, #ff9a9e, #fecfef, #8ec5fc);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 16px;
}

.card input {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.card button {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(120deg, #667eea, #764ba2);
    box-shadow: 0 10px 18px rgba(64, 69, 160, 0.45);
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s;
}

.card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(64, 69, 160, 0.55);
}

.card button:active {
    transform: translateY(1px);
    box-shadow: 0 6px 12px rgba(64, 69, 160, 0.45);
    opacity: 0.9;
}

.status-row {
    display: flex;
    align-items: center;
    margin-top: 6px;
    min-height: 22px;
}

.status {
    font-size: 0.8rem;
    margin-left: 8px;
}

.status.error {
    color: #ffe8ec;
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result-card {
    background: linear-gradient(135deg, #d4fc79, #96e6a1);
    border-radius: 18px;
    padding: 14px 14px 12px;
    color: #163516;
}

.result-card h2 {
    margin-bottom: 4px;
}

.result-card p {
    margin-top: 4px;
    font-size: 0.9rem;
}

.result-card .time {
    margin-top: 6px;
    font-size: 0.8rem;
    opacity: 0.9;
}
.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    text-align: center;
    color: #ffffff;
    font-size: 0.9rem;
    z-index: 1000;
}
.download-btn {
    margin-top: 12px;
}
.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-row button {
  width: 50%;
}

.clear-btn {
  background: #ff4d4d;
  color: white;
}
