@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e1b4b;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --error-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
}

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

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(30, 27, 75, 0.8) 0px, transparent 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 20px;
}

.app-container {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-card {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

.header {
  text-align: center;
  margin-bottom: 40px;
  width: 100%;
}

.logo-container {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.2);
  animation: float 6s ease-in-out infinite;
}

.logo-icon {
  width: 36px;
  height: 36px;
  color: #a855f7;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}

.title {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 90%;
  margin: 0 auto;
}

.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.issue-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) inset;
}

.issue-input::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.issue-input:focus {
  outline: none;
  border-color: #8b5cf6;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25), 0 4px 12px rgba(0, 0, 0, 0.2) inset;
}

.check-button {
  width: 100%;
  background: var(--accent-gradient);
  border: none;
  border-radius: 16px;
  padding: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.check-button:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.6);
}

.check-button:active:not(:disabled) {
  transform: translateY(1px);
}

.check-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(20%);
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  animation: fadeIn 0.3s ease-out;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #a855f7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.result-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.result-card {
  width: 100%;
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.result-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.2);
}

.result-error {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  box-shadow: 0 10px 30px -5px rgba(244, 63, 94, 0.2);
}

.result-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.result-success .result-icon {
  background: var(--success-gradient);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.result-error .result-icon {
  background: var(--error-gradient);
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.4);
}

.result-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.result-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.result-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: white;
}

.result-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.link-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (max-width: 600px) {
  .glass-card {
    padding: 36px 24px;
    border-radius: 24px;
  }
  .title {
    font-size: 28px;
  }
  .result-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
}
