/**
 * Görev Yönetim Sistemi - Modern Flat Tema
 * Renk Paleti: #FE8D01 (Turuncu) & #0D78AA (Mavi)
 * No Gradients, No Shadows - Pure Flat Design
 */

:root {
    --primary-color: #0D78AA;
    --secondary-color: #FE8D01;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --border-radius: 8px;
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f1f5f9;
    color: #334155;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: white;
    border-bottom: 3px solid var(--primary-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-color);
}
.navbar-brand:hover {
    color: var(--secondary-color);
}
.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230D78AA' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5rem;
    height: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: #64748b;
    transition: var(--transition);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin: 0 0.25rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background: #f1f5f9;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: white;
    background: var(--primary-color);
}

.dropdown-menu {
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
}

.login-card {
    background: white;
    border-radius: 12px;
    border: 2px solid #cbd5e1;
    overflow: hidden;
    max-width: 420px;
    width: 100%;
}

.login-header {
    background: white;
    color: var(--dark-color);
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
}

.login-header i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-header h2 {
    margin: 0.5rem 0;
    font-weight: 700;
    color: var(--dark-color);
}

.login-header p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

.login-body {
    padding: 2rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn:hover {
    opacity: 0.9;
}

.btn:active {
    opacity: 0.8;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #0a6d9f;
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #e67e01;
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

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

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline-secondary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-outline-danger {
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
}

/* Cards */
.card {
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    transition: var(--transition);
    margin-bottom: 1.5rem;
    background: white;
}

.card:hover {
    border-color: var(--primary-color);
}

.card-header {
    background-color: white;
    border-bottom: 2px solid #f1f5f9;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.card-body {
    padding: 1.5rem;
}

/* Task Columns (Trello-style) */
.task-board {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1.5rem 0;
    height: calc(100vh - 180px);
    align-items: flex-start;
}

.task-column {
    flex: 0 0 320px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.task-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark-color);
    flex-shrink: 0;
}

.task-column-header .badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    font-weight: 600;
}

.task-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
}

/* Task Card - Temiz ve Düzenli */
.task-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: fit-content;
}

.task-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(13, 120, 170, 0.1);
}

/* Öncelik Badge */
.task-card-priority {
    display: flex;
    justify-content: flex-start;
}

.task-card-priority .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    font-weight: 600;
}

/* Görev Başlığı */
.task-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-color);
    line-height: 1.4;
    margin: 0;
}

/* Görev Açıklaması */
.task-card-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Meta Bilgiler (Alt Kısım) */
.task-card-meta {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.task-card-meta small {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.6;
}

.task-card-meta small i {
    margin-right: 0.25rem;
    font-size: 0.7rem;
}

.task-card-meta .d-flex {
    margin-bottom: 0.5rem;
}

.task-card-meta .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    font-weight: 500;
}

.task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 2px solid #f1f5f9;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Priority Badge */
.priority-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-low {
    background-color: #d1fae5;
    color: #065f46;
}

.priority-medium {
    background-color: #fef3c7;
    color: #92400e;
}

.priority-high {
    background-color: #fed7aa;
    color: #9a3412;
}

.priority-urgent {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Status Badges */
.badge {
    border-radius: 20px;
    padding: 0.4rem 0.85rem;
    font-weight: 600;
    font-size: 0.8rem;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
}

/* Timeline - Görev Geçmişi */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 1rem;
    margin-left: 0.25rem;
}

.timeline-item:last-child {
    border-left: 2px solid transparent !important;
    padding-bottom: 0;
}

.timeline-item .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    font-weight: 600;
}

.timeline-item small {
    font-size: 0.75rem;
}

