/* Genel Temel Ayarlar */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f4f4f9, #e9ecef);
    color: #333;
}

/* Başlık ve Paragraf Stilleri */
h1, h2 {
    text-align: center;
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
}

/* Genel Bağlantı Stili */
a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Form Stili */
form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Genişlik için input ve select */
form select,
form input[type="file"],
form button {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    margin: 12px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
}

/* Buton Stili */
form button,
button,
a.button {
    display: inline-block;
    padding: 12px 15px;
    font-size: 1em;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

form button:hover,
button:hover,
a.button:hover {
    background: #0056b3;
}

/* Tablolar için stil */
table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 1em;
}

table th {
    background: #007BFF;
    color: white;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

table tr:hover {
    background: #f1f1f1;
}

table a {
    color: #e74c3c;
    font-weight: bold;
    text-decoration: none;
}

table a:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* Hata ve Başarı Mesajları */
.success-msg {
    color: #008000;
    font-weight: bold;
}

.error-msg {
    color: #dc3545;
    font-weight: bold;
}

/* Çıkış Butonu */
.logout-btn {
    padding: 5px 10px;
    font-size: 14px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #e60000;
}

/* Hata Mesajları */
.error {
    color: red;
    font-size: 0.9em;
    text-align: center;
    margin-top: 10px;
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .login-container,
    form,
    table {
        width: 95%;
    }

    table th,
    table td {
        font-size: 0.9em;
    }

    .logout-btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    form input[type="file"] {
        padding: 12px;
    }
}

/* Button ve Input için hover ve focus */
form input[type="text"]:focus,
form input[type="password"]:focus,
form input[type="file"]:focus,
form select:focus,
form button:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Input ve Select Stili */
input[type="text"],
input[type="password"],
select {
    font-size: 1em;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

/* Kategori Listesi */
.category-list {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

/* Kategori Silme Button ve Metni Düzenleme */
.category-list li {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center; /* Metni ortalar */
}

.category-list li input[type="text"] {
    width: 60%;
    margin-right: 10px;
}

.category-list li button {
    background-color: #e74c3c;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-list li button:hover {
    background-color: #c0392b;
}

/* Kategori Silme Yazısını Ortalamak İçin */
.category-list li span {
    flex-grow: 1; /* Yazıyı ortalamak için */
    text-align: center;
}

/* Dosya Listeleme */
.file-table th,
.file-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.file-table th {
    background: #007BFF;
    color: white;
}

.file-table td {
    background-color: #f9f9f9;
}

.file-table tr:hover {
    background-color: #f1f1f1;
}

/* Buttonlar */
button,
a.button {
    display: inline-block;
    padding: 12px 15px;
    font-size: 1em;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

/* Category List and Table */
.category-list {
    list-style-type: none;
    padding: 0;
}

.category-list li {
    margin: 10px 0;
}

.category-list li input {
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    width: 70%;
    border: 1px solid #ccc;
}

.category-list li button {
    background-color: #e74c3c;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-list li button:hover {
    background-color: #c0392b;
}