/* SECTION */
.section-box{
  background:#fafafa;
  border:1px solid #eee;
  border-radius:10px;
  padding:18px;
  margin-bottom:20px;
}

.label{
  display:block;
  font-size:14px;
  font-weight:600;
  margin-bottom:10px;
  color:#222;
}

/* GRID */
.compare-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

@media(max-width:900px){
  .compare-grid{
    grid-template-columns:1fr;
  }
}

/* TEXTAREA */
.textarea{
  width:100%;
  height:320px;
  border:1px solid #ccc;
  border-radius:8px;
  padding:14px;
  resize:vertical;
  font-size:14px;
  line-height:1.6;
  outline:none;
  background:#fff;
  font-family:monospace;
}

.textarea:focus{
  border-color:#0a3d62;
}

/* BUTTONS */
.btns{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
  margin-top:18px;
}

.app{
  background:linear-gradient(135deg,#0a3d62,#07517d);
  color:#fff;
  border:none;
  border-radius:4px;
  padding:12px 20px;
  cursor:pointer;
  font-size:14px;
}

.secondary-btn{
  background:#fff;
  color:#333;
  border:1px solid #ccc;
  border-radius:4px;
  padding:12px 20px;
  cursor:pointer;
  font-size:14px;
}

/* RESULT */
.result-box{
  background:#fff;
  border:1px solid #ddd;
  border-radius:10px;
  overflow:hidden;
}

/* RESULT HEADER */
.result-header{
  padding:15px 18px;
  border-bottom:1px solid #eee;
  background:#fafafa;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}

.result-header h3{
  font-size:18px;
}

/* STATUS */
.status{
  font-size:13px;
  font-weight:bold;
  padding:8px 12px;
  border-radius:30px;
}

.same{
  background:#d1fae5;
  color:#065f46;
}

.diff{
  background:#fee2e2;
  color:#991b1b;
}

.error{
  background:#fef3c7;
  color:#92400e;
}

/* OUTPUT */
.output{
  padding:18px;
  max-height:600px;
  overflow:auto;
  font-family:monospace;
  background:#fff;
}

/* DIFF ROW */
.diff-row{
  display:flex;
  gap:12px;
  padding:8px 10px;
  border-bottom:1px solid #f1f1f1;
  font-size:14px;
  line-height:1.5;
}

.diff-row:last-child{
  border-bottom:none;
}

.line{
  min-width:70px;
  font-weight:bold;
  color:#666;
}

.code{
  flex:1;
  word-break:break-word;
  white-space:pre-wrap;
}

/* COLORS */
.match{
  background:#f0fdf4;
}

.mismatch{
  background:#fef2f2;
}

.only-left{
  background:#eff6ff;
}

.only-right{
  background:#fff7ed;
}

/* SUMMARY */
.summary{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
  margin-top:18px;
}

@media(max-width:700px){
  .summary{
    grid-template-columns:repeat(2,1fr);
  }
}

.stat-box{
  background:#fff;
  border:1px solid #eee;
  border-radius:10px;
  padding:16px;
  text-align:center;
}

.stat-box h4{
  font-size:13px;
  color:#666;
  margin-bottom:8px;
}

.stat-box p{
  font-size:22px;
  font-weight:bold;
  color:#0a3d62;
}

/* EMPTY */
.empty{
  text-align:center;
  padding:40px 20px;
  color:#777;
}