/* ==========================================
   İşTakip — Premium Design System (CSS)
   ========================================== */

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-tertiary: #1e293b;
  --border-color: #243352;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.15);
  
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.15);
  
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.15);

  --accent-purple: #a78bfa;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Auth Pages Styling */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #080c14;
}

.auth-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 45vw;
  height: 45vw;
  background: var(--primary);
}

.orb-2 {
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: #d946ef;
}

.auth-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  padding: 1.5rem;
}

.auth-card {
  background: rgba(19, 27, 46, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.logo-icon {
  background: var(--primary-gradient);
  padding: 6px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 6px;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.input-wrapper {
  position: relative;
}

.toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-light);
}

.btn-ghost:hover {
  background: var(--border-color);
}

.btn-red {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  color: #fca5a5;
}

.btn-red:hover {
  background: var(--danger);
  color: #fff;
}

.btn-green {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: #a7f3d0;
}

.btn-green:hover {
  background: var(--success);
  color: #fff;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  color: #fca5a5;
}

.alert-success {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: #a7f3d0;
}

.auth-footer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* Layout Elements */
.navbar {
  height: 70px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-title {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.3px;
}

.role-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.badge-yonetici {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.badge-calisan {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-info-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-transform: uppercase;
}

.user-meta-data {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.user-email {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-logout {
  color: var(--text-muted);
  padding: 6px;
  border-radius: 8px;
}

.btn-logout:hover {
  background: var(--bg-tertiary);
  color: var(--danger);
}

.layout {
  display: flex;
  min-height: calc(100vh - 70px);
}

/* Sidebar styling */
.sidebar {
  width: 260px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 0;
  flex-shrink: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 1rem;
}

.sidebar-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  padding: 8px 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-weight: 550;
  font-size: 0.92rem;
}

.sidebar-link svg {
  color: var(--text-muted);
  transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
  background: var(--bg-tertiary);
  color: #fff;
}

.sidebar-link:hover svg, .sidebar-link.active svg {
  color: var(--primary);
}

.sidebar-footer {
  padding: 0 1.5rem;
}

.systime {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.systime .dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Main Content styling */
.main-content {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.page-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Deadline Banner */
.deadline-banner {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.12) 0%, rgba(245, 158, 11, 0.12) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 15px;
}

.deadline-icon {
  font-size: 1.5rem;
}

.deadline-text {
  flex-grow: 1;
}

.deadline-text strong {
  display: block;
  color: #fca5a5;
  font-size: 0.95rem;
}

.deadline-text span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.deadline-time {
  font-size: 1.25rem;
  font-weight: 750;
  font-family: monospace;
  background: rgba(0,0,0,0.3);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  color: #fca5a5;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}

.stat-blue .stat-icon { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.stat-green .stat-icon { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-yellow .stat-icon { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.stat-purple .stat-icon { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }

/* General Card Design */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-muted {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.link-muted:hover {
  color: var(--primary);
}

.link-blue {
  color: #818cf8;
}

.link-blue:hover {
  text-decoration: underline;
}

/* Today Summary Widget */
.today-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1rem 0;
}

.today-item {
  text-align: center;
}

.today-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: block;
}

.today-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.today-divider {
  width: 1px;
  height: 50px;
  background: var(--border-color);
}

.empty-today {
  text-align: center;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(99, 102, 241, 0.2);
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 1rem;
}

/* Lists and Tables */
.record-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.record-item:hover {
  transform: translateX(4px);
  border-color: rgba(99, 102, 241, 0.4);
}

.record-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.record-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.record-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 12px;
}

.record-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.badge-yellow { background: var(--warning-bg); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-green { background: var(--success-bg); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-red { background: var(--danger-bg); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-blue { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.3); }

.puan-badge {
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

/* File Upload & Dropzone styling */
.dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg-primary);
  transition: var(--transition);
  position: relative;
}

.dropzone:hover, .dropzone.drag-over {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.03);
}

.dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
}

.dropzone-inner .link {
  color: var(--primary);
  font-weight: 600;
}

.file-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.file-size {
  color: var(--text-muted);
}

/* Forms general */
.form-card {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.form-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.req {
  color: var(--danger);
}

/* Puan Preview panel */
.puan-preview {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.puan-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
  transition: var(--transition);
}

.puan-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 8px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-actions.align-right {
  justify-content: flex-end;
}

/* Filtering elements */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.filter-count {
  font-size: 0.72rem;
  background: rgba(255,255,255,0.08);
  padding: 1px 6px;
  border-radius: 8px;
}

/* Data Table Grid */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.data-table td {
  font-size: 0.9rem;
}

.table-row-link {
  cursor: pointer;
  transition: var(--transition);
}

.table-row-link:hover {
  background: rgba(255,255,255,0.02);
}

.td-title {
  font-weight: 600;
}

.td-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 1.5rem;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  font-size: 0.85rem;
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Details and Grid layouts */
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.detail-main {
  display: flex;
  flex-direction: column;
}

.detail-body {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  word-wrap: break-word;
  word-break: break-word;
}
.detail-body a {
  word-break: break-all;
}

.detail-row {
  margin-bottom: 12px;
}

.detail-lbl {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.code-tag {
  font-family: monospace;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 4px;
  color: #a5b4fc;
  word-break: break-all;
  white-space: pre-wrap;
}

.file-download-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.file-dl-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-dl-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.file-dl-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.side-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-info-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.88rem;
}

.side-info-row span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.puan-big {
  font-size: 2rem;
  font-weight: 800;
  color: var(--success);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.puan-big small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Card classes */
.card-danger { border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.03); }
.card-success { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.03); }

/* Dashboard multi-columns layout */
.dashboard-cols {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.col-main {
  margin-bottom: 0;
}

.col-side {
  margin-bottom: 0;
}

/* Leaderboard */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.leaderboard-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
}

.rank-1 { background: #fbbf24; color: #78350f; }
.rank-2 { background: #cbd5e1; color: #334155; }
.rank-3 { background: #b45309; color: #fff; }

.user-details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.puan-tag {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Activity Timeline */
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.activity-timeline::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-color);
}

.activity-item {
  position: relative;
}

.activity-icon-bullet {
  position: absolute;
  left: -19px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.activity-content {
  display: flex;
  flex-direction: column;
}

.activity-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.activity-text {
  font-size: 0.85rem;
  margin-top: 2px;
}

.activity-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.15);
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

/* Admin Action card details */
.puan-calc-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.puan-calc-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.puan-calc-total {
  font-size: 1.05rem;
  font-weight: 750;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 8px;
}

.input-inline {
  width: 120px !important;
  display: inline-block !important;
  margin-left: 10px;
}

/* Filter Card Box Reports */
.filter-card-box {
  padding: 1.25rem 1.75rem;
}

.filter-form-row {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
}

.filter-form-row .form-group {
  margin-bottom: 0;
  flex-grow: 1;
}

.btn-filter-submit {
  height: 45px;
}

/* Progress bar UI styling */
.progress-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-label {
  font-size: 0.78rem;
  font-weight: 700;
  width: 32px;
}

.progress-bar-bg {
  flex-grow: 1;
  height: 8px;
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 4px;
}

/* Light Mode */
[data-theme="light"] {
  --bg-primary: #f1f5f9;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f8fafc;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #475569;
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
  --accent-purple: #7c3aed;
}
[data-theme="light"] .auth-body { background-color: #e2e8f0; }
[data-theme="light"] .auth-card { background: rgba(255,255,255,0.95); }
[data-theme="light"] .auth-orb { opacity: 0.08; }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select { background: #fff; color: #0f172a; }
[data-theme="light"] .puan-badge { color: #fff; }
[data-theme="light"] .badge-yellow { background: rgba(245,158,11,0.12); color: #92400e; border-color: rgba(245,158,11,0.4); }
[data-theme="light"] .badge-green  { background: rgba(16,185,129,0.12); color: #065f46; border-color: rgba(16,185,129,0.4); }
[data-theme="light"] .badge-red    { background: rgba(239,68,68,0.12);  color: #991b1b; border-color: rgba(239,68,68,0.4); }
[data-theme="light"] .badge-blue   { background: rgba(99,102,241,0.12); color: #1e40af; border-color: rgba(99,102,241,0.4); }
[data-theme="light"] .badge-orange { background: rgba(234,88,12,0.12);  color: #9a3412; border-color: rgba(234,88,12,0.4); }
[data-theme="light"] .badge-calisan { background: rgba(99,102,241,0.12); color: #4338ca; border-color: rgba(99,102,241,0.4); }
[data-theme="light"] .badge-yonetici { background: rgba(139,92,246,0.12); color: #6d28d9; border-color: rgba(139,92,246,0.4); }
[data-theme="light"] .puan-tag { background: rgba(99,102,241,0.12); color: #4338ca; border-color: rgba(99,102,241,0.4); }
[data-theme="light"] .code-tag { background: #f1f5f9; color: #4f46e5; }
[data-theme="light"] .alert-success { color: #065f46; border-color: rgba(16,185,129,0.4); }
[data-theme="light"] .alert-error { color: #991b1b; border-color: rgba(239,68,68,0.4); }
[data-theme="light"] .deadline-banner { background: linear-gradient(90deg,rgba(239,68,68,0.08),rgba(245,158,11,0.08)); border-color: rgba(239,68,68,0.3); }
[data-theme="light"] .deadline-text strong { color: #b91c1c; }
[data-theme="light"] .deadline-time { color: #b91c1c; background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }
[data-theme="light"] .deadline-icon { color: #b91c1c; }
[data-theme="light"] .activity-desc { background: rgba(0,0,0,0.04); }
[data-theme="light"] .dropzone { background: #fff; }
[data-theme="light"] .puan-preview { background: #f8fafc; }
[data-theme="light"] .puan-calc-box { background: #f8fafc; }
[data-theme="light"] .sidebar-overlay { background: rgba(15,23,42,0.4); }
[data-theme="light"] .sidebar-link:hover,
[data-theme="light"] .sidebar-link.active {
  background: rgba(99,102,241,0.1);
  color: var(--primary);
}
[data-theme="light"] .sidebar-link.active svg,
[data-theme="light"] .sidebar-link:hover svg {
  color: var(--primary);
}
[data-theme="light"] .stat-blue .stat-icon { color: #4f46e5; }
[data-theme="light"] .stat-green .stat-icon { color: #059669; }
[data-theme="light"] .stat-yellow .stat-icon { color: #d97706; }
[data-theme="light"] .stat-purple .stat-icon { color: #7c3aed; }

/* Theme Toggle Switch */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.theme-toggle input { display: none; }
.theme-toggle-track {
  width: 44px;
  height: 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  position: relative;
  transition: var(--transition);
}
.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition);
}
.theme-toggle input:checked ~ .theme-toggle-track { background: rgba(99,102,241,0.2); border-color: var(--primary); }
.theme-toggle input:checked ~ .theme-toggle-track .theme-toggle-thumb { transform: translateX(20px); background: var(--primary); }
.theme-toggle-icon { font-size: 0.82rem; line-height: 1; }

/* Hamburger Button */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 7px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  flex-shrink: 0;
}
.hamburger-btn:hover { background: var(--bg-tertiary); color: var(--text-main); }

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 40;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* Revize Badge */
.badge-orange {
  background: rgba(234,88,12,0.15);
  color: #fb923c;
  border: 1px solid rgba(234,88,12,0.3);
}

/* Revize Card */
.card-revize { border-color: rgba(234,88,12,0.4); background: rgba(234,88,12,0.03); }

/* Checkbox Label */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.4;
}
.checkbox-label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Toggle Setting Row */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  gap: 15px;
}
.setting-row:last-child { border-bottom: none; }
.setting-info .setting-label { font-weight: 600; font-size: 0.95rem; }
.setting-info .setting-desc  { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.setting-row form { margin: 0; flex-shrink: 0; display: flex; align-items: center; }
.toggle-switch {
  display: inline-block;
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input { display: none; }
.toggle-switch-track {
  position: absolute;
  inset: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-switch-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition);
}
.toggle-switch input:checked + .toggle-switch-track { background: var(--primary); border-color: var(--primary); }
.toggle-switch input:checked + .toggle-switch-track::after { transform: translateX(22px); background: #fff; }

/* Puan Listesi Widget (calisan ekranı) */
.leaderboard-widget .leaderboard-item { padding: 10px 12px; }
.leaderboard-my-rank {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.4) !important;
}
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.text-muted { color: var(--text-muted); }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.back-link:hover { color: var(--primary); }

/* Pulse animation */
@keyframes pulse {
  0%   { transform: scale(0.95); opacity: 0.5; }
  50%  { transform: scale(1.1);  opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  /* Hamburger visible */
  .hamburger-btn { display: flex; }

  /* Sidebar: fixed overlay slide-in */
  .layout { position: relative; }
  .sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    height: calc(100vh - 70px);
    width: 260px;
    z-index: 45;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border-color);
    border-bottom: none;
  }
  .sidebar.sidebar-open { transform: translateX(0); }

  /* Main content full width */
  .main-content { width: 100%; padding: 1.25rem 1rem; }

  /* Navbar compact */
  .navbar { padding: 0 1rem; }
  .navbar-title { display: none; }
  .role-badge  { display: none; }
  .user-meta-data { display: none; }

  /* Page header stack */
  .page-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .page-header > a.btn, .page-header > a.btn-primary { align-self: stretch; justify-content: center; }

  /* Grids */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .detail-grid, .dashboard-cols { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 1rem; }

  /* Filter */
  .filter-form-row { flex-direction: column; align-items: stretch; }
  .btn-filter-submit { width: 100%; }

  /* Table: hide non-essential columns */
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Deadline banner */
  .deadline-banner { flex-wrap: wrap; }
  .deadline-time { margin-left: auto; }

  /* record-item mobil düzenü */
  .record-item { flex-wrap: wrap; gap: 8px; }
  .record-right { flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-title  { font-size: 1.4rem; }
  .auth-card   { padding: 1.75rem 1.25rem; }
  .filter-bar  { gap: 6px; }
  .filter-btn  { padding: 7px 12px; font-size: 0.8rem; }
  .leaderboard-item { flex-wrap: wrap; gap: 8px; }

  /* Detail file download lists and forms */
  .file-dl-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .file-dl-item .btn {
    width: 100%;
    justify-content: center;
  }
  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .form-actions.align-right {
    justify-content: stretch !important;
  }
  .form-actions .btn {
    width: 100% !important;
  }
  .input-inline {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 6px;
    display: block !important;
  }
  .puan-calc-total {
    font-size: 0.95rem;
  }
}

/* ================================================
   GLOBAL MOBİL KART SİSTEMİ (.mc-*)
   Tablolar 640px altında kart görünümüne geçer.
   Kullanım:
     <div class="show-desktop">... tablo ...</div>
     <div class="mc-list">... kartlar ...</div>
   ================================================ */

/* Desktop: tablo görünür, kartlar gizli */
.show-desktop { display: block; }
.mc-list      { display: none; }

@media (max-width: 768px) {
  .show-desktop { display: none !important; }
  .mc-list      { display: flex; flex-direction: column; gap: 0.7rem; padding: 0.75rem; }

  /* Temel kart */
  .mc-card {
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
  }
  .mc-card:hover,
  .mc-card:active {
    transform: scale(0.985);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border-color: rgba(99,102,241,0.4);
  }

  /* Kart üst bölge */
  .mc-top {
    padding: 0.85rem 1rem 0.6rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .mc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: rgba(99,102,241,0.12);
    color: #818cf8;
  }
  .mc-title-group { flex: 1; min-width: 0; }
  .mc-title {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mc-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mc-status-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
  }
  .mc-status-dot.green  { background: #10b981; box-shadow: 0 0 6px #10b981aa; }
  .mc-status-dot.yellow { background: #f59e0b; box-shadow: 0 0 6px #f59e0baa; }
  .mc-status-dot.red    { background: #ef4444; box-shadow: 0 0 6px #ef4444aa; }

  /* Rozet satırı */
  .mc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 1rem 0.75rem;
  }
  .mc-pill {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .mc-pill.green  { background: rgba(16,185,129,0.12);  color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
  .mc-pill.yellow { background: rgba(245,158,11,0.12);  color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
  .mc-pill.red    { background: rgba(239,68,68,0.12);   color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
  .mc-pill.blue   { background: rgba(99,102,241,0.12);  color: #818cf8; border: 1px solid rgba(99,102,241,0.25); }
  .mc-pill.purple { background: rgba(139,92,246,0.12);  color: #a78bfa; border: 1px solid rgba(139,92,246,0.25); }
  .mc-pill.orange { background: rgba(234,88,12,0.12);   color: #fb923c; border: 1px solid rgba(234,88,12,0.25); }
  .mc-pill.gray   { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid rgba(255,255,255,0.1); }
  .mc-pill.gold   { background: rgba(245,158,11,0.18);  color: #fbbf24; border: 1px solid rgba(245,158,11,0.35); }

  /* Çalışan avatar */
  .mc-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700; color: #fff;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  }
}

/* Light mode uyumu */
[data-theme="light"] .mc-card {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
}
[data-theme="light"] .mc-icon { color: #4f46e5; }
[data-theme="light"] .mc-pill.green  { color: #065f46; }
[data-theme="light"] .mc-pill.yellow { color: #92400e; }
[data-theme="light"] .mc-pill.red    { color: #991b1b; }
[data-theme="light"] .mc-pill.blue   { color: #1e40af; }
