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

:root {
  /* Modern 2025 Color Palette */
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --secondary: #0891b2;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Neutral Colors */
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray: #475569;
  --gray-light: #cbd5e1;
  --light: #f8fafc;
  --bg-primary: #fafbfc;
  --bg-secondary: #f4f6f8;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-light: #e2e8f0;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-secondary: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  --gradient-hero: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Homepage specific gradient background */
body.homepage {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-attachment: fixed;
}

body.homepage::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 135, 191, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(99, 102, 241, 0.2) 0%,
      transparent 50%
    );
  animation: backgroundMove 15s ease infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes backgroundMove {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Tool pages specific background */
body.tool-page {
  background: var(--gradient-hero);
}

body.tool-page::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(79, 70, 229, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body.tool-page::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Main Container */
main.container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  padding: 3rem;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
  position: relative;
  z-index: 1;
}

/* Navbar Styles */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

/* Homepage navbar glass effect */
body.homepage .navbar {
  background: rgba(255, 255, 255, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.homepage .navbar-brand {
  color: white !important;
}

body.homepage .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
}

body.homepage .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

body.homepage .nav-link.active {
  background: rgba(255, 255, 255, 0.25);
}

/* Tool pages navbar */
body.tool-page .navbar-brand {
  color: var(--text-primary) !important;
}

body.tool-page .nav-link {
  color: var(--text-secondary) !important;
}

body.tool-page .nav-link:hover,
body.tool-page .nav-link.active {
  background: var(--bg-secondary);
  color: var(--primary) !important;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.navbar-brand i {
  font-size: 1.8rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1.25rem !important;
  border-radius: 50px;
  transition: var(--transition);
  margin: 0 0.25rem;
  font-size: 0.95rem;
}

/* Hero Section - Homepage */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.125rem 2.75rem;
  background: var(--primary);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.3);
  transition: var(--transition);
  font-size: 1.05rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.4);
  color: white;
  background: var(--primary-dark);
}

/* Section Styles */
.section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.section-title p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* Tool Cards - Works for both homepage and tool pages */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.tool-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  transition: var(--transition);
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(-5deg);
  background: var(--gradient-primary);
  color: white;
}

.tool-card h3,
.tool-card h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.tool-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  flex-grow: 1;
  line-height: 1.7;
}

.tool-link,
.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--bg-secondary);
  color: var(--primary);
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  align-self: flex-start;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.tool-link:hover,
.btn-tool:hover {
  background: var(--primary);
  color: white;
  transform: translateX(4px);
}

/* Upload Area - Modern Design (No color change on hover) */
.upload-area {
  border: 3px dashed var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.upload-area:hover,
.upload-area.dragging {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.upload-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.upload-icon i {
  font-size: 3rem;
  color: white;
}

.upload-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.upload-subtext {
  font-size: 0.95rem;
  color: var(--gray);
}

/* Preview Area */
.preview-area {
  background: rgba(248, 250, 252, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(203, 213, 225, 0.5);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-lg);
}

.preview-image {
  max-width: 100%;
  max-height: 450px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 4px solid white;
}

/* Control Panel */
.control-panel {
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
}

.control-panel h5 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.control-panel label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Form Controls */
.form-control,
.form-select {
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
  background: white;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
  outline: none;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--gray-light);
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-range {
  height: 8px;
  background: var(--gray-light);
  border-radius: 10px;
}

.form-range::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
  cursor: pointer;
}

.form-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
  cursor: pointer;
}

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning), #d97706);
  border: none;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-info {
  background: linear-gradient(135deg, var(--accent), #0d9488);
  border: none;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  border: none;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-download {
  background: linear-gradient(135deg, var(--success), #059669);
  border: none;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.4);
  color: white;
}

.btn-secondary {
  background: white;
  border: 2px solid var(--gray-light);
  color: var(--dark);
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--light);
  border-color: var(--gray);
}

/* Spinner */
.spinner-wrapper {
  display: none !important;
  text-align: center;
  padding: 3rem;
}

.spinner-wrapper.show {
  display: block !important;
}

.spinner-border {
  width: 4rem;
  height: 4rem;
  border-width: 0.4rem;
  border-color: var(--primary);
  border-right-color: transparent;
}

/* Result Area */
.result-area {
  background: linear-gradient(135deg, var(--light) 0%, white 100%);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-top: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.result-area h5 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 2rem;
}

.file-info {
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem auto;
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

.file-info-item {
  display: inline-block;
  margin: 0 1.5rem;
  font-size: 0.95rem;
}

.file-info-item strong {
  color: var(--dark);
  font-weight: 700;
}

/* Features Section */
.features-section {
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-secondary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
}

.feature-card h3,
.feature-card h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Footer */
footer {
  background: var(--text-primary);
  padding: 4rem 0 2rem;
  color: var(--bg-card);
  margin-top: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
}

.footer-brand h3 i {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 350px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-links-column h4 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: white;
}

.footer-links-column ul {
  list-style: none;
  padding: 0;
}

.footer-links-column ul li {
  margin-bottom: 0.75rem;
}

.footer-links-column ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links-column ul li a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Tool-specific Components */
.image-item {
  position: relative;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: white;
  transition: var(--transition);
}

.image-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.image-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.image-item .remove-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--danger);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.image-item .remove-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.image-item .image-index {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

.format-option {
  border: 3px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: white;
  height: 100%;
}

.format-option:hover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.format-option.selected {
  border-color: var(--primary);
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.format-option i {
  font-size: 2.5rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.75rem;
}

.format-option span {
  font-weight: 700;
  color: var(--dark);
  font-size: 1.15rem;
}

.compression-preset {
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.75rem;
  transition: var(--transition);
  height: 100%;
  background: white;
}

.compression-preset:hover {
  border-color: var(--warning);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.compression-preset.active {
  border-color: var(--warning);
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1),
    rgba(217, 119, 6, 0.1)
  );
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.aspect-preset {
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  transition: var(--transition);
  background: white;
}

.aspect-preset:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.aspect-preset.active {
  border-color: var(--accent);
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.1),
    rgba(8, 145, 178, 0.1)
  );
}

#cropContainer {
  max-width: 100%;
  margin: 0 auto;
  display: inline-block;
}

#cropCanvas {
  max-width: 100%;
  border: 3px solid var(--gray-light);
  border-radius: var(--radius-md);
  cursor: crosshair;
  box-shadow: var(--shadow-lg);
}

#cropBox {
  border: 3px solid var(--accent);
  background: rgba(6, 182, 212, 0.15);
  backdrop-filter: blur(2px);
}

.crop-handle {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}

.progress {
  display: none;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--gray-light);
  overflow: hidden;
}

.progress.show {
  display: flex;
}

.progress-bar {
  background: linear-gradient(90deg, var(--success), var(--accent));
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 24px;
}

.card {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.badge {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}

.alert {
  border: none;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark), #7c3aed);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  main.container {
    padding: 2rem 1.5rem;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.125rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title h2 {
    font-size: 2.25rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tool-card {
    padding: 2rem 1.5rem;
  }

  .upload-area {
    padding: 3rem 1.5rem;
  }

  .upload-icon {
    width: 80px;
    height: 80px;
  }

  .upload-icon i {
    font-size: 2.5rem;
  }

  .tool-icon {
    width: 60px;
    height: 60px;
  }

  .tool-icon i {
    font-size: 1.5rem;
  }

  .file-info-item {
    display: block;
    margin: 0.5rem 0;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 75vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 1.875rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}
