/* ==========================================================================
   1. FONT & TEMEL DEĞİŞKENLER
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #2c3e50;
    --accent: #2980b9;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --light: #f4f7f6;
    --white: #ffffff;
    --border: #e1e4e8;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* ==========================================================================
   2. GENEL RESET & BODY
   ========================================================================== */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: #333;
    line-height: 1.5;
}

/* ==========================================================================
   3. CONTAINER
   ========================================================================== */
.container,
.panel-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================================================
   4. NAVBAR - DESKTOP
   ========================================================================== */
.desktop-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 800;
}

.nav-brand img {
    height: 70px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255,255,255,0.1);
    color: var(--info);
}

.nav-right-area {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #bdc3c7;
    font-size: 13px;
}

.nav-logout {
    color: var(--danger);
    font-size: 18px;
    transition: 0.3s;
}

.nav-logout:hover {
    transform: scale(1.2);
}

/* ==========================================================================
   5. NAVBAR - MOBİL (BOTTOM NAV)
   ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 420px;
    height: 65px;
    background: #fff;
    border-radius: 20px;
    display: none;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 9999;
}

.nav-item {
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    flex: 1;
}

.nav-item i {
    display: block;
    font-size: 20px;
}

.nav-item.active {
    color: var(--accent);
}

.logout-nav-item {
    color: var(--danger);
}

/* ==========================================================================
   6. BUTONLAR
   ========================================================================== */
.btn,
.submit,
.btn-change,
.btn-search {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.btn-success,
.submit,
.btn-change,
.btn-info {
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(52,152,219,0.3);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

/* ==========================================================================
   7. FORM YAPISI
   ========================================================================== */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #edf2f7;
    border-radius: 8px;
    background: #f9f9f9;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--accent);
    background: #fff;
}

/* ==========================================================================
   8. KARTLAR
   ========================================================================== */
.card,
.bilgi-karti,
.password-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* ==========================================================================
   9. TABLOLAR
   ========================================================================== */
.table-responsive {
    background: #fff;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: var(--shadow);
}

.main-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.main-table thead {
    background: var(--primary);
    color: #fff;
}

.main-table th,
.main-table td {
    padding: 15px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

/* ==========================================================================
   10. TABLO AKSİYONLARI
   ========================================================================== */
.table-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.action-link {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.edit-icon {
    background: rgba(52,152,219,0.1);
    color: #2980b9;
}

.delete-icon {
    background: rgba(231,76,60,0.1);
    color: #e74c3c;
}

/* ==========================================================================
   11. PERSONEL PANELİ
   ========================================================================== */
.p-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 15px;
}

/* ==========================================================================
   12. BADGE
   ========================================================================== */
.badge-telsiz {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ==========================================================================
   13. SWEETALERT FIX
   ========================================================================== */
.swal2-input {
    width: 90% !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 100px;
    }
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }

    body {
        padding-top: 70px;
    }
}