/* ============================================================
   SATOSHI VARIABLE FONT
   ============================================================ */
@font-face{
    font-family:'Satoshi';
    src:url('Satoshi-Variable.ttf') format('truetype-variations'),
        url('Satoshi-Variable.ttf') format('truetype');
    font-weight:100 900;
    font-style:normal;
    font-display:swap;
}

/* ============================================================
   GENEL RESET
   ============================================================ */
*{box-sizing:border-box}

body{
    margin:0;
    font-family:'Satoshi','Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
    background:#eef1f5;
    color:#2c3e50;
    font-size:14px;
    line-height:1.5;
}


/* ============================================================
   GİRİŞ SAYFASI (giris.php)
   ============================================================ */

body.giris-sayfa{
    margin:0;
    min-height:100vh;
    font-family:'Satoshi','Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
    background-image:url('arkaplan.png');
    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
    background-attachment:fixed;
    background-color:#f2f2f2;
}

/* --- HEADER (koyu lacivert) --- */
.giris-header{
    position:fixed;
    top:0;
    left:0;
    right:0;
    height:70px;
    background:rgb(163,166,164);
    box-shadow:0 8px 24px rgba(0,0,0,.25);
    z-index:20;
    display:flex;
    align-items:center;
}

.giris-header-in{
    display:flex;
    align-items:center;
    gap:14px;
    padding:0 36px;
    color:#ffffff;
    font-family:'Satoshi','Segoe UI',sans-serif;
    font-size:16px;
    font-weight:800;
    letter-spacing:3px;
    text-transform:uppercase;
}

.giris-header-logo{
    height:38px;
    width:auto;
    display:block;
    filter:brightness(0) invert(1);
}

/* --- SAĞ PANEL --- */
.giris-sag-panel{
    position:relative;
    z-index:10;
    margin-left:auto;
    width:100%;
    max-width:470px;
    min-height:100vh;
    background:linear-gradient(
        180deg,
        rgba(242,244,247,.94) 0%,
        rgba(232,235,240,.96) 100%
    );
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    box-shadow:-30px 0 80px rgba(0,0,0,.18);
    border-left:1px solid rgba(0,0,0,.06);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:120px 55px 60px;
}

/* --- GİRİŞ KUTUSU --- */
.giris-kutu{
    width:100%;
    max-width:340px;
}

.logo-alan{
    text-align:center;
    margin-bottom:26px;
    padding-bottom:24px;
    border-bottom:1px solid rgba(0,0,0,.08);
}

.logo-alan img{
    max-width:160px;
    height:auto;
    display:inline-block;
}

.giris-kutu h1{
    margin:0 0 22px;
    font-family:'Satoshi','Segoe UI',sans-serif;
    font-size:15px;
    font-weight:700;
    color:rgb(76,70,70);
    text-align:center;
    letter-spacing:1.5px;
    text-transform:uppercase;
}

/* hata kutusu */
.uyari{
    background:#fdeaea;
    border-left:3px solid #c0392b;
    color:#8a2820;
    padding:10px 12px;
    font-family:'Satoshi','Segoe UI',sans-serif;
    font-size:13px;
    margin-bottom:16px;
    border-radius:3px;
}

/* form alanları */
.satir{margin-bottom:14px}

.satir label{
    display:block;
    font-family:'Satoshi','Segoe UI',sans-serif;
    font-size:11px;
    font-weight:700;
    color:#4a5568;
    margin-bottom:6px;
    text-transform:uppercase;
    letter-spacing:.9px;
}

.satir input{
    width:100%;
    padding:12px 13px;
    border:1px solid #ccd2da;
    background:#ffffff;
    font-family:'Satoshi','Segoe UI',sans-serif;
    font-size:14px;
    font-weight:500;
    color:#1a2332;
    border-radius:3px;
    transition:border-color .12s, box-shadow .12s;
    box-sizing:border-box;
}

.satir input::placeholder{color:#aab3c0}

.satir input:focus{
    outline:0;
    border-color:#2775FF;
    box-shadow:0 0 0 3px rgba(39,117,255,.15);
}

/* giriş butonu */
.giris-kutu button{
    width:100%;
    margin-top:18px;
    padding:13px;
    background:rgb(76,70,70);
    color:#fff;
    border:0;
    border-radius:3px;
    font-family:'Satoshi','Segoe UI',sans-serif;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    letter-spacing:1px;
    text-transform:uppercase;
    transition:background .12s, box-shadow .12s;
}

.giris-kutu button:hover{
    background:rgb(50,46,46);
    box-shadow:0 8px 24px rgba(0,0,0,.25);
}


/* ============================================================
   PANEL (index.php) — HEADER
   ============================================================ */

body.panel-sayfa{
    margin:0;
    background:#eef1f5;
    font-family:'Satoshi','Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
    color:#2c3e50;
    font-size:14px;
    line-height:1.5;
}

/* --- HEADER (koyu lacivert) --- */
.p-header{
    position:sticky;
    top:0;
    width:100%;
    background:rgb(40,53,127);
    box-shadow:0 4px 16px rgba(0,0,0,.18);
    z-index:100;
}

/* üst satır */
.p-header-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 36px;
    gap:24px;
}

.p-brand{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
}

.p-brand-logo{
    height:38px;
    width:auto;
    display:block;
    flex-shrink:0;
    filter:brightness(0) invert(1);
}

