/* ============================================
   MEZARLIK BILGI SISTEMI - KOYU TONLU TASARIM
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; }

:root {
    --koyu: #1a2530;
    --koyumavi: #1e2d3b;
    --vurgumavi: #165b96;
    --vurguyeşil: #1e7e5a;
    --vurgukirmizi: #a82a2a;
    --metin: #111820;
    --arka: #e8ebed;
    --kart: #ffffff;
    --satiraltern: #f0f3f5;
    --sınır: #c9cdd0;
    --pasif: #7a848c;
}

body {
    background: var(--arka);
    color: var(--metin);
    line-height: 1.7;
    font-size: 15px;
}

.container { max-width: 1050px; margin: 0 auto; padding: 20px; }

header {
    background: linear-gradient(135deg, var(--koyu) 0%, var(--koyumavi) 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
header h1 { font-size: 1.6rem; margin-bottom: 4px; letter-spacing: .3px; }
header h2 { font-size: 1.4rem; }
header p { opacity: .85; }

a { text-decoration: none; color: inherit; }

/* Butonlar */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: .92rem;
    transition: .2s;
    text-decoration: none;
    margin: 3px 2px;
}
.btn-mavi    { background: var(--vurgumavi); color: white; box-shadow: 0 2px 6px rgba(22,91,150,.25); }
.btn-mavi:hover    { background: #0f4a7c; }
.btn-yesil   { background: var(--vurguyeşil); color: white; box-shadow: 0 2px 6px rgba(30,126,90,.25); }
.btn-yesil:hover   { background: #176649; }
.btn-kirmizi { background: var(--vurgukirmizi); color: white; box-shadow: 0 2px 6px rgba(168,42,42,.25); }
.btn-kirmizi:hover { background: #8f2222; }
.btn-gri     { background: #5a646e; color: white; }
.btn-gri:hover     { background: #4a545e; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Tablolar */
.tablo-kapsayici {
    background: var(--kart);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(26,37,48,.18);
}
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--kart);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(26,37,48,.18);
}
th, td {
    padding: 13px 15px;
    text-align: left;
    border-bottom: 1px solid var(--sınır);
    font-size: .93rem;
}
th {
    background: var(--koyumavi);
    color: white;
    font-weight: 600;
    font-size: .88rem;
    letter-spacing: .3px;
}
tr:nth-child(even) { background: var(--satiraltern); }
tr:hover { background: #dce4e9; }

/* Form elemanları */
input, select, textarea {
    padding: 11px 14px;
    border: 1px solid var(--sınır);
    border-radius: 6px;
    width: 100%;
    font-size: .95rem;
    background: #fff;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--vurgumavi);
    box-shadow: 0 0 0 3px rgba(22,91,150,.15);
}
label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3842;
    font-size: .9rem;
}
.form-grup { margin-bottom: 14px; }

/* Arama kutusu */
.ara { margin: 20px 0; }
.ara input { max-width: 450px; }

/* Geri linki */
.geri {
    color: white;
    opacity: .85;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 500;
}
.geri:hover { opacity: 1; text-decoration: underline; }

/* Mesaj kutuları */
.mesaj {
    padding: 12px 18px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: 500;
}
.basarili { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.hata     { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Panel kartları */
.panel {
    background: var(--kart);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 3px 12px rgba(26,37,48,.18);
}
.panel h3 {
    color: var(--koyu);
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sınır);
}

/* Grid düzeni */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 15px 0;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    color: #55606a;
    font-size: .88rem;
    padding-bottom: 20px;
}

/* Mobil uyum */
@media (max-width: 768px) {
    .tablo-kapsayici { overflow-x: auto; }
    table { min-width: 600px; }
    header { padding: 18px; }
    header h1 { font-size: 1.3rem; }
    .grid { grid-template-columns: 1fr; }
}
