/* Styles migrated from app/templates/index.html */

:root {
  --primary-dark: #0a3041;
  --primary-accent: #4892dc;
  --primary-accent-hover: #357abd;
  --bg-color: #f4f6f8;
  --card-bg: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mt-16 {
  margin-top: 24px;
}
.mt-40 {
  margin-top: 60px;
}

h1 {
  color: var(--primary-dark);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.25rem;
  margin-top: 0;
  color: var(--primary-dark);
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.small {
  font-size: 0.85rem;
}

code {
  background: #f1f5f9;
  color: var(--primary-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Fira Code", monospace;
  font-size: 0.9em;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.flash {
  background: #e0f2fe;
  border-left: 4px solid var(--primary-accent);
  color: var(--primary-dark);
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

input[type="text"],
input[type="number"],
input[type="file"] {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus {
  border-color: var(--primary-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background-color: var(--primary-accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
  font-size: 0.9rem;
}

.btn:hover {
  background-color: var(--primary-accent-hover);
}
.btn:active {
  transform: translateY(1px);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 15px;
}
th {
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 8px;
}
td {
  padding: 12px 8px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: none;
}

.ok {
  color: var(--success);
  font-weight: 700;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
}
.ko {
  color: var(--danger);
  font-weight: 700;
  background: #fef2f2;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
}

.slide-section {
  background-color: var(--primary-dark);
  color: #fff;
  padding: 60px 0;
  margin-top: 60px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.slide-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.slide-section h1 {
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
}
.slide-section h2 {
  color: var(--primary-accent);
  border-bottom: none;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.comparison-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.tech-column {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.tech-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-accent);
  margin-bottom: 20px;
  display: block;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.tech-column ul {
  padding-left: 0;
  list-style: none;
}
.tech-column > ul > li {
  margin-bottom: 0;
}

.tech-column ul ul {
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 20px 15px 20px 45px;
}

.tech-column ul ul li {
  margin-bottom: 8px;
  position: relative;
  font-size: 0.95rem;
  opacity: 0.9;
}

.tech-column > ul > li:first-child > ul {
  border-left: 4px solid var(--success);
}
.tech-column > ul > li:first-child > ul li::before {
  content: "✔";
  position: absolute;
  left: -30px;
  color: var(--success);
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}

.tech-column > ul > li:nth-child(2) > ul {
  border-left: 4px solid var(--danger);
}
.tech-column > ul > li:nth-child(2) > ul li::before {
  content: "✖";
  position: absolute;
  left: -30px;
  color: var(--danger);
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}

.tech-column > ul > li:nth-child(3) > ul {
  border-left: 4px solid var(--warning);
}
.tech-column > ul > li:nth-child(3) > ul li::before {
  content: "!";
  position: absolute;
  left: -30px;
  color: var(--warning);
  font-weight: bold;
  font-size: 1.2em;
}

.tech-column > ul > li {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-top: 20px;
}

.conclusion-box {
  margin-top: 40px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #164e6b 100%);
  padding: 50px 40px;
  border-radius: var(--radius);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.conclusion-box h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.8rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.conclusion-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

.conc-option {
  flex: 1;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  transition: transform 0.2s ease, background 0.2s;
  display: flex;
  flex-direction: column;
}

.conc-option:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: var(--primary-accent);
}

.conc-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  margin-bottom: 15px;
  text-align: center;
}

.conc-title {
  font-size: 1.4rem;
  color: var(--primary-accent);
}

.conc-title strong {
  color: white;
  font-weight: 800;
}

.conc-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.conc-context {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 15px;
}

.conc-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.conc-body li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.4;
}

.conc-body li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--primary-accent);
}

.conc-note {
  margin-top: auto;
  padding-top: 15px;
  font-size: 0.85rem;
  color: #fbbf24;
  font-style: italic;
}

.conc-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.2rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  font-size: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid transparent;
  line-height: 1;
}

.btn-view {
  background-color: #e2e8f0;
  color: var(--text-main);
  border-color: #cbd5e1;
}
.btn-view:hover {
  background-color: #cbd5e1;
  border-color: #94a3b8;
}

.btn-delete {
  background-color: white;
  color: #ef4444;
  border-color: #ef4444;
}
.btn-delete:hover {
  background-color: #ef4444;
  color: white;
}

@media (max-width: 768px) {
  .conclusion-grid {
    flex-direction: column;
  }
  .conc-divider {
    padding: 10px 0;
  }

  .grid-2,
  .comparison-wrapper {
    grid-template-columns: 1fr;
  }
}

