/* ===== RESET ===== */
* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: #f4f6f9;
  margin: 0;
  padding: 40px 15px;
  color: #2c3e50;
}

/* ===== CARD LAYOUT ===== */
.ftl-card {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 30px 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===== HEADER ===== */
.ftl-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ftl-title span {
  font-size: 24px;
}

/* ===== FORM ===== */
.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #34495e;
}

input[type="number"],
input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccd3dc;
  font-size: 14px;
  background: #fff;
}

input[type="number"]:focus,
input[type="file"]:focus {
  outline: none;
  border-color: #1e88e5;
}

/* ===== BUTTONS ===== */
button {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-primary {
  background: #1e88e5;
  color: #fff;
}

.btn-primary:hover {
  background: #166fc1;
}

.btn-secondary {
  margin-top: 12px;
  background: #ecf0f3;
  color: #2c3e50;
}

.btn-secondary:hover {
  background: #dde3ea;
}

/* ===== RESULT AREA (CARD BASED) ===== */
.result-area {
  margin-top: 24px;
}

/* ===== RESULT CARDS ===== */
.result-card {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.result-ok {
  background: #e8f5e9;
  border-left: 5px solid #2e7d32;
  color: #1b5e20;
}

.result-warning {
  background: #fff8e1;
  border-left: 5px solid #f9a825;
  color: #7a5c00;
}

.result-violation {
  background: #fdecea;
  border-left: 5px solid #c62828;
  color: #7f1d1d;
}

.result-title {
  font-weight: 700;
  margin-bottom: 4px;
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
  body {
    padding: 20px 10px;
  }

  .ftl-card {
    padding: 22px;
  }

  .ftl-title {
    font-size: 20px;
  }
}

/* ===== SUMMARY CARD ===== */
.summary-card {
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.5;
}

.summary-ok {
  background: #e3fcef;
  border-left: 6px solid #1b8f4e;
  color: #0f5132;
}

.summary-warning {
  background: #fff4e5;
  border-left: 6px solid #f0a202;
  color: #7a4b00;
}

.summary-violation {
  background: #fdeaea;
  border-left: 6px solid #b02a37;
  color: #842029;
}

.summary-title {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
}
