/* Genel Ayarlar */
:root {
    --primary: #2c3e50;
    --secondary: #18bc9c;
    --danger: #e74c3c;
    --warning: #f39c12;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

a {
    color: var(--secondary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* Login Box */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.login-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

/* Butonlar */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-secondary { background: var(--secondary); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-success { background: #27ae60; color: white; }
.btn-light { background: var(--light); color: #333; }
.btn:hover { opacity: 0.9; }

/* Form */
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
}
.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Tablo */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.table th, .table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.table th {
    background: var(--primary);
    color: white;
}
.table tr:hover {
    background: #f1f1f1;
}

/* Navbar */
.navbar {
    background: var(--primary);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.navbar a {
    color: white;
    margin-left: 15px;
}
.navbar .brand {
    font-size: 1.5em;
    font-weight: bold;
}

/* Kartlar */
.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Filtre alanı */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}
.filter-bar input, .filter-bar select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    .navbar a {
        margin: 5px 0;
    }
    .table {
        display: block;
        overflow-x: auto;
    }
}
/* Nav sekme stilleri */
.nav-tabs {
    border-bottom: 2px solid var(--primary);
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}
.nav-item {
    list-style: none;
}
.nav-link {
    display: block;
    padding: 10px 20px;
    background: #eee;
    color: #333;
    border-radius: 5px 5px 0 0;
    margin-right: 2px;
    text-decoration: none;
}
.nav-link.active {
    background: var(--primary);
    color: white;
}
.nav-link:hover {
    background: #ddd;
}

/* Badge stilleri */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
    margin: 0 2px;
}
.bg-danger { background: var(--danger); }
.bg-warning { background: var(--warning); }
.bg-secondary { background: #6c757d; }
.bg-info { background: #17a2b8; }
.bg-primary { background: var(--primary); }
/* ========== MODAL SİSTEMİ ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    animation: fadeIn 0.2s ease;
}

.modal-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e6ed;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.modal-header h4, .modal-header h5 {
    margin: 0;
    color: var(--primary);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(85vh - 140px);
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e6ed;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
}

.modal-footer .btn {
    min-width: 80px;
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Mobil uyum */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 90vh;
    }
    .modal-body {
        max-height: calc(90vh - 140px);
    }
}
