/* Temel stil ve font ayarları */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1976D2;
    text-decoration: none;
}

/* Kapsayıcı düzeni */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    display: flex;
    flex: 1;
    background-color: #f0f2f5;
}

/* Üst Bar */
.top-bar {
    background-color: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar h1 {
    margin: 0;
    font-size: 1.6rem;
    color: #4a5568;
    font-weight: 600;
}

.user-info {
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Yan Bar (Side Bar) */
.side-bar {
    width: 250px;
    background-color: #ffffff;
    padding: 1.5rem;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    position: sticky;
    top: 0;
    left: 0;
    border-right: 1px solid #e0e0e0;
    transition: all 0.3s ease; /* YENİ: Geçiş animasyonu */
}

.side-bar h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 1px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.side-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-bar ul li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.side-bar ul li a:hover {
    background-color: #e3f2fd;
    color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.menu-icon {
    margin-right: 1rem;
    font-size: 1.25rem;
    width: 25px; /* İkonlar için sabit genişlik */
    text-align: center;
    transition: color 0.3s ease;
}

/* Menü ikonlarına renkler ekleme */
.side-bar ul li a:hover .menu-icon {
    color: #1976D2;
}
.side-bar .fa-home { color: #4CAF50; }
.side-bar .fa-plus-circle { color: #2196F3; }
.side-bar .fa-list-alt { color: #FF9800; }
.side-bar .fa-users-cog { color: #9C27B0; }
.side-bar .fa-cog { color: #F44336; }
.side-bar .fa-clipboard-list { color: #FF5722; }
.side-bar .fa-tools { color: #607D8B; }
.side-bar .fa-map-marker-alt { color: #009688; }
.side-bar .fa-sitemap { color: #795548; }

/* Ana İçerik Alanı */
.content-area {
    flex: 1;
    padding: 2rem;
    background-color: #f0f2f5;
    max-width: 1200px;
    margin: 0 auto;
}

.content-area h2 {
    color: #3f51b5;
    margin-top: 0;
    font-size: 2rem;
    font-weight: 600;
}

/* Form Stilleri */
.request-form {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #4a5568;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

/* Ortak buton stilleri */
.submit-button, .login-button, .back-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Buton renkleri */
.submit-button, .login-button {
    background-color: #28a745;
}

.submit-button:hover, .login-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.back-button {
    background-color: #6c757d;
    margin-top: 1rem;
}

.back-button:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Giriş Sayfası Özel Stilleri */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Talep Tablosu Stilleri */
.table-container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
    overflow-x: auto;
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
}

.requests-table th, .requests-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.requests-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
}

.requests-table tbody tr:last-child td {
    border-bottom: none;
}

/* Filtreleme ve Arama Formu Stilleri */
.filter-container {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-form .form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
}

.filter-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.filter-form input[type="text"],
.filter-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-form input[type="text"]:focus,
.filter-form textarea:focus,
.filter-form select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}


.filter-form .submit-button {
    padding: 0.8rem 1.5rem;
    background-color: #2196F3;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.filter-form .submit-button:hover {
    background-color: #1976D2;
}

/* Kullanıcı yönetim tablosu için durum renkleri */
.status-active {
    color: #28a745;
    font-weight: bold;
}

.status-inactive {
    color: #dc3545;
    font-weight: bold;
}

/* Talep tablosu için durum rozetleri */
.requests-table .status-açık {
    color: #007bff; /* Mavi */
    font-weight: bold;
}
.requests-table .status-devam-ediyor {
    color: #ffc107; /* Sarı */
    font-weight: bold;
}
.requests-table .status-kapalı {
    color: #dc3545; /* Kırmızı */
    font-weight: bold;
}
.requests-table .status-çözüldü {
    color: #28a745; /* Yeşil */
    font-weight: bold;
}
.requests-table .status-cevap-bekleniyor {
    color: #ff9800; /* Turuncu */
    font-weight: bold;
}


/* Tablo işlemlerindeki ikon butonları için stiller */
.icon-button {
    font-size: 1.2rem;
    margin: 0 0.5rem;
    cursor: pointer;
    color: #555;
    transition: color 0.2s, transform 0.2s;
}

.icon-button:hover {
    color: #2196F3;
    transform: scale(1.1);
}

.fa-edit { color: #17a2b8; }
.fa-trash-alt { color: #dc3545; }
.fa-user-slash { color: #ffc107; }
.fa-user-check { color: #28a745; }
.fa-user-tag { color: #6f42c1; }
.fa-eye { color: #6c757d; }
.fa-cogs { color: #3f51b5; }
.fa-user-plus { color: #28a745; }

.fa-edit:hover { color: #138496; }
.fa-trash-alt:hover { color: #c82333; }
.fa-user-slash:hover { color: #e0a800; }
.fa-user-check:hover { color: #218838; }
.fa-user-tag:hover { color: #5a3c9b; }
.fa-eye:hover { color: #5a6268; }
.fa-cogs:hover { color: #303f9f; }
.fa-user-plus:hover { color: #218838; }


/* Mesaj kutusu stilleri */
.message {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message.success {
    background-color: #e8f5e9;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #ffebee;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* RESPONSIVE TASARIM DÜZENLEMELERİ */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .side-bar {
        width: 100%;
        padding: 1rem;
        position: static;
        box-shadow: none;
        border-right: none;
        /* YENİ: Başlangıçta gizli olsun */
        transform: translateX(-100%);
        position: fixed;
        z-index: 999;
        height: 100vh;
        top: 0;
        left: 0;
    }

    body.sidebar-open .side-bar {
        transform: translateX(0);
    }
    
    .menu-toggle-button {
        display: block; /* YENİ: Buton sadece mobilde görünür olacak */
    }

    .content-area {
        padding: 1rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .top-bar .user-info {
        margin-top: 0.5rem;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-form .form-group {
        width: 100%;
        min-width: unset;
    }

    .filter-form .submit-button {
        width: 100%;
    }

    .back-button {
        width: 100%;
    }
    
    /* Masaüstü ve mobil görünümde ikonların yan yana durması için flexbox container */
    .action-buttons {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        justify-content: flex-end; /* İkonları sağa yaslar */
    }

    /* Mobil tablolar için kart görünümü */
    .table-container {
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
    .requests-table {
        border: none;
        width: 100%;
    }
    .requests-table thead {
        display: none;
    }
    .requests-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background-color: #ffffff;
        padding: 1rem;
    }
    .requests-table tbody tr:last-child {
        margin-bottom: 0;
    }
    .requests-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px dashed #e0e0e0;
        text-align: right;
    }
    .requests-table td:before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        color: #3f51b5;
        padding-right: 1rem;
    }
    .requests-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .requests-table .icon-button {
        margin: 0;
        font-size: 1.5rem;
    }

    .card-selection-container {
        flex-direction: column;
    }
}

/* Talep Detay Sayfası Stilleri */
.request-detail-container {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.detail-group {
    margin-bottom: 1.5rem;
}

.detail-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #3f51b5;
    font-size: 1.1rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.25rem;
}

.detail-group p {
    margin: 0;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Talep tablosu için durum rozetleri */
.status-badge {
    display: inline-block;
    font-weight: bold;
}

.status-açık {
    color: #007bff;
}
.status-devam-ediyor {
    color: #ffc107;
}
.status-kapalı {
    color: #dc3545;
}
.status-çözüldü {
    color: #28a745;
}


/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    animation-name: modalopen;
    animation-duration: 0.4s;
}

.modal-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.modal-body p {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #666;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.confirm-button, .cancel-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}

.confirm-button {
    background-color: #dc3545;
    color: white;
}

.confirm-button:hover {
    background-color: #c82333;
}

.cancel-button {
    background-color: #6c757d;
    color: white;
}

.cancel-button:hover {
    background-color: #5a6268;
}

/* ===== YENİ KART STİLLERİ VE DÜZENLEMELER ===== */
.card-selection-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    /* EKLENDİ: Bu özellik, kartların yeterli alan olmadığında alt satıra geçmesini sağlar. */
    flex-wrap: wrap;
}

.request-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* DÜZENLENDİ: Kartların esnek ve tutarlı bir genişliğe sahip olmasını sağlar. */
    flex-basis: 200px;
    flex-grow: 1;
    max-width: 220px;

    /* DÜZENLENDİ: İçeriği (ikon ve metin) dikeyde ve yatayda ortalar. */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    min-height: 160px;
}

.request-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.request-card h3 {
    margin-top: 1.25rem;
    color: #3f51b5;
    font-size: 1.1rem; /* Yazı boyutu ayarlandı */
}

.hidden-form {
    display: none;
}

/* ===== Dinamik Bildirim (Toast) Stilleri ===== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    align-items: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast .fas {
    margin-right: 10px;
    font-size: 1.2rem;
}

.toast-success {
    background-color: #28a745; /* Yeşil */
    border-left: 5px solid #218838;
}

.toast-error {
    background-color: #dc3545; /* Kırmızı */
    border-left: 5px solid #c82333;
}
/* ===== Zaman Çizelgesi (Timeline) Stilleri ===== */
.timeline-container {
    margin-top: 2.5rem;
}

.timeline-container h3 {
    color: #3f51b5;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.timeline {
    position: relative;
    padding: 1rem 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 4px;
    background: #e9ecef;
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2196F3;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px #2196F3;
}

.timeline-content {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.timeline-content p {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.timeline-content .actor {
    font-weight: 600;
    color: #3f51b5;
}

.timeline-time {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}
