/* glass.css */
body {
    background: #0f172a;
    font-family: 'Inter', system-ui, sans-serif;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before, body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s infinite alternate;
}
body::before { background: #4f46e5; top: 10%; left: 20%; }
body::after { background: #06b6d4; bottom: 10%; right: 20%; animation-delay: -5s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}
.glass-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(99, 102, 241, 0.5);
    outline: none;
}

.glass-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}
.glass-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.glass-btn:active:not(:disabled) { transform: translateY(0); }
.glass-btn:disabled { opacity: 0.5; cursor: not-allowed; }

#slip-file {
  display: block;
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #e2e8f0;
}
#slip-file::file-selector-button {
  margin-right: 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255,255,255,0.12);
  color: #e2e8f0;
  cursor: pointer;
}
#slip-file::file-selector-button:hover {
  background: rgba(255,255,255,0.2);
}
#upload-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e2e8f0;
}
#upload-btn:hover {
  background: rgba(255,255,255,0.2);
}

#toast-container {
    position: fixed; top: 20px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; gap: 10px;
}
.toast {
    min-width: 250px; padding: 12px 16px; border-radius: 8px; color: white; font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1); animation: slideIn 0.3s ease-out forwards;
}
.toast.success { background: rgba(16, 185, 129, 0.8); }
.toast.error { background: rgba(239, 68, 68, 0.8); }
.toast.info { background: rgba(59, 130, 246, 0.8); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