.p-brand-text{
    font-size:14px;
    font-weight:800;
    letter-spacing:2.5px;
    text-transform:uppercase;
    color:#ffffff;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* kullanıcı alanı */
.p-user{
    display:flex;
    align-items:center;
    gap:18px;
    flex-shrink:0;
}

.p-user-info{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    line-height:1.25;
}

.p-user-firma{
    font-size:13px;
    font-weight:700;
    color:#ffffff;
}

.p-user-ad{
    font-size:12px;
    color:rgba(255,255,255,.65);
}

.p-logout{
    display:flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    color:#ffffff;
    text-decoration:none;
    transition:background .15s, color .15s, transform .12s;
    flex-shrink:0;
}

.p-logout svg{
    width:16px;
    height:16px;
}

.p-logout:hover{
    background:#c0392b;
    color:#fff;
    transform:translateY(-1px);
}

/* alt satır: menü */
.p-menu{
    display:flex;
    align-items:center;
    gap:4px;
    padding:0 36px;
    border-top:1px solid rgba(255,255,255,.08);
    background:rgba(0,0,0,.12);
}

.p-menu-item{
    display:inline-block;
    padding:14px 20px;
    font-size:13px;
    font-weight:600;
    color:rgba(255,255,255,.75);
    text-decoration:none;
    border-bottom:2px solid transparent;
    letter-spacing:.4px;
    transition:color .12s, border-color .12s, background .12s;
}

.p-menu-item:hover{
    color:#ffffff;
    background:rgba(255,255,255,.06);
}

.p-menu-item.active{
    color:#ffffff;
    border-bottom-color:#ffffff;
}

/* --- İÇERİK --- */
.p-main{
    width:100%;
    padding:28px 36px 48px;
    box-sizing:border-box;
}

.p-head{
    margin-bottom:20px;
    padding-bottom:14px;
    border-bottom:2px solid #e1e5eb;
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
}

.p-head h1{
    margin:0;
    font-size:22px;
    font-weight:700;
    color:#1a2332;
    letter-spacing:-.3px;
}

.p-head p{
    margin:0;
    font-size:13px;
    color:#8898aa;
}


/* ============================================================
   TABLO — net, hizalı, kurumsal
   ============================================================ */

.tbl{
    overflow-x:auto;
    background:#fff;
    border-radius:10px;
    border:1px solid #dde3ea;
    box-shadow:0 4px 16px rgba(15,25,42,.06);
}

table{
    width:100%;
    border-collapse:collapse;
    table-layout:auto;
}

/* --- BAŞLIK SATIRI --- */
thead th{
    background:#f4f6f9;
    color:#3a4557;
    padding:14px 18px;
    text-align:left;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.9px;
    white-space:nowrap;
    border-bottom:2px solid #dde3ea;
    border-right:1px solid #e8edf3;
}

thead th:last-child{border-right:0}

thead th.c{text-align:center}

/* --- HÜCRELER --- */
tbody td{
    padding:14px 18px;
    border-bottom:1px solid #eef1f5;
    border-right:1px solid #f4f6f9;
    font-size:13.5px;
    color:#3a4557;
    vertical-align:middle;
    text-align:left;
    background:#fff;
}

tbody td:last-child{border-right:0}
tbody tr:last-child td{border-bottom:0}

/* zebra */
tbody tr:nth-child(even) td{background:#fafbfd}

/* hover */
tbody tr:hover td{
    background:#eef4ff;
    transition:background .12s;
}

/* sadece işaretli hücreler ortada */
td.c{white-space:nowrap;text-align:center}

/* rapor adı */
tbody td strong{
    color:#1a2332;
    font-weight:700;
    font-size:13.5px;
}

/* pill'ler */
.pill{
    display:inline-block;
    padding:4px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
    letter-spacing:.2px;
}
.pill-ok{background:#e3f4e8;color:#1e7a3a;border:1px solid #c3e6ce}
.pill-no{background:#fce9e9;color:#a02323;border:1px solid #f5c8c8}
.pill-n {background:#eef1f5;color:#4a5568;border:1px solid #dde2e8}
.muted{color:#b0b8c4}

/* PDF butonu */
.btn{
    display:inline-block;
    background:rgb(40,53,127);
    color:#fff;
    text-decoration:none;
    padding:7px 15px;
    border-radius:5px;
    font-size:12px;
    font-weight:700;
    letter-spacing:.3px;
    transition:background .12s, box-shadow .12s;
}
.btn:hover{
    background:#2775FF;
    box-shadow:0 4px 12px rgba(39,117,255,.30);
}

.empty{
    background:#fff;
    padding:50px 20px;
    text-align:center;
    border-radius:10px;
    color:#8898aa;
    box-shadow:0 2px 10px rgba(0,0,0,.06);
}


/* ============================================================
   MOBİL
   ============================================================ */

@media(max-width:820px){
    /* giriş */
    .giris-header{height:60px}
    .giris-header-in{
        padding:0 20px;
        font-size:12px;
        letter-spacing:1.5px;
        gap:10px;
    }
    .giris-header-logo{height:28px}
    .giris-sag-panel{
        max-width:100%;
        padding:100px 28px 50px;
        box-shadow:none;
        border-left:0;
    }
    .giris-kutu{max-width:100%}

    /* panel */
    .p-header-top{padding:12px 18px;gap:14px}
    .p-brand-text{font-size:11px;letter-spacing:1.5px}
    .p-brand-logo{height:30px}
    .p-user-info{display:none}
    .p-menu{padding:0 12px;overflow-x:auto}
    .p-menu-item{padding:12px 14px;font-size:12.5px;white-space:nowrap}
    .p-main{padding:20px 16px 36px}
    .p-head h1{font-size:18px}
}