/* Cache busting - Updated at <?= date('Y-m-d H:i:s') ?> */
:root {
    --primary-color: #0143a3;
    --secondary-color: #4e73df;
    --accent-color: #f8f9fa;
    --text-color: #333;
    --light-text: #6c757d;
    --dark-bg: #212529;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --card-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

:root {
    --primary-color: #0143a3;
    --secondary-color: #4e73df;
    --accent-color: #f8f9fa;
    --text-color: #333;
    --light-text: #6c757d;
    --dark-bg: #212529;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --card-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Scrollbar Styles - Light Theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.sidebar {
    width: 270px; /* Orijinal genişlik */
    background-color: white;
    border-right: 1px solid rgba(0,0,0,0.1);
    height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
    padding: 1rem;
    padding-left: 0;
    margin-left: 0;
    overflow-y: auto;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: #858796;
    margin-bottom: 1rem;
    padding: 0 1rem 0.5rem 1rem;
    border-bottom: 1px solid rgba(133, 135, 150, 0.2);
    font-weight: 600;
    white-space: nowrap;
}

.sidebar-heading:first-child {
    margin-top: 0;
}

.sidebar-heading i {
    color: var(--primary-color);
    opacity: 0.8;
    margin-right: 0.5rem;
}

.sidebar-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0.25rem;
    position: relative;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--primary-color);
    background-color: rgba(78, 115, 223, 0.1);
}

.sidebar-link i {
    margin-right: 0.5rem;
    width: 1.25rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Sidebar link içeriğinin z-index'i */
.sidebar-link span,
.sidebar-link {
    position: relative;
    z-index: 2;
}



.content {
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
}

.search-form {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-right: 1rem;
}

.search-form .form-control {
    padding-left: 2.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.1);
    background-color: #f8f9fa;
    height: 45px;
}

.search-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    background-color: white;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

.contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    border: none;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175);
}

.contact-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem;
    position: relative;
}

.contact-avatar {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-name {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.contact-category {
    font-size: 0.85rem;
    opacity: 0.8;
}

.contact-body {
    padding: 1.5rem;
}

.contact-info {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    width: 1.5rem;
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.contact-info-text {
    flex: 1;
    word-break: break-word;
}

.contact-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.2);
    color: white;
    margin-left: 0.25rem;
    transition: var(--transition);
}

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

.filter-dropdown {
    width: 100%;
    margin-bottom: 1rem;
}

.pagination {
    margin-top: 2rem;
}

.pagination .page-link {
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 0.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-add-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.btn-add-contact:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.8);
    background: linear-gradient(135deg, #218838, #1e7e34);
    color: white;
    animation: none;
}

.btn-add-contact:active {
    transform: translateY(-1px) scale(1.05);
}

/* Add category button - same style as add contact */
.btn-add-category {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: none !important;
    color: white !important;
    transition: all 0.3s ease !important;
    animation: pulse-green 2s infinite !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4) !important;
}

.btn-add-category:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.8) !important;
    background: linear-gradient(135deg, #218838, #1e7e34) !important;
    color: white !important;
    animation: none !important;
}

.btn-add-category:active {
    transform: translateY(-1px) scale(1.05) !important;
}

.btn-add-category:focus {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.8) !important;
    color: white !important;
}

/* Pulse animation for add contact button */
@keyframes pulse-green {
    0% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4), 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4), 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4), 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(78, 115, 223, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    margin-right: 0.5rem;
    width: 1.25rem;
    text-align: center;
}

.language-selector .dropdown-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
}

.language-selector .dropdown-toggle:focus {
    box-shadow: none;
}

.language-selector .dropdown-toggle::after {
    display: none;
}

.language-selector .dropdown-menu {
    min-width: 100px;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--light-text);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

/* Mobil menü için ek stiller */
@media (max-width: 992px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .navbar-nav .nav-link i {
        width: 1.25rem;
        margin-right: 0.5rem;
        text-align: center;
    }

    .navbar-nav .nav-link.active {
        color: var(--primary-color);
        font-weight: 500;
    }

    .sidebar {
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding: 0.5rem 1rem; /* Üst-alt padding azaltıldı */
        width: 100%; /* Mobil görünümde tam genişlik */
    }

    .content {
        padding: 1rem 1.5rem; /* Üst-alt padding azaltıldı */
    }
}

/* Arama formu genel stiller */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

