
/* ========================== GENEL STİLLER ========================== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f6f9;
    color: #333;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

a {
    text-decoration: none;
    color: #ffffff;
}
.alert-red {
    background-color: #f8d7da !important;
    color: #721c24;
}

.alert-yellow {
    background-color: #fff3cd !important;
    color: #856404;
}

/* ========================== TABLO STİLLERİ ========================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    border: 1px solid #ddd;
    padding: 14px 20px;
    text-align: center;
}

th {
    background-color: #007bff;
    color: #ffffff;
    font-weight: bold;
}

td {
    color: #333;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Uyarı satırı */
.alert {
    background-color: #f8d7da !important;
    color: #721c24;
}

/* ========================== BUTON STİLLERİ ========================== */

button, .action-link, .add-button, .delete-link {
    padding: 8px 16px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin: 0 4px;
    border: none;
}

.add-button {
    background-color: #28a745;
}

.add-button:hover {
    background-color: #218838;
}

.action-link {
    background-color: #007bff;
}

.action-link:hover {
    background-color: #0056b3;
}

.delete-link {
    background-color: #dc3545;
}

.delete-link:hover {
    background-color: #c82333;
}

.logout-button {
    background-color: #dc3545;
    color: #ffffff;
    border-radius: 5px;
    padding: 8px 12px;
    font-weight: bold;
    margin-left: 10px;
}

.logout-button:hover {
    background-color: #c82333;
}

/* ========================== FORM STİLLERİ ========================== */

.form-container {
    width: 100%;
    max-width: 420px;
    margin: 50px auto;
    padding: 24px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    text-align: center;
}

.form-container h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    text-align: left;
}

input[type="text"], input[type="date"], input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0 16px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

/* ========================== FORM BUTONLARI ========================== */

button.submit-button, .cancel-button {
    width: 48%;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    display: inline-block;
}

.submit-button {
    background-color: #28a745;
    color: #ffffff;
    border: none;
}

.submit-button:hover {
    background-color: #218838;
}

.cancel-button {
    background-color: #dc3545;
    color: #ffffff;
    text-decoration: none;
}

.cancel-button:hover {
    background-color: #c82333;
}

/* ========================== HATA MESAJI ========================== */

.error {
    color: #dc3545;
    margin-top: 10px;
    font-size: 14px;
}
