/* Genel Stiller */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #bcbec0;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
    padding-bottom: 80px; /* footer'ın yüksekliği kadar alan bırak */
}

h1, h2, h3, h4 {
    color: #343a40;
    margin-bottom: 20px;
}

/* Butonlar */
.btn {
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary { background: #007bff; color: #fff; }
.btn-primary:hover { background: #0069d9; }

.btn-danger { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #c82333; }

.btn-secondary { background: #6c757d; color: #fff; }
.btn-secondary:hover { background: #5a6268; }

.btn + .btn { margin-left: 10px; }

/* Tablo */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table th, .table td {
    padding: 10px;
    border: 1px solid #dee2e6;
}

.table th {
    background: #007bff;
    color: white;
    text-align: left;
}

/* Formlar */
input[type="text"], input[type="date"], textarea, select {
    width: 100%;
    padding: 8px;
    border: 1px solid rgb(245, 239, 239);
    background-color: rgb(247, 242, 242);
    border-radius: 4px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

/* Grafik Alanı */
canvas {
    max-width: 100%;
    height: auto;
    margin-top: 15px;
}

/* Uyarılar */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success { background-color: #d4edda; color: #155724; }
.alert-danger  { background-color: #f8d7da; color: #721c24; }
.navbar-brand {
    color: #343a40 !important;
    font-weight: bold;
    font-size: 18px;
}
/* Likert grafik boyutlandırması */
.likert-chart-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

/* Pasta grafiklerin ortalanması */
.pie-chart-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 10px;
}

/* Soru başlık stil düzenlemesi */
.soru-baslik {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.nps-scale {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}
.nps-scale input[type="radio"] {
    display: none;
}
.nps-scale label {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    background-color: #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.nps-scale input[type="radio"]:checked + label {
    background-color: #0d6efd;
    color: #fff;
    font-weight: bold;
}
.star-rating {
    display: flex;
    gap: 8px;
    font-size: 2rem;
    cursor: pointer;
    color: #ccc;
    flex-wrap: wrap;
    max-width: 100%;
    overflow-x: auto;
  }
  .star-rating .fa-star {
    color: #ccc;
    transition: color 0.2s;
  }
  .star-rating .fa-star.selected {
    color: gold;
  }
 
.badge {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 1rem;
}
.zebra-wrap {
    background-color: #f1f5f9;
    margin-top: 5px;
  }
  .zebra-wrap .zebra-item:nth-child(even) {
    background-color: #e2e8f0;
  }
  .zebra-item {
    padding: 8px;
    border-radius: 5px;
  }
  .zebra-item:nth-child(odd) {
    background-color: #f1f5f9;
     }
     .table-responsive {
        width: 100%;
        overflow-x: auto;
      }
      /* Footer */
.footer {
    width: 100%;
    height: 50px;
    background: #343a40;
    color: white;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 10px 0;
    font-size: 14px;
}
/* Mobil uyumluluk */
@media (max-width: 768px) {
    .likert-chart-container canvas,
    .pie-chart-container canvas {
        height: 250px !important; /* mobilde daha küçük grafik */
    }
}
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    body {
        background-color: white !important;
        margin: 0;
        padding: 0;
        color: #000;
    }

    .container, .likert-chart-container, .pie-chart-container {
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        page-break-inside: avoid;
    }

    canvas {
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
        page-break-inside: avoid;
    }

    /* Gereksiz elementleri gizleyebilirsin */
    nav, footer, header, .no-print {
        display: none !important;
    }
}
