/* GENEL */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #111827;
}

/* ANA KONTEYNER */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px;
}

/* KART GÖRÜNÜMÜ */
.card {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}

/* BAŞLIKLAR */
h1, h2, h3 {
    margin-top: 0;
}

/* FORM ELEMANLARI */
label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    margin-bottom: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

/* BUTONLAR */
button,
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

button:hover,
.btn:hover {
    background: #1d4ed8;
}

/* UYARI / BİLGİ */
.alert {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}
.alert-warning {
    background: #fef3c7;
    color: #92400e;
}
.alert-error {
    background: #fee2e2;
    color: #b91c1c;
}
.alert-success {
    background: #dcfce7;
    color: #166534;
}

/* TABLOLAR */
.table-wrapper {
    width: 100%;
    overflow-x: auto; /* mobilde sağa kaydırılabilir */
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 500px; /* çok dar olmasın diye */
}

th, td {
    border: 1px solid #e5e7eb;
    padding: 8px;
    text-align: left;
}

th {
    background: #f9fafb;
    font-weight: 600;
}

/* ÜST MENÜ */
.top-bar {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.top-bar a {
    font-size: 14px;
}

/* MOBİL AYARLAR */
@media (max-width: 640px) {
    .container {
        padding: 12px;
    }

    .card {
        padding: 12px;
    }

    table {
        font-size: 13px;
        min-width: 400px;
    }

    button,
    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 6px;
    }
}
