* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

.kapsayici {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 24px;
}

.kapsayici-genis {
    max-width: 1500px;
}

.baslik {
    text-align: center;
    margin-bottom: 16px;
}

.baslik h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: 0.2px;
}

.ana-baslik {
    font-weight: 700;
    line-height: 1.2;
}

.ana-baslik span {
    display: block;
}

.admin-baslik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-baslik h1 {
    margin: 0;
    font-size: 24px;
}

.admin-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.istatistikler {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0 18px 0;
}

.istatistik-kart {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    color: #111827;
}

.istatistik-kart:nth-child(1) {
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

.istatistik-kart:nth-child(2) {
    background: linear-gradient(135deg, #ecfccb, #d1fae5);
}

.istatistik-kart:nth-child(3) {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.istatistik-kart:nth-child(4) {
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
}

.istatistik-sayi {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.istatistik-baslik {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.filtre-kutu {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 18px;
}

.arama {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 12px;
}

.arama:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.filtreler {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.filtreler select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
}

.buton {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.05s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2);
}

.buton:hover {
    background: #1d4ed8;
}

.buton:active {
    transform: translateY(1px);
}

.buton-ikincil {
    background: #6b7280;
    box-shadow: 0 6px 12px rgba(107, 114, 128, 0.2);
}

.buton-ikincil:hover {
    background: #4b5563;
}

.buton-koyu {
    background: #111827;
    box-shadow: 0 6px 12px rgba(17, 24, 39, 0.2);
}

.buton-koyu:hover {
    background: #0f172a;
}

.buton-danger {
    background: #b91c1c;
    box-shadow: 0 6px 12px rgba(185, 28, 28, 0.2);
}

.buton-danger:hover {
    background: #991b1b;
}

.kartlar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.kartlar-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kart {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
    position: relative;
    transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.kart:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.belge-rozet {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #1f2937;
    background: #e0e7ff;
    border-radius: 999px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.firma-adi {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.kart h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.etiket {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    margin-bottom: 10px;
}

.satir {
    font-size: 13px;
    margin-bottom: 6px;
}

.bos {
    text-align: center;
    padding: 24px;
    background: #fff;
    border-radius: 10px;
}

.yonetim {
    max-width: 980px;
    margin: 24px auto;
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.yonetim textarea {
    width: 100%;
    min-height: 220px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
}

.tablo {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tablo thead th {
    text-align: left;
    padding: 10px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 600;
}

.tablo tbody td {
    padding: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.tablo tbody tr:hover {
    background: #f9fafb;
}

.islem-butonlar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

.islem-butonlar .buton {
    white-space: nowrap;
}

.etiket-gri {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.bilgi {
    font-size: 13px;
    color: #6b7280;
}

.gorunum-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 6px 0 14px 0;
}

.liste-alan {
    display: grid;
    gap: 12px;
}

.liste-satir {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.liste-baslik {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.liste-detay {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px 12px;
    font-size: 13px;
    color: #374151;
}

@media (max-width: 1100px) {
    .kartlar-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .kartlar-3 {
        grid-template-columns: 1fr;
    }
    .gorunum-toggle {
        flex-direction: column;
    }
    .liste-baslik {
        flex-direction: column;
        align-items: flex-start;
    }
    .belge-rozet {
        writing-mode: horizontal-tb;
        transform: none;
        position: static;
        display: inline-block;
        margin-bottom: 8px;
    }
}