/* Sonar efekti için wrapper - Yeşil renk */
.search-form::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 3px solid rgba(40, 167, 69, 0.6);
    border-radius: 25px;
    animation: sonar-pulse-green 2s infinite;
    pointer-events: none;
    z-index: 1;
}

/* İkinci sonar dalgası - Yeşil renk */
.search-form::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid rgba(40, 167, 69, 0.4);
    border-radius: 25px;
    animation: sonar-pulse-green-2 2s infinite 0.5s;
    pointer-events: none;
    z-index: 1;
}

@keyframes sonar-pulse-green {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0;
    }
}

@keyframes sonar-pulse-green-2 {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.search-form .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    color: #8b95a1;
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-form:hover .search-icon,
.search-form .form-control:focus ~ .search-icon {
    color: var(--primary-color);
}

.search-form .form-control {
    padding-left: 3rem;
    border-radius: 25px;
    border: 1px solid #e0e6ed;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(40, 167, 69, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    animation: search-glow-green 3s ease-in-out infinite;
}

@keyframes search-glow-green {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(40, 167, 69, 0.1);
    }
    50% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(40, 167, 69, 0.3), 0 0 15px rgba(40, 167, 69, 0.1);
    }
}

.search-form .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15), 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    transform: translateY(-1px);
    animation: none;
}

