﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

#tempAlertContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1080; /* navbar'ın üstünde olmalı */
}

.toast.text-bg-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.toast.text-bg-success {
    background-color: #198754 !important;
    color: #fff !important;
}



/* Genel Sayfa Stili */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}


/* Tema bazlı body renkleri */
.light-background {
    background-color: #f8f9fa;
    color: #212529;
}

.index-background {
    background: black url('/img/network-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
}


/* Navbar Teması */
.navbar-custom-light {
    background-color: #f8f9fa;
}

.navbar-custom-dark {
    background-color: #283e4a;
    border-bottom: 3px solid #1d2c33;
}

.navbar-brand, .nav-link {
    font-weight: 500;
}

/* Dropdown Menü Temaları */
body.light-background .dropdown-menu {
    background-color: #f8f9fa;
    color: #212529;
    border: 1px solid #ddd;
}

    body.light-background .dropdown-menu a {
        color: #212529;
    }

        body.light-background .dropdown-menu a:hover {
            background-color: rgba(0, 0, 0, 0.05);
        }

body.index-background .dropdown-menu {
    background-color: #283e4a;
    border: 1px solid #1d2c33;
}

    body.index-background .dropdown-menu a {
        color: white;
    }

        body.index-background .dropdown-menu a:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

/* Ana içerik */
.main-content {
    padding: 20px 30px;
}

/* Footer */
footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
}

.language-switcher-fixed {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 1000;
}

.ticket-badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 999px; /* ===> key badge gibi tam yuvarlak */
    white-space: nowrap;
    transition: all 0.2s ease-in-out; /* ===> hover efekti buraya taşındı */
    font-weight: 500;
    letter-spacing: 0.3px;
    min-width: 100px;
    display: inline-block;
    text-align: center;
}

.ticket-badge2 {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 999px; /* ===> key badge gibi tam yuvarlak */
    white-space: nowrap;
    transition: all 0.2s ease-in-out; /* ===> hover efekti buraya taşındı */
    font-weight: 500;
    letter-spacing: 0.3px;
    min-width: 150px;
    display: inline-block;
    text-align: center;
}

.ticket-badge:hover {
    transform: scale(1.05); /* Daha hafif büyüme — ama istersen 1.1 de koyarız */
}

table {
    --bs-table-bg: #1e1e1e; /* koyu arka plan */
    --bs-table-striped-bg: rgba(255,255,255,0.03);
    --bs-table-hover-bg: rgba(255,255,255,0.07);
    border-color: #333;
}

.table th, .table td {
    padding: 0.4rem 0.6rem; /* satır yüksekliği azaltıldı */
    vertical-align: middle !important;
}

.table thead th {
    font-weight: 600;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #555;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.table tbody tr {
    transition: background-color 0.2s ease-in-out;
}

.table-dark th {
    background: linear-gradient(to right, #343a40, #212529); /* siyah gradyan */
    color: #f8f9fa;
    border-bottom: 2px solid #495057;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


.dataTables_length label,
.dataTables_filter label {
    margin-bottom: 0;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    color: #f8f9fa;
}

.dataTables_length select,
.dataTables_filter input {
    max-width: 100px;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    background-color: #212529;
    color: #f8f9fa;
}

.dataTables_filter {
    text-align: right !important;
}

.dataTables_length {
    text-align: left !important;
}

div.dataTables_wrapper div.dataTables_filter,
div.dataTables_wrapper div.dataTables_length {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap; /* <<< Mobilde satır atmasın */
    gap: 1rem; /* Aralarına boşluk verelim */
    flex-direction: row; /* Yatay dizilim */
}

@keyframes aiBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.ai-bounce {
    animation: aiBounce 1.5s ease-in-out infinite;
    color: #ffc107;
    text-shadow: 0 0 4px rgba(255, 193, 7, 0.6);
}

@keyframes aiRotate {
    from {
        transform: rotate(0deg);
        filter: drop-shadow(0 0 6px #00ffaa);
    }

    to {
        transform: rotate(360deg);
        filter: drop-shadow(0 0 6px #00ffaa);
    }
}

.ai-rotate {
    animation: aiRotate 2.5s linear infinite;
    color: #00ff99;
    text-shadow: 0 0 6px rgba(0, 255, 170, 0.8);
}

/* 🔹 Navbar için ufak düzen */
#aiStatusIndicator {
    transition: all 0.4s ease;
}

/* 🎯 Atama Dropdown Menüsü Özelleştirmesi */
.dropdown-menu {
    border-radius: 0.75rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.2s ease-in-out;
    backdrop-filter: blur(6px);
}

/* Ekip üyeleri satırları */
.dropdown-item.assign-user {
    transition: all 0.2s ease-in-out;
    padding: 8px 14px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .dropdown-item.assign-user:hover {
        background-color: #0d6efd;
        color: #fff;
    }

/* Seçili kişi */
.dropdown-item.active {
    background-color: #198754 !important;
    color: #fff !important;
}

/* Atamayı kaldır */
.dropdown-item.text-danger {
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}

    .dropdown-item.text-danger:hover {
        background-color: #dc3545 !important;
        color: #fff !important;
    }

/* Divider */
.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 6px 0;
}

/* Açılma animasyonu */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

