/* Genel Ayarlar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* Linkler */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Üst Kullanıcı Bilgisi */
.user-info {
    position: fixed;
    right: 20px;
    top: 15px;
    z-index: 1000;
    font-size: 14px;
}
.user-info strong {
    margin-right: 10px;
    color: #2c3e50;
}
.user-info a {
    color: #dc3545;
    text-decoration: none;
}
.user-info a:hover {
    text-decoration: underline;
}

/* Sol Menü - Sidebar */
.sidebar {
    width: 250px;
    background-color: #1a1f36;
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding-top: 20px;
    transition: all 0.3s ease;
    overflow-y: auto;
}
.sidebar h2 {
    text-align: center;
    padding-bottom: 20px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}
.sidebar a {
    display: block;
    color: #ddd;
    text-decoration: none;
    padding: 12px 20px;
    transition: background-color 0.3s;
}
.sidebar a:hover {
    background-color: #1f2937;
    border-left: 4px solid #007bff;
}

/* Ana İçerik */
.content {
    margin-left: 250px;
    padding: 40px;
    flex: 1;
    background-color: #f4f6f9;
    transition: margin-left 0.3s ease;
}

.header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #1a1f36;
}

/* Kartlar */
.card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}
.card:hover {
    transform: translateY(-2px);
}
.card h3 {
    margin-bottom: 10px;
    color: #1a1f36;
}
.card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
}

/* Form Elemanları */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}
input[type="text"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}
input:focus,
textarea:focus,
select:focus {
    border-color: #007bff;
    outline: none;
}
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #0056b3;
}

/* Tablo Stilleri */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
th, td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
}
tr:hover {
    background-color: #f2f2f2;
}

/* Alert Mesajları */
.alert {
    padding: 12px 16px;
    border-left: 4px solid #007bff;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 15px;
}
.alert.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #28a745;
}
.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

/* Butonlar */
.btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    text-decoration: none;
    margin-right: 5px;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.btn.edit { background-color: #f39c12; }
.btn.delete { background-color: #e74c3c; }

/* Sayfalama */
.pagination {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    text-decoration: none;
    color: #333;
    background-color: #f0f0f0;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination a:hover,
.pagination .active {
    background-color: #007bff;
    color: white;
}

.pagination .prev,
.pagination .next {
    background-color: #e9ecef;
    font-weight: bold;
}

.pagination span {
    background-color: transparent;
    color: #888;
    padding: 6px 6px;
}
/* Modal */
.modal {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    display: none;
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.close {
    float: right;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

/* Kullanıcı Listesi */
.user-list {
    list-style-type: none;
    padding-left: 0;
}

.user-list li {
    padding: 6px 0;
}

.user-list a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    display: block;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.user-list a:hover {
    background-color: #f0f0f0;
}
/* Mobil Uyum */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        display: flex;
        justify-content: space-around;
        background-color: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        flex-wrap: nowrap;
    }

    .content {
        margin-left: 0;
        padding: 20px;
    }

    .card {
        margin-bottom: 15px;
    }

    div[style*="float: left"], 
    div[style*="float: right"] {
        float: none !important;
        width: 100% !important;
    }

    .dashboard-grid {
        flex-direction: column;
    }

    .dashboard-grid section {
        width: 100%;
    }
}
.modal {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    display: none;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #aaa;
    width: 50%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.modal-content h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.close {
    float: right;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.btn.primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn.primary:hover {
    background-color: #0056b3;
}