/* =====================================================
   CSV PAGE – FINAL / ISOLATED / STABLE
===================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f3f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  color: #243746;
}

/* =====================================================
   ANA KART
===================================================== */

.csv-card {
  max-width: 560px;
  margin: 36px auto;
  background: #ffffff;
  border-radius: 22px;
  padding: 28px 30px 32px;
  box-shadow: 0 12px 30px rgba(0,0,0,.1);
}

/* =====================================================
   HEADER
===================================================== */

.csv-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin-bottom: 30px;
}

.csv-icon {
  font-size: 32px;
}

.csv-title {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
}

.csv-logo {
  height: 48px;
}

/* =====================================================
   UPLOAD BOX
===================================================== */

.csv-upload-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 26px;
  text-align: center;
}

.csv-upload-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 18px;
}

/* =====================================================
   FILE SELECT
===================================================== */

.csv-select-btn {
  width: 100%;
  max-width: 360px;
  height: 56px;
  border-radius: 14px;
  border: 2px dashed #9ca3af;
  background: #ffffff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  margin: 0 auto;
  display: block;
}

.csv-select-btn:hover {
  background: #f3f4f6;
  border-color: #6b7280;
}

.csv-filename {
  margin-top: 12px;
  font-size: 15px;
  color: #374151;
}

/* Örnek CSV */
.csv-sample {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: #0b80d5;
  text-decoration: underline;
}

/* =====================================================
   ANA BUTON
===================================================== */

.csv-main-btn {
  width: 100%;
  max-width: 360px;
  height: 52px;
  margin: 22px auto 0;
  display: block;
  border-radius: 14px;
  border: none;
  font-size: 18px;
  font-weight: 700;
  transition: background .2s ease;
}

.csv-main-btn:disabled {
  background: #b8c6d4;
  color: #ffffff;
  cursor: not-allowed;
}

.csv-main-btn:not(:disabled) {
  background: #0b80d5;
  color: #ffffff;
  cursor: pointer;
}

.csv-main-btn:not(:disabled):hover {
  background: #0969b0;
}

/* =====================================================
   RESULT AREA
===================================================== */

.csv-result {
  margin-top: 34px;
}

/* =====================================================
   ÖZET KARTI
===================================================== */

.csv-summary {
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 17px;
  font-weight: 700;
}

.csv-summary.ok {
  background: #ecfdf5;
  border-left: 6px solid #16a34a;
  color: #065f46;
}

.csv-summary.error {
  background: #fdecec;
  border-left: 6px solid #dc2626;
  color: #7f1d1d;
}

/* =====================================================
   RİSKLİ GÜNLER TABLOSU
===================================================== */

.csv-table-wrapper {
  margin-bottom: 30px;
}

.csv-table-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  text-align: center;
}

.csv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.csv-table th {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 2px solid #d1d5db;
  font-weight: 700;
}

.csv-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5e7eb;
}

.csv-table tr:last-child td {
  border-bottom: none;
}

/* =====================================================
   İHLAL DETAY KARTLARI
===================================================== */

.csv-detail {
  background: #fff1f2;
  border-left: 6px solid #dc2626;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 22px;
}

.csv-detail-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.csv-detail ul {
  margin: 10px 0 0 18px;
}

.csv-detail li {
  margin-bottom: 6px;
}

/* =====================================================
   BİLGİ / TALİMAT
===================================================== */

.csv-info {
  margin-top: 28px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #374151;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
}

/* =====================================================
   MANUEL GEÇİŞ
===================================================== */

.csv-manual-link {
  display: block;
  text-align: center;
  margin-top: 22px;
  font-weight: 600;
  color: #5b21b6;
  text-decoration: underline;
}

/* =====================================================
   MOBİL
===================================================== */

@media (max-width: 640px) {
  .csv-card {
    padding: 22px;
  }

  .csv-title {
    font-size: 26px;
  }
}