/* BİASDER turnuva arayüzü – yalnızca görsel katman.
   Bu dosyayı /hakem/style.css dosyasından SONRA yükleyin. */

body[data-roles]{
  --blue:#0757ad;
  --line:#d7e2ed;
  --navy:#072744;
  --sea:#087f91;
  --sky:#eaf6f8;
  --ink:#102d49;
  --muted:#607b92;
  --surface:#ffffff;
  --surface-soft:#edf7f8;
  --surface-hover:#dff2f4;
  --primary:#0757ad;
  --primary-hover:#06498d;
  --on-primary:#ffffff;
  --focus:#f4c763;
  background:linear-gradient(180deg,#eef7f9 0,#f5f8fc 34rem,#f7f9fc 100%);
  color:var(--ink);
}

body[data-roles] header{
  position:relative;
  min-height:84px;
  padding-block:14px;
  color:#fff;
  background:linear-gradient(115deg,#062541 0%,#084e75 58%,#087f91 145%);
  border:0;
  box-shadow:0 4px 20px #06254124;
}
body[data-roles] header::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:3px;
  background:linear-gradient(90deg,#63d5d0,#f4c763 54%,transparent);
}
body[data-roles] .brand{color:#fff;font-size:1.2rem;letter-spacing:.035em}
body[data-roles] .brand small{color:#c7e6ed;font-size:.61rem;letter-spacing:.16em}
body[data-roles] .brand-logo {
  background: transparent;
  padding: 0;
  box-shadow: none;
}
body[data-roles] #identity{color:#e4f2f5}
body[data-roles] #identity small{color:#bbdbe3}

body[data-roles] main{max-width:1280px;padding-top:30px}
body[data-roles] .eyebrow{color:#087487;font-weight:800;letter-spacing:.14em}
body[data-roles] h1{color:var(--navy);font-size:clamp(1.8rem,3vw,2.45rem)}
body[data-roles] h2{color:var(--navy)}
body[data-roles] .muted{color:var(--muted)}

body[data-roles] button{
  border-radius:10px;
  color:var(--on-primary);
  background:linear-gradient(135deg,var(--primary),#087f91);
  box-shadow:0 2px 4px #0834531c;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
body[data-roles] button:hover:not(:disabled){color:var(--on-primary);background:linear-gradient(135deg,var(--primary-hover),#066b7a);transform:translateY(-1px);box-shadow:0 6px 15px #0834532b;filter:none}
body[data-roles] button:disabled,
body[data-roles] button[aria-disabled=true]{color:#4c6578;background:#e6eef3;border-color:#d4e0e8;box-shadow:none;opacity:1;cursor:not-allowed}
body[data-roles] button.secondary{background:var(--surface);color:#123e61;border-color:#aac5d4;box-shadow:none}
body[data-roles] button.secondary:hover:not(:disabled){color:#fff;background:#084b74;border-color:#084b74}
body[data-roles] button.danger{background:#fff5f4;color:#9b302c;border-color:#e8bbb6}
body[data-roles] button.danger:hover:not(:disabled){color:#fff;background:#a33a35;border-color:#a33a35}
body[data-roles] button:focus-visible,
body[data-roles] a:focus-visible,
body[data-roles] input:focus-visible,
body[data-roles] select:focus-visible,
body[data-roles] textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}

body[data-roles] input,
body[data-roles] select,
body[data-roles] textarea{color:var(--ink);border-color:#b9d0dc;background:var(--surface);border-radius:10px}
body[data-roles] input:focus,
body[data-roles] select:focus,
body[data-roles] textarea:focus{color:var(--ink);outline:2px solid #087f91;border-color:#087f91}
body[data-roles] input::placeholder,
body[data-roles] textarea::placeholder{color:#6d8396;opacity:1}
body[data-roles] input:disabled,
body[data-roles] select:disabled,
body[data-roles] textarea:disabled{color:#5e7487;background:#e9f0f4;border-color:#d3e0e7;opacity:1;cursor:not-allowed}
body[data-roles] input[type=checkbox],
body[data-roles] input[type=radio]{accent-color:#0757ad}

body[data-roles] .tabs{
  gap:4px;
  margin:0 0 22px;
  padding:6px;
  border:1px solid #d3e3ea;
  border-radius:14px;
  background:#ffffffd9;
  box-shadow:0 7px 22px #0834530a;
  scrollbar-color:#8ab9c7 transparent;
}
body[data-roles] .tabs button,
body[data-roles] nav.tabs button{border-radius:9px;color:#ffffff;font-weight:750;box-shadow:none}
body[data-roles] .tabs button:hover:not(:disabled){background:#084b74;color:#fff;transform:none;box-shadow:none}
body[data-roles] .tabs button[aria-pressed=true],
body[data-roles] nav.tabs button.active{background:linear-gradient(135deg,#dff2f4,#dceefa);color:#063c63;box-shadow:inset 0 -2px #0b8998}

body[data-roles] .panel,
body[data-roles] .record,
body[data-roles] .stat{
  border-color:#d6e4eb;
  border-radius:14px;
  box-shadow:0 8px 25px #0b36510c;
}
body[data-roles] .panel{background:#fff}
body[data-roles] .login{border-top:5px solid #0a8894;box-shadow:0 18px 48px #0b36511c}
body[data-roles] .login::before{content:"TURNUVA SİSTEMİ";display:block;margin-bottom:18px;color:#087487;font-size:.7rem;font-weight:850;letter-spacing:.15em}
body[data-roles] .login .eyebrow{display:none}
body[data-roles] .roles{padding:5px;border-radius:12px;background:#eef6f8;gap:5px}
body[data-roles] .roles button{min-height:42px;background:transparent;color:#1c4967;box-shadow:none}
body[data-roles] .roles button:hover:not(:disabled){background:#084b74;color:#fff;transform:none;box-shadow:none}
body[data-roles] .roles button[aria-pressed=true]{background:#fff;color:#063c63;box-shadow:0 2px 8px #1647671c}

body[data-roles] .stats{gap:14px}
body[data-roles] .stat{position:relative;overflow:hidden;padding:18px 20px;border-top:0}
body[data-roles] .stat::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#57bdc3}
body[data-roles] .stat:first-child::before{background:#0b5fa9}
body[data-roles] .stat strong{color:var(--navy);font-size:1.9rem;line-height:1.05}
body[data-roles] .stat small{color:#638095;font-size:.7rem;font-weight:800;letter-spacing:.08em}

body[data-roles] .toolbar{padding:17px 18px;border:1px solid #d6e4eb;border-radius:14px;background:#fff;box-shadow:0 8px 25px #0b36510a}
body[data-roles] .toolbar h2{margin-bottom:5px}
body[data-roles] .filters{align-items:center}
body[data-roles] .filters input,
body[data-roles] .filters select{min-height:44px}
body[data-roles] .record{background:#fff;box-shadow:0 5px 18px #0b36510c}
body[data-roles] .record:hover{border-color:#9fcbd3}
body[data-roles] .record-head{background:linear-gradient(90deg,#fbfefe,#f3f9fb);border-bottom-color:#e4edf2}
body[data-roles] .record-body{padding:20px}
body[data-roles] .photo{border:1px solid #d7e6ed;border-radius:11px;background:#edf7f8}
body[data-roles] .record-data h3{color:var(--navy)}
body[data-roles] .fish{color:#087487}
body[data-roles] .record-data .feedback{background:#eaf6fa;color:#245270;border-left:3px solid #42aeb7}
body[data-roles] .record-foot{color:#678298}
body[data-roles] .badge{border-radius:999px;padding:5px 10px;letter-spacing:.02em}
body[data-roles] .pending{background:#fff4d9;color:#8b5b00}
body[data-roles] .approved{background:#ddf4e9;color:#126544}
body[data-roles] .correction{background:#e7f0ff;color:#345b94}
body[data-roles] .rejected{background:#fff0ee;color:#a33b36}

body[data-roles] .rank-grid{gap:18px}
body[data-roles] .table-wrap{border:1px solid #e0e9ee;border-radius:11px;background:#fff}
body[data-roles] table{min-width:540px}
body[data-roles] th{background:#f1f8fa;color:#40667c;font-size:.72rem;font-weight:850;letter-spacing:.075em;text-transform:uppercase}
body[data-roles] th,body[data-roles] td{border-bottom-color:#e5edf1}
body[data-roles] tr:last-child td{border-bottom:0}
body[data-roles] tr:hover td{background:#f7fbfc}
body[data-roles] .empty{border-color:#b9d8df;background:linear-gradient(135deg,#fff,#f0f9fa)}

body[data-roles] .message-stat{border-color:#d6e7eb;background:#fff;box-shadow:0 5px 15px #0b365108}
body[data-roles] .desk-message-team,
body[data-roles] .competitor-message-item,
body[data-roles] .record-team-group{border-color:#d6e4eb;box-shadow:0 4px 13px #0b365108}
body[data-roles] .desk-message-team-head,
body[data-roles] .competitor-message-toggle,
body[data-roles] .record-team-head{background:#f4fafb}
body[data-roles] #message:not(:empty){border-left:4px solid #e8ae31;background:#fff8e9;color:#6d510d}

body[data-roles] dialog{border-color:#c6dce5;border-radius:16px;box-shadow:0 24px 70px #031a2c66}
body[data-roles] dialog::backdrop{background:#06263dcc;backdrop-filter:blur(2px)}
body[data-roles] .dialog-header{padding-bottom:14px;border-bottom:1px solid #e3edf1}
body[data-roles] .camera-dialog video{border-radius:12px}
body[data-roles] .qr-box{border-color:#bcd9df;background:#fff;box-shadow:0 8px 20px #0b36510d}

/* Kayıt, ölçüm, kullanıcı ve yönetim formları aynı görsel dilde kalır. */
body[data-roles] .admin-grid>.panel,
body[data-roles] #management>.rank-grid>.panel,
body[data-roles] .team-panel{border-top:3px solid #4bb7be}
body[data-roles] .account-row{border-bottom-color:#e6eef2}
body[data-roles] .selected-team{background:#e9f8f8;color:#075b72}

/* Yönetim metin düzenleyicisi: açık zeminde koyu araçlar, etkileşimde lacivert zemin. */
body[data-roles] .competition-editor-toolbar,
body[data-roles] .competition-rules-editor,
body[data-roles] [contenteditable=true]{color:var(--ink);background:var(--surface);border-color:#b9d0dc}
body[data-roles] .competition-editor-toolbar button,
body[data-roles] .competition-editor-toolbar .editor-clear{
  color:#123e61;
  background:#f3f8fa;
  border-color:#b9d0dc;
  box-shadow:none;
}
body[data-roles] .competition-editor-toolbar button:hover:not(:disabled),
body[data-roles] .competition-editor-toolbar .editor-clear:hover:not(:disabled){color:#fff;background:#084b74;border-color:#084b74;transform:none;box-shadow:none}
body[data-roles] .competition-editor-toolbar .editor-color{color:#123e61;background:#f3f8fa;border-color:#b9d0dc}
body[data-roles] .competition-editor-toolbar .editor-color input[type=color]{background:transparent}
body[data-roles] .competition-editor-toolbar .editor-separator{background:#aec4d1}

/* Kayıt, tablo, açılır pencere ve yönetim ekranlarında açık yüzeyde koyu metin zorunluluğu. */
body[data-roles] .panel,
body[data-roles] .record,
body[data-roles] .toolbar,
body[data-roles] .table-wrap,
body[data-roles] .message-stat,
body[data-roles] .desk-message-team,
body[data-roles] .competitor-message-item,
body[data-roles] .record-team-group,
body[data-roles] dialog{color:var(--ink);background:var(--surface)}
body[data-roles] .record-head,
body[data-roles] .desk-message-team-head,
body[data-roles] .competitor-message-toggle,
body[data-roles] .record-team-head{color:#123e61}
body[data-roles] th{color:#244f69;background:#eaf4f7}
body[data-roles] td{color:var(--ink)}
body[data-roles] tr:hover td{color:var(--ink);background:#eef8f9}
body[data-roles] a{color:#075b80}
body[data-roles] a:hover{color:#043f6b}

@media (max-width:760px){
  body[data-roles] header{min-height:70px;padding:10px 16px}
  body[data-roles] main{padding:22px 14px 64px}
  body[data-roles] .brand{font-size:1rem}
  body[data-roles] .tabs{margin-inline:-2px;padding:4px;gap:2px;border-radius:12px}
  body[data-roles] .tabs button,body[data-roles] nav.tabs button{padding:9px 11px;font-size:.84rem}
  body[data-roles] .toolbar{padding:15px}
  body[data-roles] .filters{width:100%}
  body[data-roles] .filters input{max-width:none}
  body[data-roles] .record-body{padding:14px}
  body[data-roles] .actions button{min-width:calc(50% - 4px)}
  body[data-roles] .login{margin-top:22px;border-radius:14px}
  body[data-roles] .table-wrap{margin-inline:-2px}
}

@media print{
  body[data-roles]{background:#fff;color:#000}
  body[data-roles] .panel,
  body[data-roles] .record,
  body[data-roles] .stat,
  body[data-roles] .table-wrap{box-shadow:none;border-color:#b9c5ca}
  body[data-roles] th{background:#f2f5f5}
}

/* Mesaj listesi - tek satırlık yarışmacı isimleri */
.message-v2-thread {
    display: block !important;
    min-height: 0 !important;
    padding: 7px 12px !important;
    margin: 0 0 3px !important;
    line-height: 20px !important;
    border-radius: 6px !important;
}

.message-v2-thread strong {
    display: block !important;
    font-size: 13px !important;
    line-height: 20px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-v2-thread small,
.message-v2-thread span {
    display: none !important;
}

.message-v2-threads {
    max-height: 520px;
    overflow-y: auto;
}

/* Seçili konuşma - açık sarı */
.message-v2-thread.active {
    background: #fff2bf !important;
    border: 1px solid #e8c76a !important;
    border-left: 3px solid #d5a329 !important;
    color: #173b5c !important;
    box-shadow: none !important;
}

.message-v2-thread.active strong {
    color: #173b5c !important;
}