.search-form .form-control:hover {
    border-color: #c0c8d1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .page-header .d-flex {
        width: 100%;
        margin-top: 1rem;
    }

    .search-form {
        width: 100%;
        margin-bottom: 1rem;
    }

    .filter-dropdown {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .content {
        padding: 1rem 0.5rem;
    }

    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .page-header {
        padding: 0;
        margin-bottom: 0.5rem;
    }

    .categories-wrapper {
        padding: 0;
    }

    .contact-card {
        margin-bottom: 1rem;
    }

    .btn-add-contact {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        bottom: 6rem; /* Toolbar'ın üstünde görünmesi için */
        right: 1.5rem;
        z-index: 1040; /* Toolbar'dan düşük ama görünür */
    }

    .btn-add-category {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.25rem !important;
        bottom: 6rem !important; /* Toolbar'ın üstünde görünmesi için */
        right: 1.5rem !important;
        z-index: 1040 !important; /* Toolbar'dan düşük ama görünür */
        position: fixed !important; /* Mobile'da fixed position */
    }

    /* Mobilde row ve col padding'lerini azalt */
    .row {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .row > * {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    /* Arama çubuğu mobil optimizasyonu */
    .search-container {
        padding: 0;
        margin-bottom: 0.5rem;
    }

    .search-form {
        position: relative;
        width: 100%;
    }

    .search-form .form-control {
        padding: 0.75rem 1rem 0.75rem 3rem;
        font-size: 1rem;
        width: 100%;
    }

    .search-form .search-icon {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        color: #6c757d;
        font-size: 1rem;
    }

    /* Kategori butonları mobil optimizasyonu */
    .category-btn {
        margin: 0.25rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Kategori kartları mobil optimizasyonu */
    .category-card {
        margin: 0.25rem;
        padding: 0.75rem;
        min-width: auto;
    }

    .category-card .category-name {
        font-size: 0.85rem;
    }

    /* Kişi kartları mobil optimizasyonu */
    .contact-card {
        margin: 0.25rem 0;
    }

    /* Page header mobil optimizasyonu */
    .page-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
        padding: 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .search-form {
        width: 100%;
    }
}


/* Kategori filtreleme için yeni stiller */
.categories-wrapper {
margin-bottom: 2rem;
overflow-x: auto;
padding-bottom: 0.5rem;
-webkit-overflow-scrolling: touch;
}

/* Mobil için kategori wrapper margin'i */
@media (max-width: 576px) {
    .categories-wrapper {
        margin-bottom: 1rem;
    }
}

.categories-container {
display: flex;
flex-wrap: nowrap;
gap: 0.75rem;
min-width: max-content;
padding: 0.25rem 0;
}

.category-card {
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0.75rem 1rem;
background-color: white;
border-radius: 10px;
color: var(--text-color);
font-size: 0.9rem;
white-space: nowrap;
cursor: pointer;
transition: var(--transition);
border: 1px solid rgba(0,0,0,0.1);
text-decoration: none;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
min-width: fit-content;
text-align: center;
flex-shrink: 0;
}

.category-card:hover {
background-color: rgba(78, 115, 223, 0.1);
color: var(--primary-color);
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-card.active {
background-color: var(--primary-color);
color: white;
border-color: var(--primary-color);
}

.category-card i {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}

.category-name {
font-weight: 500;
line-height: 1.2;
}

@media (max-width: 768px) {
.page-header {
flex-direction: column;
align-items: flex-start !important;
}

.page-header .d-flex {
width: 100%;
margin-top: 1rem;
}

.search-form {
width: 100%;
max-width: 100%;
margin-right: 0;
}
}

/* Koyu tema için CSS değişkenleri ve stilleri */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #212529;
    --border-color: #dee2e6;
}

body.dark-theme {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --background-color: #212529;
    --card-bg: #343a40;
    --text-color: #f8f9fa;
    --border-color: #495057;

    background-color: var(--background-color);
    color: var(--text-color);
}

/* Diğer koyu tema stilleri */
body.dark-theme .card,
body.dark-theme .modal-content,
body.dark-theme .dropdown-menu,
body.dark-theme .navbar,
body.dark-theme .sidebar {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

body.dark-theme .dropdown-item,
body.dark-theme .nav-link,
body.dark-theme .sidebar-link {
    color: var(--text-color);
}

body.dark-theme .sidebar-heading {
    color: rgba(255, 255, 255, 0.6);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .dropdown-item:hover,
body.dark-theme .nav-link:hover,
body.dark-theme .sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .table {
    color: var(--text-color);
    border-color: var(--border-color);
}

body.dark-theme .form-control,
body.dark-theme .form-select {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

body.dark-theme .form-control:focus,
body.dark-theme .form-select:focus {
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* Koyu tema için arama formu */
body.dark-theme .search-form .form-control {
    background-color: var(--card-bg);
    border-color: #495057;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-theme .search-form .form-control:hover {
    border-color: #6c757d;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

body.dark-theme .search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25), 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

body.dark-theme .search-form .search-icon {
    color: #adb5bd;
}

/* Koyu tema için sonar efekti - Yeşil renk */
body.dark-theme .search-form::before {
    border-color: rgba(40, 167, 69, 0.7);
    border-width: 3px;
}

body.dark-theme .search-form::after {
    border-color: rgba(40, 167, 69, 0.5);
    border-width: 2px;
}




/* Kişi geçmişi için stiller */
.history-timeline {
    position: relative;
    padding-left: 30px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.history-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.history-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.history-date {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

.history-type {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.history-notes {
    margin-bottom: 0.5rem;
}

.history-user {
    font-size: 0.85rem;
    color: var(--light-text);
    font-style: italic;
}

body.dark-theme .history-item {
    border-bottom-color: var(--border-color);
}

body.dark-theme .history-date,
body.dark-theme .history-user {
    color: rgba(255, 255, 255, 0.6);
}


/* Etiket stilleri */
/* Etiketler için geliştirilmiş stiller */
.tags-wrapper {
    margin-bottom: 20px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tag-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.tag-badge.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #007bff;
}

/* Tüm Etiketler butonu için özel stil */
.tag-badge:first-child {
    background-color: #6c757d;
}

/* Koyu tema için etiket stilleri */
body.dark-theme .tag-badge {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-theme .tag-badge:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

body.dark-theme .tag-badge.active {
    box-shadow: 0 0 0 2px #343a40, 0 0 0 4px #0d6efd;
}
.no-results .btn-primary {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.no-results .btn-primary:hover {
    transform: scale(1.1);
}

/* Tema değiştirme butonu stilleri - v2.0 */
.theme-toggle {
    border: none !important;
    background: transparent !important;
    color: var(--text-color) !important;
    padding: 0.5rem !important;
    margin-right: 0.5rem;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(0, 123, 255, 0.1) !important;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.theme-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.theme-toggle i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* Tema geçiş animasyonu */
.theme-toggle.switching i {
    animation: theme-switch 0.6s ease-in-out;
}

@keyframes theme-switch {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(0.8);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Koyu tema için tema butonu */
body.dark-theme .theme-toggle {
    color: var(--text-color) !important;
}

body.dark-theme .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Mobil tema butonu */
.theme-toggle-mobile {
    border: none !important;
    background: transparent !important;
    color: var(--text-color) !important;
    text-align: left !important;
    padding: 0.75rem 0 !important;
    width: 100%;
    display: flex !important;
    align-items: center;
    text-decoration: none !important;
}

.theme-toggle-mobile:hover {
    color: var(--primary-color) !important;
    background: transparent !important;
}

.theme-toggle-mobile i {
    width: 1.25rem;
    margin-right: 0.5rem;
    text-align: center;
}

body.dark-theme .theme-toggle-mobile {
    color: var(--text-color) !important;
}

body.dark-theme .theme-toggle-mobile:hover {
    color: var(--primary-color) !important;
}

/* Dark Theme - Category Cards */
.dark-theme .category-card {
    background-color: #2d2d2d !important;
    border: 1px solid #404040 !important;
    color: #e0e0e0 !important;
}

.dark-theme .category-card:hover {
    background-color: #404040 !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3) !important;
}

.dark-theme .category-card.active {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

.dark-theme .category-card i {
    color: #b0b0b0 !important;
}

.dark-theme .category-card:hover i,
.dark-theme .category-card.active i {
    color: #ffffff !important;
}

.dark-theme .category-name {
    color: #e0e0e0 !important;
}

.dark-theme .category-card:hover .category-name,
.dark-theme .category-card.active .category-name {
    color: #ffffff !important;
}

/* Dark Theme - Contact Cards Body */
.dark-theme .contact-body {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
}

.dark-theme .contact-info {
    color: #e0e0e0 !important;
}

.dark-theme .contact-info i {
    color: #b0b0b0 !important;
}

.dark-theme .contact-info-text {
    color: #e0e0e0 !important;
}

.dark-theme .contact-info-text a {
    color: #e0e0e0 !important;
    text-decoration: none !important;
}

.dark-theme .contact-info-text a:hover {
    color: #0d6efd !important;
}

/* Dark Theme - Contact Header */
.dark-theme .contact-header {
    background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%) !important;
    color: #ffffff !important;
}

.dark-theme .contact-avatar {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.dark-theme .contact-name {
    color: #ffffff !important;
}

.dark-theme .contact-category {
    color: rgba(255, 255, 255, 0.8) !important;
}

.dark-theme .contact-category i {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Dark Theme - Contact Tags */
.dark-theme .contact-tags .badge {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Dark Theme - Contact Actions */
.dark-theme .btn-action {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.dark-theme .btn-action:hover {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
    transform: scale(1.1);
}

/* Dark Theme - Contact Card Complete Fix */
.dark-theme .contact-card {
    background-color: #2d2d2d !important;
    border: 1px solid #404040 !important;
    color: #e0e0e0 !important;
}

.dark-theme .contact-card * {
    color: inherit !important;
}

.dark-theme .contact-card .contact-info-text a {
    color: #e0e0e0 !important;
}

.dark-theme .contact-card .contact-info-text a:hover {
    color: #0d6efd !important;
}

/* Dark Theme - Text Colors Override */
.dark-theme .text-dark {
    color: #e0e0e0 !important;
}

.dark-theme .text-decoration-none.text-dark {
    color: #e0e0e0 !important;
}

/* Dark Theme - Card Body Complete */
.dark-theme .card-body {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
}

.dark-theme .card {
    background-color: #2d2d2d !important;
    border: 1px solid #404040 !important;
    color: #e0e0e0 !important;
}

.dark-theme .card-header {
    background-color: #404040 !important;
    border-bottom: 1px solid #555 !important;
    color: #ffffff !important;
}

/* Dark Theme - Login Page */
.dark-theme body {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d) !important;
}

.dark-theme .card {
    background: rgba(45, 45, 45, 0.95) !important;
    border: 1px solid #404040 !important;
    color: #e0e0e0 !important;
}

.dark-theme .form-control {
    background-color: #404040 !important;
    border: 1px solid #555 !important;
    color: #e0e0e0 !important;
}

.dark-theme .form-control:focus {
    background-color: #404040 !important;
    border-color: #0d6efd !important;
    color: #e0e0e0 !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

.dark-theme .form-control::placeholder {
    color: #b0b0b0 !important;
}

.dark-theme .form-label {
    color: #e0e0e0 !important;
}

.dark-theme .app-logo h2 {
    color: #ffffff !important;
}

.dark-theme .app-logo i {
    color: #0d6efd !important;
}

.dark-theme .alert-danger {
    background-color: #4a1e1e !important;
    border-color: #6b2c2c !important;
    color: #ff6b6b !important;
}

.dark-theme .form-select {
    background-color: #404040 !important;
    border: 1px solid #555 !important;
    color: #e0e0e0 !important;
}

.dark-theme .form-select:focus {
    background-color: #404040 !important;
    border-color: #0d6efd !important;
    color: #e0e0e0 !important;
}

/* Dark Theme - Modern Login Page */
.dark-theme body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

.dark-theme .login-card {
    background: rgba(45, 45, 45, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-theme .login-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a2e 100%) !important;
}

.dark-theme .login-body {
    background: rgba(45, 45, 45, 0.95) !important;
}

.dark-theme .form-floating .form-control {
    background: rgba(64, 64, 64, 0.8) !important;
    border: 2px solid #555 !important;
    color: #e0e0e0 !important;
}

.dark-theme .form-floating .form-control:focus {
    background: rgba(64, 64, 64, 0.9) !important;
    border-color: #667eea !important;
    color: #e0e0e0 !important;
}

.dark-theme .form-floating label {
    color: #b0b0b0 !important;
}

.dark-theme .language-selector select {
    background: linear-gradient(135deg, #404040, #2d2d2d) !important;
    border: 2px solid #555 !important;
    color: #e0e0e0 !important;
}

.dark-theme .language-selector select:hover {
    border-color: #667eea !important;
}

.dark-theme .demo-info {
    background: linear-gradient(135deg, #4a4a4a, #3d3d3d) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-theme .demo-info .demo-text {
    color: #e0e0e0 !important;
}

.dark-theme .demo-highlight {
    color: #ff6b6b !important;
}

.dark-theme .alert-danger {
    background: rgba(74, 30, 30, 0.9) !important;
    border: 1px solid #6b2c2c !important;
    color: #ff6b6b !important;
}

/* Dark Theme - Scrollbar Styles */
body.dark-theme ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.dark-theme ::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 10px;
}

body.dark-theme ::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 10px;
    transition: background 0.3s ease;
}

body.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: #777777;
}

body.dark-theme ::-webkit-scrollbar-corner {
    background: #2d2d2d;
}

/* Dark Theme - Sidebar Scrollbar */
body.dark-theme .sidebar::-webkit-scrollbar {
    width: 6px;
}

body.dark-theme .sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

body.dark-theme .sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

body.dark-theme .sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Dark Theme - Modal and Dropdown Scrollbars */
body.dark-theme .modal-body::-webkit-scrollbar,
body.dark-theme .dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

body.dark-theme .modal-body::-webkit-scrollbar-track,
body.dark-theme .dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

body.dark-theme .modal-body::-webkit-scrollbar-thumb,
body.dark-theme .dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

body.dark-theme .modal-body::-webkit-scrollbar-thumb:hover,
body.dark-theme .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile Bottom Toolbar */
.mobile-toolbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
}

.mobile-toolbar-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-toolbar-item {
    flex: 1;
    text-align: center;
}

.mobile-toolbar-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.25rem;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.mobile-toolbar-link:hover,
.mobile-toolbar-link.active {
    color: var(--primary-color);
    background: rgba(1, 67, 163, 0.1);
    transform: translateY(-2px);
}

.mobile-toolbar-link i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.mobile-toolbar-link span {
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
}

/* Dark Theme - Mobile Toolbar */
body.dark-theme .mobile-toolbar {
    background: var(--card-bg);
    border-top-color: var(--border-color);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
}

body.dark-theme .mobile-toolbar-link {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-theme .mobile-toolbar-link:hover,
body.dark-theme .mobile-toolbar-link.active {
    color: var(--primary-color);
    background: rgba(13, 110, 253, 0.15);
}



/* Show mobile toolbar only on mobile devices */
@media (max-width: 992px) {
    .mobile-toolbar {
        display: block;
    }

    /* Add bottom padding to content to prevent overlap */
    .content {
        padding-bottom: 5rem !important;
    }

    .container-fluid {
        padding-bottom: 1rem;
    }

    /* Hide hamburger menu and reduce header height */
    .navbar-toggler {
        display: none !important;
    }

    .navbar-collapse {
        display: none !important;
    }

    .navbar {
        padding: 0.25rem 1rem !important;
        min-height: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
    }

    .navbar-brand {
        font-size: 1rem !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }

    .navbar-brand i {
        font-size: 0.9rem !important;
        margin-right: 0.3rem !important;
    }
}
