*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:#eef4fb;
  color:#172033;
}

.hidden{
  display:none!important;
}

.login{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.card{
  background:#fff;
  border-radius:16px;
  box-shadow:0 10px 30px #1232;
  padding:24px;
  margin:20px auto;
  max-width:1000px;
}

.login-card{
  max-width:460px;
  width:100%;
  text-align:center;
}

.login-card h1{
  font-size:22px;
  color:#0b4ea2;
}

.login-card h2{
  font-size:17px;
  font-weight:500;
}

input,
textarea{
  width:100%;
  border:1px solid #bfd1e7;
  border-radius:10px;
  padding:13px;
  font-size:16px;
}

textarea{
  resize:vertical;
}

button{
  background:#0b63ce;
  color:white;
  border:0;
  border-radius:10px;
  padding:12px 20px;
  font-size:16px;
  cursor:pointer;
}

button:hover{
  background:#084f9f;
}

button:disabled{
  opacity:.65;
  cursor:not-allowed;
}

.secondary{
  background:#e8eef7;
  color:#0b3970;
}

.secondary:hover{
  background:#d6e2f1;
}

header{
  background:#0b4ea2;
  color:white;
  padding:20px 32px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}

header h1{
  margin:0;
  font-size:24px;
}

header p{
  margin:5px 0 0;
}

.app{
  min-height:100vh;
}

.steps{
  max-width:1000px;
  margin:22px auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.step{
  background:#dce8f7;
  color:#315477;
  padding:14px;
  border-radius:12px;
  text-align:center;
  font-weight:bold;
}

.step.active{
  background:#0b63ce;
  color:white;
}

.actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:16px;
  flex-wrap:wrap;
}

.error{
  color:#b00020;
  font-weight:bold;
}

.msg{
  color:#8a4b00;
  font-weight:bold;
}

.spinner{
  width:62px;
  height:62px;
  border:7px solid #d7e6f8;
  border-top-color:#0b63ce;
  border-radius:50%;
  animation:spin 1s linear infinite;
  margin:auto;
}

.loading{
  text-align:center;
  padding:25px;
}

.bar{
  height:12px;
  background:#d7e6f8;
  border-radius:20px;
  overflow:hidden;
}

.bar span{
  display:block;
  height:100%;
  width:35%;
  background:#0b63ce;
  border-radius:20px;
  animation:move 1.2s infinite alternate;
}

.result{
  white-space:normal;
  background:#f6f9fd;
  border:1px solid #dce8f7;
  padding:18px;
  border-radius:12px;
}

.summary-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin-bottom:18px;
}

.summary-card{
  border-radius:12px;
  padding:14px;
  text-align:center;
  background:#eef4fb;
  border:1px solid #dce8f7;
}

.summary-card strong{
  display:block;
  font-size:28px;
  line-height:1;
  margin-bottom:6px;
}

.summary-card span{
  font-size:13px;
  font-weight:bold;
}

.summary-card.total{
  background:#eef4fb;
  color:#0b3970;
}

.summary-card.success{
  background:#e8f7ee;
  color:#137333;
}

.summary-card.danger{
  background:#fdeaea;
  color:#b3261e;
}

.summary-card.warning{
  background:#fff7df;
  color:#8a5a00;
}

.summary-card.muted{
  background:#f1f3f4;
  color:#5f6368;
}

.table-wrap{
  width:100%;
  overflow-x:auto;
}

.result-table{
  width:100%;
  border-collapse:collapse;
  background:white;
  border-radius:12px;
  overflow:hidden;
}

.result-table th{
  background:#0b4ea2;
  color:white;
  padding:12px;
  text-align:left;
  font-size:14px;
}

.result-table td{
  padding:12px;
  border-bottom:1px solid #e6edf7;
  vertical-align:top;
  font-size:14px;
}

.result-table tr:last-child td{
  border-bottom:0;
}

.row-success{
  background:#f0fbf4;
}

.row-danger{
  background:#fff3f2;
}

.row-warning{
  background:#fffaf0;
}

.row-muted{
  background:#f5f6f7;
}

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-weight:bold;
  font-size:13px;
  white-space:nowrap;
}

.badge.verebilir{
  background:#dff5e7;
  color:#137333;
}

.badge.veremez{
  background:#fde1df;
  color:#b3261e;
}

.badge.manuel_kontrol{
  background:#fff1c2;
  color:#8a5a00;
}

.badge.kurs_bulunamadi{
  background:#e9ecef;
  color:#5f6368;
}

@keyframes spin{
  to{
    transform:rotate(360deg);
  }
}

@keyframes move{
  to{
    margin-left:65%;
  }
}

@media(max-width:800px){
  .summary-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .result-table{
    min-width:760px;
  }
}

@media(max-width:700px){
  .steps{
    grid-template-columns:1fr;
    margin:12px;
  }

  .card{
    margin:12px;
  }

  header{
    padding:16px;
    align-items:flex-start;
    flex-direction:column;
  }
}