/* Modal */
.modal-content {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.modal-header {
    background: white;
    color: var(--dark-color);
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid #f1f5f9;
    padding: 1.5rem 2rem;
}

.modal-title {
    font-weight: 700;
    color: var(--dark-color);
}

.modal-header .btn-close {
    opacity: 0.5;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 2px solid #f1f5f9;
    padding: 1.25rem 2rem;
}

/* Form */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 0.7rem 1rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.input-group-text {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-right: none;
    color: #64748b;
    border-radius: 8px 0 0 8px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alert / Toast Notifications */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    border-radius: 8px;
    border: 2px solid transparent;
    padding: 1rem 1.5rem;
    font-weight: 500;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.alert-success::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.alert-danger::before {
    content: "✕";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.alert-warning::before {
    content: "⚠";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.alert-info {
    background-color: #cffafe;
    color: #164e63;
    border-color: #06b6d4;
}

.alert-info::before {
    content: "ℹ";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #06b6d4;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.alert .btn-close {
    margin-left: auto;
    flex-shrink: 0;
}

.alert {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Multiple alerts stacking */
.alert:nth-of-type(2) {
    top: 90px;
}

.alert:nth-of-type(3) {
    top: 160px;
}

.alert:nth-of-type(4) {
    top: 230px;
}

/* Stats Cards */
.stats-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.stats-card:hover {
    border-color: var(--primary-color);
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--primary-color);
}

.stats-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* User Badge */
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background-color: #f1f5f9;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark-color);
}

.user-badge i {
    color: var(--primary-color);
}

/* Table */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f8fafc;
    color: var(--dark-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    padding: 1rem;
}

.table tbody tr {
    transition: var(--transition);
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

.table td {
    vertical-align: middle;
    padding: 1rem;
    border-color: #f1f5f9;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
}

.nav-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px 8px 0 0;
    transition: var(--transition);
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background: #f8fafc;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: white;
    border-bottom: 3px solid var(--primary-color);
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner-border {
    color: var(--primary-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    color: var(--primary-color);
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .task-board {
        flex-direction: column;
        height: auto;
    }

    .task-column {
        flex: 1;
        width: 100%;
        height: auto;
        max-height: 500px;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 1rem;
        border: 2px solid #e2e8f0;
    }

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        border-top: 2px solid #e2e8f0;
        margin-top: 1rem;
        animation: slideDown 0.3s ease;
    }

    .navbar-dark .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem;
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .dropdown-menu {
        border: none;
        padding: 0;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .stats-card h3 {
        font-size: 2rem;
    }

    .login-card {
        margin: 1rem;
    }

    .alert {
        min-width: auto;
        max-width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
    }

    .modal-dialog {
        margin: 1rem;
    }

    .btn-group {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .btn-group > .btn {
        flex: 1 1 auto;
        min-width: 120px;
    }

    /* Mobilde Görev Kartları */
    .task-card {
        padding: 0.75rem;
    }

    .task-card-title {
        font-size: 0.9rem;
    }

    .task-card-description {
        font-size: 0.8rem;
    }

    .task-card-meta small {
        font-size: 0.7rem;
        word-break: break-word;
    }

    .task-card-meta .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    .task-card-meta .d-flex {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .navbar-brand i {
        display: none;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    /* Küçük Ekranlarda Görev Kartları */
    .task-card {
        padding: 0.65rem;
        gap: 0.5rem;
    }

    .task-card-title {
        font-size: 0.875rem;
        line-height: 1.3;
    }

    .task-card-description {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .task-card-meta {
        padding-top: 0.4rem;
    }

    .task-card-meta small {
        font-size: 0.65rem;
        display: block;
        margin-bottom: 0.25rem;
    }

    .task-card-meta .badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.35rem;
        display: inline-block;
        margin-bottom: 0.25rem;
    }

    .task-card-priority .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .btn-group > .btn {
        width: 100%;
        border-radius: 8px !important;
        margin: 0 !important;
    }

    .modal-body .btn-group {
        margin-bottom: 1rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Drag and Drop Styles */
.task-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.task-cards.drag-over {
    background-color: #e0f2fe;
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 0.5rem;
}

.task-card {
    transition: border-color 0.2s ease;
}

.task-card:active {
    cursor: grabbing;
}

/* Utilities */
.text-muted-custom {
    color: #64748b !important;
}

.cursor-pointer {
    cursor: pointer;
}

.transition {
    transition: var(--transition);
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* Container */
.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Page Headers */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: 700;
}

h2 {
    margin-bottom: 0.5rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Error Pages */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    text-align: center;
}

.error-container {
    max-width: 600px;
    padding: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.error-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #64748b;
}

.error-icon {
    font-size: 6rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.btn-home {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-home:hover {
    background: #0a6d9f;
    color: white;
    opacity: 0.9;
}

.btn-secondary-error {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    margin-left: 1rem;
}

.btn-secondary-error:hover {
    background: var(--primary-color);
    color: white;
}

/* Select2 Custom Styles - Modern & Clean */
.select2-container--bootstrap-5 .select2-selection {
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
    background-color: white !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple {
    align-items: flex-start !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    padding: 0 !important;
    width: 100% !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background-color: var(--primary-color) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0.4rem 0.75rem !important;
    color: white !important;
    margin: 0 !important;
    font-size: 0.875rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    order: 2 !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fee2e2 !important;
    background: none !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-search {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-search .select2-search__field {
    border: none !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 38px !important;
    width: 100% !important;
    font-size: 0.95rem !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-search .select2-search__field:focus {
    outline: none !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--primary-color) !important;
    box-shadow: none !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin-top: 0.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected {
    background-color: #f1f5f9 !important;
    color: var(--dark-color) !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search {
    padding: 0.75rem !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
    border: 2px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 0.5rem 0.75rem !important;
    width: 100% !important;
    font-size: 0.95rem !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
    border-color: var(--primary-color) !important;
    outline: none !important;
}

/* ==================== BİLDİRİM STİLLERİ ==================== */

/* Bildirim dropdown */
.notification-dropdown {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.notification-dropdown .dropdown-header {
    padding: 1rem 1.25rem;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

/* Bildirim öğesi */
.notification-dropdown .dropdown-item {
    padding: 0.75rem 1.25rem;
    border: none;
    transition: background-color 0.2s ease;
}

.notification-dropdown .dropdown-item:hover {
    background-color: #f8fafc;
}

/* Okunmamış bildirim */
.notification-unread {
    background-color: #eff6ff;
}

.notification-unread:hover {
    background-color: #dbeafe !important;
}

/* Bildirim ikonu */
.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e2e8f0;
    color: #64748b;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-icon-unread {
    background-color: #dbeafe;
    color: var(--primary-color);
}

/* Bildirim başlık ve mesaj */
.notification-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.notification-message {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #475569;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

/* Bildirim içeriği container */
.notification-dropdown .dropdown-item .flex-grow-1 {
    overflow: hidden;
    max-width: 100%;
}

.notification-dropdown .dropdown-item .d-flex {
    max-width: 100%;
}

/* Bildirim badge (header'daki kırmızı nokta) */
#notificationCount {
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bildirim dropdown ayırıcı */
.notification-dropdown .dropdown-divider {
    margin: 0;
    opacity: 0.5;
}

/* Boş bildirim durumu */
.notification-dropdown .text-center i {
    opacity: 0.3;
}

/* Responsive - mobil için bildirim dropdown */
@media (max-width: 576px) {
    .notification-dropdown {
        width: calc(100vw - 2rem) !important;
        max-width: 400px;
    }

    .notification-dropdown .dropdown-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
}

/* ==================== CHAT STİLLERİ ==================== */

/* Chat Container Height */
.card-body > .row.g-0 {
    min-height: 600px;
    max-height: calc(100vh - 150px);
}

/* Chat Sidebar */
.chat-sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
}

.chat-contacts {
    flex: 1;
    overflow-y: auto;
    background-color: white;
    min-height: 400px;
    max-height: calc(100vh - 250px);
}

.chat-contact-item {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-contact-item:hover {
    background-color: #f8fafc;
}

.chat-contact-item.active {
    background-color: #eff6ff;
    border-left: 3px solid var(--primary-color);
}

.chat-contact-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.chat-contact-info {
    flex: 1;
    min-width: 0;
}

.chat-contact-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.chat-contact-last-message {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-contact-time {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}

.chat-contact-unread {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Chat Main Area */
.chat-main {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.chat-empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
}

.chat-header {
    flex-shrink: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: linear-gradient(to bottom, #f8fafc 0%, white 100%);
    min-height: 400px;
    max-height: calc(100vh - 300px);
}

.chat-input {
    flex-shrink: 0;
}

/* Mesaj Balonları */
.message-item {
    display: flex;
    margin-bottom: 1rem;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-item.sent {
    justify-content: flex-end;
}

.message-item.received {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-item.sent .message-bubble {
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-item.received .message-bubble {
    background-color: #e2e8f0;
    color: #1e293b;
    border-bottom-left-radius: 4px;
}

.message-text {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    display: block;
    margin-top: 0.25rem;
}

.message-file {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-item.sent .message-file {
    background-color: rgba(255, 255, 255, 0.15);
}

.message-file a {
    color: inherit;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-file a:hover {
    text-decoration: underline;
}

.message-delete {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.message-item:hover .message-delete {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mesaj Tarihi Ayırıcı */
.message-date-divider {
    text-align: center;
    margin: 1.5rem 0;
}

.message-date-divider span {
    background-color: #e2e8f0;
    padding: 0.25rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* Grup Mesaj Avatar */
.message-avatar {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.avatar-circle-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.group-sender-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.message-item.sent .message-bubble .group-sender-name {
    color: rgba(255, 255, 255, 0.9);
}

.message-item.received {
    align-items: flex-end;
}

/* Scrollbar Styling */
.chat-contacts::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-contacts::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.chat-contacts::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.chat-contacts::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .message-bubble {
        max-width: 85%;
    }

    .chat-sidebar {
        border-right: none !important;
    }

    .chat-contacts {
        max-height: 300px;
    }
}

/* ==================== YAZIYIOR GÖSTERGESİ ==================== */

.typing-indicator {
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: flex-start;
}

.typing-indicator-content {
    background-color: #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.typing-indicator-content span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #64748b;
    animation: typingDot 1.4s infinite;
}

.typing-indicator-content span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator-content span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ==================== MESAJ BİLDİRİMİ ALERT ==================== */

.chat-notification-alert {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    min-width: 350px;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
    transition: all 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-notification-content {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.chat-contact-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.95rem;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.chat-notification-message {
    font-size: 0.9rem;
    opacity: 0.95;
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.chat-notification-alert:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

/* Grup Üyeleri Modal */
#groupMembersList .list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

#groupMembersList .list-group-item:hover {
    background-color: #f8f9fa;
    border-left-color: var(--primary-color);
    transform: translateX(3px);
}

#groupMembersList .list-group-item:hover .btn-danger {
    opacity: 1;
}

#groupMembersList .avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

#groupMembersList .btn-danger {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

/* Responsive */
@media (max-width: 576px) {
    .chat-notification-alert {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }

    .chat-notification-message {
        max-width: 200px;
    }
}
