/* Genel vücut düzeni */
body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: #f5f5f5;
    margin: 0;
}

/* Başlık stilini düzenle */
h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 28px;
}

/* Menü düzeni */
.menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.menu-card {
    width: 220px;
    height: 160px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.menu-card a {
    text-decoration: none;
    color: #333;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.menu-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.menu-text {
    font-size: 18px;
    font-weight: bold;
}

/* Ana Sayfa Butonu */
.anasayfa-button {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.anasayfa-button:hover {
    background-color: #0056b3;
}

/* 📱 Responsive Tasarım */
@media (max-width: 768px) {
    .menu-container {
        flex-direction: column;
        align-items: center;
    }

    .menu-card {
        width: 90%;
        max-width: 300px;
        height: 140px;
    }

    .menu-icon {
        font-size: 36px;
    }

    .menu-text {
        font-size: 16px;
    }
}

/* Ödendi olan satırın arka planını yeşil yap */
.odendi {
    background-color: #e0ffe0; /* Ödendi olan satır açık yeşil */
}

/* Form düzeni */
form {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

form label {
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
    margin-bottom: 8px;
}

/* Form elemanlarının düzeni */
form input,
form select {
    padding: 8px;
    font-size: 14px;
    width: 100%;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Submit butonunu stillendir */
form button {
    padding: 10px 15px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Butona hover efekti */
form button:hover {
    background-color: #0056b3;
}

/* Formun tüm elemanları mobilde dikey olarak sıralanacak */
@media (max-width: 600px) {
    form label,
    form input,
    form select,
    form button {
        width: 100%;
        display: block;
    }

    form button {
        margin-top: 10px;
    }
}

/* Formdaki checkbox'ları hizalayalım */
form input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

/* Bilgilendirme mesajları için stil */
p.alert-message {
    color: red;
    font-weight: bold;
}

/* Veritabanı tablosu düzeni */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Form içi iki sütunlu düzenleme */
.form-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    row-gap: 5px;
    column-gap: 20px;
    align-items: center;
}


/* Checkbox ve butonlar için ayrı satır */
.full-width {
    grid-column: 1 / -1;
}
