/* Genel Stil Tanımlamaları */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Giriş Sayfası Tasarımı (index.php) */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-container h2 {
    margin-bottom: 25px;
    text-align: center;
    color: #4a5568;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #667eea;
    outline: none;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background-color: #5a67d8;
}

/* Panel Sayfası Tasarımı (dashboard.php) */
.dashboard-container {
    width: 100%;
    max-width: 1000px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

header h2 {
    color: #2d3748;
}

.user-info {
    font-size: 15px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.badge.admin { background-color: #e53e3e; }
.badge.staff { background-color: #3182ce; }

.logout-btn {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 600;
    margin-left: 10px;
}

.logout-btn:hover { text-decoration: underline; }

/* Bildirim Kutuları */
.error-msg, .alert-box {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.error-msg { background-color: #fed7d7; color: #9b2c2c; border: 1px solid #feb2b2; }
.alert-box { background-color: #e6fffa; color: #234e52; border: 1px solid #b2f5ea; }

/* Dosya Yükleme Alanı */
.upload-section {
    background-color: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed #cbd5e0;
    margin-bottom: 30px;
}

.upload-section h3 {
    margin-bottom: 15px;
    color: #4a5568;
}

.upload-section form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.upload-section input[type="file"] {
    flex: 1;
    padding: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.upload-section button {
    padding: 11px 25px;
    background-color: #38a169;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.upload-section button:hover { background-color: #2f855a; }

/* Dosya Listesi Tablosu */
.file-list-section h3 {
    margin-bottom: 15px;
    color: #4a5568;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

th {
    background-color: #f7fafc;
    color: #718096;
    font-weight: 600;
}

tr:hover { background-color: #f8fafc; }

/* Butonlar */
.btn-download, .btn-delete {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-right: 5px;
}

.btn-download { background-color: #ebf8ff; color: #2b6cb0; }
.btn-download:hover { background-color: #cee3f8; }

.btn-delete { background-color: #fff5f5; color: #c53030; }
.btn-delete:hover { background-color: #fed7d7; }

.empty-msg {
    text-align: center;
    color: #a0aec0;
    padding: 30px;
    font-style: italic;
}