@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #c10100;
  --red-dark:   #7a0000;
  --red-light:  #e53935;
  --white:      #ffffff;
  --gray-50:    #f8f9fa;
  --gray-100:   #f1f3f5;
  --gray-200:   #e9ecef;
  --gray-400:   #ced4da;
  --gray-600:   #6c757d;
  --gray-800:   #343a40;
  --green:      #2e7d32;
  --shadow-lg:  0 24px 64px rgba(0,0,0,.28);
  --radius:     20px;
  --radius-sm:  12px;
  --radius-xs:  8px;
  --transition: .22s ease;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  min-height: 100vh;
  color: var(--gray-800);
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%,   rgba(255,80,80,.35)  0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%,  rgba(60,0,0,.55)     0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 45%,   rgba(200,20,20,.18)  0%, transparent 65%),
    linear-gradient(160deg, #e53935 0%, #c10100 35%, #7a0000 70%, #3d0000 100%);
  background-attachment: fixed;
}

/* ── HEADER ── */
.header {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.18);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 200;
}
.header img { height: 42px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }

/* ── CONTENT ── */
.q-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── CARD ── */
.q-card {
  background: rgba(255,255,255,.97);
  border-radius: var(--radius);
  box-shadow: 0 2px 0 rgba(255,255,255,.4) inset, var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.6);
  overflow: hidden;
}

.q-card__header {
  background: linear-gradient(135deg, var(--red-light) 0%, var(--red) 50%, var(--red-dark) 100%);
  padding: 26px 32px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.q-card__header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.q-card__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.q-card__header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 3px;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.q-card__header p {
  font-size: 13px;
  opacity: .8;
  position: relative;
  z-index: 1;
}

.q-card__body {
  padding: 32px;
}

/* ── SECTION TITLE ── */
.q-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--red);
  margin: 28px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
}
.q-section-title:first-child { margin-top: 0; }

/* ── SEARCH FORM ── */
.q-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
@media (max-width: 560px) {
  .q-form-grid { grid-template-columns: 1fr; }
}

.q-field {
  position: relative;
}
.q-field label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  font-size: 13.5px;
  color: var(--gray-600);
  pointer-events: none;
  transition: all var(--transition);
  padding: 0 3px;
  font-weight: 400;
}
.q-field input {
  width: 100%;
  padding: 20px 15px 8px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--gray-50);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.q-field input:focus {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(193,1,0,.1);
}
.q-field input:focus ~ label,
.q-field input:not(:placeholder-shown) ~ label {
  top: 9px;
  transform: none;
  font-size: 10px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: .3px;
}
.q-field input[type="date"] { padding-top: 20px; }
.q-field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer; }

.q-form-footer {
  display: flex;
  justify-content: flex-end;
}
.q-btn-search {
  background: linear-gradient(135deg, var(--red-light) 0%, var(--red) 60%, var(--red-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 13px 32px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(193,1,0,.4);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.q-btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(193,1,0,.5);
}

/* ── INFO GRID ── */
.q-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.q-info-item {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.q-info-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--gray-600);
}
.q-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

/* ── ADDRESS BOX ── */
.q-address-box {
  background: linear-gradient(135deg, #fff8f8, #fff);
  border: 1.5px solid #ffd5d5;
  border-left: 4px solid var(--red);
  border-radius: var(--radius-xs);
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}
.q-address-box i { color: var(--red); margin-top: 2px; flex-shrink: 0; }

/* ── TABLE ── */
.q-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--gray-200);
}
.q-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.q-table thead tr {
  background: linear-gradient(135deg, var(--red-light) 0%, var(--red) 60%, var(--red-dark) 100%);
  color: #fff;
}
.q-table thead th {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: center;
  white-space: nowrap;
}
.q-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.q-table tbody tr:last-child { border-bottom: none; }
.q-table tbody tr:hover { background: var(--gray-50); }
.q-table tbody td {
  padding: 12px 16px;
  text-align: center;
  color: var(--gray-800);
  vertical-align: middle;
}

/* ── BADGE ── */
.q-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}
.q-badge--primary {
  background: #fff0f0;
  color: var(--red-dark);
  border: 1px solid #ffb3b3;
}
.q-badge--info {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}
.q-badge--success {
  background: #e8f5e9;
  color: var(--green);
  border: 1px solid #a5d6a7;
}
.q-badge--danger {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

/* ── EMPTY / PENDING ── */
.q-empty-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: #ffebee;
  border: 1.5px solid #ef9a9a;
  border-radius: var(--radius-xs);
  color: #b71c1c;
  font-weight: 600;
  font-size: 14px;
}
.q-pending {
  color: var(--gray-600);
  font-style: italic;
}
.q-pending i { margin-right: 6px; }

/* ── POPUP (basvuru.css ile aynı) ── */
.ybs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(60,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.ybs-overlay--visible { opacity: 1; visibility: visible; }

.ybs-popup {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,.35);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  transform: translateY(20px) scale(.97);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1);
}
.ybs-overlay--visible .ybs-popup { transform: translateY(0) scale(1); }

.ybs-popup__header {
  background: linear-gradient(135deg, #e53935 0%, #c10100 55%, #7a0000 100%);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ybs-popup--success .ybs-popup__header { background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%); }
.ybs-popup--warning .ybs-popup__header { background: linear-gradient(135deg, #fb8c00 0%, #e65100 100%); }

.ybs-popup__icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px; color: #fff;
}
.ybs-popup__header h5 {
  color: #fff; font-size: 16px; font-weight: 700; margin: 0; flex: 1;
}
.ybs-popup__close {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 13px;
  transition: background var(--transition);
}
.ybs-popup__close:hover { background: rgba(255,255,255,.3); }

.ybs-popup__body {
  padding: 24px 24px 8px;
  max-height: 55vh;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--gray-800);
}
.ybs-popup__footer {
  padding: 16px 24px 22px;
  display: flex;
  justify-content: flex-end;
}
.ybs-popup__btn {
  background: linear-gradient(135deg, #e53935 0%, #c10100 60%, #7a0000 100%);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(193,1,0,.35);
  transition: all var(--transition);
}
.ybs-popup__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(193,1,0,.45); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .q-content { padding: 24px 14px 60px; }
  .q-card__body { padding: 20px 16px; }
  .q-card__header { padding: 20px 18px; gap: 14px; }
  .q-card__header h3 { font-size: 17px; }
  .q-info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .q-info-grid { grid-template-columns: 1fr; }
  .q-card__icon { width: 38px; height: 38px; font-size: 16px; }
}
