/* ===== GENEL ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f0f2f5;
  color: #333;
}
* { box-sizing: border-box; }

/* ===== LOGIN ===== */
.login-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: linear-gradient(135deg, #1B263B 0%, #2c3e6b 100%);
}
.login-card {
  background: #fff; border-radius: 16px; padding: 40px 36px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2); max-width: 400px; width: 90%;
}
.login-card h2 { margin: 0 0 4px; color: #1B263B; font-size: 22px; }
.login-card p { margin: 0 0 24px; color: #888; font-size: 13px; }
.login-input {
  width: 100%; padding: 10px 14px; font-size: 14px;
  border: 1px solid #ddd; border-radius: 8px; outline: none;
  transition: border 0.2s; box-sizing: border-box;
}
.login-input:focus { border-color: #1B263B; }
.login-btn {
  width: 100%; padding: 11px; background: #1B263B; color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
}
.login-btn:hover { background: #2c3e6b; }
.login-error { color: #e74c3c; font-size: 12px; margin-bottom: 12px; display: none; }
.login-logo { text-align:center; margin-bottom:16px; }
.login-logo img { max-width:160px; height:auto; }

/* ===== EMPLOYEE DASHBOARD ===== */
.topbar {
  background: #1B263B; color: #fff; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.topbar h3 { margin: 0; font-size: 16px; }
.topbar a {
  color: #fff; text-decoration: none; font-size: 12px; font-weight: 600;
  padding: 6px 14px; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px; transition: background 0.2s;
}
.topbar a:hover { background: rgba(255,255,255,0.1); }
.dashboard { max-width: 900px; margin: 0 auto; padding: 20px; }
.card {
  background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 24px; margin-bottom: 16px;
}
.card h4 { margin: 0 0 12px; color: #555; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.qr-wrap { text-align: center; padding: 16px; }
.qr-wrap img { max-width: 280px; border-radius: 8px; }
.qr-wrap p { color: #888; font-size: 12px; margin: 8px 0 0; }
.status-icon { font-size: 48px; margin-bottom: 8px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.stat-box {
  background: #f8f9fa; border-radius: 8px; padding: 14px; text-align: center;
}
.stat-box .label { font-size: 11px; color: #888; display: block; margin-bottom: 4px; }
.stat-box .value { font-size: 20px; font-weight: 700; }
.full-width { grid-column: 1 / -1; }
.date-display { font-size: 14px; color: #666; text-align: center; margin-bottom: 16px; }

/* ===== TABLO ===== */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 12px; }
table.data th {
  background: #f5f6fa; padding: 8px 10px; text-align: left;
  font-weight: 700; color: #555; border-bottom: 2px solid #e0e0e0;
  white-space: nowrap;
}
table.data td { padding: 7px 10px; border-bottom: 1px solid #f0f0f0; }
table.data tr:hover td { background: #f8f9ff; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700; color: #fff;
}
.badge-green { background: #27ae60; }
.badge-yellow { background: #f39c12; }
.badge-red { background: #e74c3c; }
.badge-blue { background: #3498db; }
.badge-gray { background: #95a5a6; }
.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px;
}
.status-dot.green { background: #27ae60; }
.status-dot.yellow { background: #f39c12; }
.status-dot.red { background: #e74c3c; }

/* ===== ADMIN SIDEBAR ===== */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; min-width: 240px; background: #1B263B; color: #fff;
  padding: 16px 0; display: flex; flex-direction: column;
}
.admin-sidebar h5 { padding: 0 16px; margin: 0 0 16px; font-size: 14px; }
.admin-sidebar a {
  display: block; padding: 10px 16px; color: rgba(255,255,255,0.7);
  text-decoration: none; font-size: 13px; font-weight: 600; transition: all 0.2s;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-sidebar a.logout { margin-top: auto; color: #e74c3c; }
.admin-content { flex: 1; padding: 24px; overflow-x: hidden; }
.admin-content h3 { margin: 0 0 20px; font-size: 18px; color: #1B263B; }

/* ===== STAT CARDS ===== */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card {
  border-radius: 10px; padding: 18px; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.stat-card h6 { margin: 0 0 4px; font-size: 11px; opacity: 0.8; }
.stat-card .num { font-size: 28px; font-weight: 700; margin: 0; }
.stat-primary { background: #1B263B; }
.stat-success { background: #27ae60; }
.stat-warning { background: #f39c12; }
.stat-danger { background: #e74c3c; }
.stat-info { background: #3498db; }

/* ===== FORM ===== */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; color: #555; margin-bottom: 4px; font-weight: 600; }
.form-control {
  width: 100%; padding: 8px 12px; font-size: 13px; border: 1px solid #ddd;
  border-radius: 6px; outline: none; box-sizing: border-box;
}
.form-control:focus { border-color: #1B263B; }
select.form-control { background: #fff; }
.btn {
  display: inline-block; padding: 8px 18px; border: none; border-radius: 6px;
  font-size: 12px; font-weight: 700; cursor: pointer; color: #fff;
  transition: background 0.2s; text-decoration: none;
}
.btn-primary { background: #1B263B; }
.btn-primary:hover { background: #2c3e6b; }
.btn-success { background: #27ae60; }
.btn-success:hover { background: #219a52; }
.btn-danger { background: #e74c3c; }
.btn-danger:hover { background: #c0392b; }
.btn-warning { background: #f39c12; color: #fff; }
.btn-warning:hover { background: #e67e22; }
.btn-sm { padding: 5px 12px; font-size: 11px; }
.btn-outline { background: transparent; border: 1px solid #ddd; color: #555; }
.btn-outline:hover { background: #f5f5f5; }
.flex-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mb-2 { margin-bottom: 12px; }
.mt-2 { margin-top: 12px; }
.text-center { text-align: center; }
.text-muted { color: #888; font-size: 12px; }
.hidden { display: none; }

/* ===== MODAL (admin panel içi) ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.modal-box {
  background: #fff; border-radius: 14px; padding: 24px;
  max-width: 480px; width: 95%; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-box h4 { margin: 0 0 16px; color: #1B263B; font-size: 16px; }
.modal-close {
  position: absolute; right: 14px; top: 12px; background: none; border: none;
  font-size: 20px; cursor: pointer; color: #999;
}

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 40px; color: #aaa; font-size: 13px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .admin-sidebar { width: 180px; min-width: 180px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .dashboard { padding: 12px; }
}
@media (max-width: 600px) {
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; min-width: 100%; flex-direction: row; flex-wrap: wrap; padding: 8px; }
  .admin-sidebar a { padding: 6px 10px; font-size: 11px; }
  .admin-sidebar a.logout { margin-top: 0; }
  .admin-content { padding: 12px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* ===== HEADER BAR ===== */
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.header-bar h3 { margin: 0; font-size: 16px; color: #1B263B; }

/* ===== ALERT ===== */
.alert {
  padding: 10px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
  margin-bottom: 12px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ===== QR ANTI-SCREENSHOT ===== */
.qr-wrap { position: relative; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.qr-wrap img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.qr-overlay {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: 12px;
}
.qr-overlay-line {
  position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(0,255,0,0.3), transparent);
  animation: qrLineScroll 3s ease-in-out infinite;
}
@keyframes qrLineScroll {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.qr-hidden { filter: blur(20px) brightness(0.3) !important; transition: filter 0.15s; }
