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

:root {
  --google-blue: #1a73e8;
  --google-blue-hover: #1557b0;
  --google-blue-light: #e8f0fe;
  --google-blue-dark: #174ea6;
  --red: #ea4335;
  --yellow: #fbbc04;
  --green: #34a853;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f4;
  --gray-200: #dadce0;
  --gray-300: #d2d3d5;
  --gray-400: #9aa0a6;
  --gray-500: #5f6368;
  --gray-600: #3c4043;
  --gray-700: #202124;
  --gray-800: #1a1a1a;
  --shadow-xs: 0 1px 2px rgba(60, 64, 67, 0.08);
  --shadow-sm: 0 1px 3px rgba(60, 64, 67, 0.15), 0 1px 2px rgba(60, 64, 67, 0.1);
  --shadow-md: 0 4px 6px rgba(60, 64, 67, 0.12), 0 1px 3px rgba(60, 64, 67, 0.08);
  --shadow-lg: 0 10px 15px rgba(60, 64, 67, 0.1), 0 4px 6px rgba(60, 64, 67, 0.05);
  --shadow-xl: 0 20px 25px rgba(60, 64, 67, 0.1), 0 10px 10px rgba(60, 64, 67, 0.04);
  --shadow-2xl: 0 25px 50px rgba(60, 64, 67, 0.15);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Roboto Mono', 'Fira Code', 'Consolas', monospace;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-700);
  background: linear-gradient(135deg, var(--gray-50) 0%, #e8eaed 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--google-blue-light);
  color: var(--google-blue-dark);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

p {
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 16px;
}

a {
  color: var(--google-blue);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--google-blue-hover);
}

.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  margin: 24px 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::before {
  width: 200px;
  height: 200px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--google-blue) 0%, var(--google-blue-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--google-blue-hover) 0%, var(--google-blue) 100%);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.5);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-success {
  background: rgba(52, 168, 83, 0.1);
  color: var(--green);
}

.badge-warning {
  background: rgba(251, 188, 4, 0.15);
  color: #9a6700;
}

.badge-error {
  background: rgba(234, 67, 53, 0.1);
  color: var(--red);
}

.badge-info {
  background: var(--google-blue-light);
  color: var(--google-blue);
}

.input {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--gray-700);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  outline: none;
}

.input:hover {
  border-color: var(--gray-300);
}

.input:focus {
  border-color: var(--google-blue);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.input::placeholder {
  color: var(--gray-400);
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  margin: 32px 0;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--google-blue);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

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

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

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

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

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.animate-slide-in {
  animation: slideIn 0.3s ease-out forwards;
}