/* Main styles for the application */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
}

/* Card styling */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    font-weight: 500;
}

/* Dashboard cards */
.card-body .display-4 {
    font-size: 2.5rem;
    font-weight: 600;
}

/* Table styling */
.table thead th {
    font-weight: 600;
    border-top: none;
    background-color: #f8f9fa;
}

.datatable th, .datatable td {
    vertical-align: middle;
}

/* Form styling */
.form-label {
    font-weight: 500;
}

.invalid-feedback {
    font-size: 80%;
}

/* Navigation styling */
.navbar-brand {
    font-weight: 600;
}

.nav-link {
    padding: 0.5rem 1rem;
}

/* Footer styling */
footer {
    position: sticky;
    bottom: 0;
}

/* Status badges */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
}

/* Action buttons */
.btn-group .btn {
    padding: 0.25rem 0.5rem;
}

/* Search box in DataTables */
.dataTables_filter input {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Pagination in DataTables */
.dataTables_paginate .paginate_button {
    padding: 0.25rem 0.5rem;
    margin: 0 0.125rem;
    border-radius: 0.25rem;
}

.dataTables_paginate .paginate_button.current {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white !important;
}

/* Login page specific */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding-top: 100px;
}

/* For mobile devices */
@media (max-width: 768px) {
    .card-body .display-4 {
        font-size: 2rem;
    }

    .table-responsive {
        overflow-x: auto;
    }
}

.about-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.thumbnail-grid img,
.thumbnail-card img {
    height: 200px !important;
    object-fit: cover !important;
    object-position: center !important;
}

.bg-turquoise {
  background-color: #c0f4fc; /* Turquoise */
  color: black;
}
.btn-turquoise {
  background-color: #36c9bd; /* Turkuaz rengi */
  color: black;
  border: none;
}

.btn-turquoise:hover {
  background-color: #36c9bd; /* Hover efekti */
  color: black;
}

blockquote {
    padding-left: 1.5rem;
    font-style: italic;
    color: #555;
}

.terms-content h3,
.privacy-content h3 {
    color: #0d6efd;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
    margin-top: 30px;
}

.terms-content ul,
.privacy-content ul {
    padding-left: 20px;
}

.terms-content li,
.privacy-content li {
    margin-bottom: 8px;
}

.card-header h1 {
    font-size: 1.8rem;
}

/* Daha küçük footer */
footer {
    font-size: 0.85rem;
}

footer .small {
    font-size: 0.8rem !important;
}

footer a {
    padding: 0.1rem 0.3rem;
}
/* Navbar ve dropdown z-index düzeltmeleri */
.navbar {
    background: var(--turquoise-main) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    z-index: 1030; /* Bootstrap navbar default z-index */
}

/* Dropdown menu'ler için z-index artırımı */
.navbar .dropdown-menu {
    z-index: 1040 !important; /* Navbar'dan daha yüksek */
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.175);
}

/* Navbar dropdown toggle için z-index */
.navbar .dropdown-toggle {
    z-index: 1035;
}

/* Navbar nav items için z-index */
.navbar-nav .nav-item.dropdown {
    z-index: 1035;
}

/* Navbar collapse için z-index (mobil menü) */
.navbar-collapse {
    z-index: 1035;
}

/* Diğer ana bileşenlerin z-index değerlerini ayarla */
.announcement-ticker {
    z-index: 1020; /* Navbar'dan düşük */
}

.sidebar-menu {
    z-index: 1010; /* Ticker'dan düşük */
}

.sidebar-aphorisms {
    z-index: 1010; /* Ticker'dan düşük */
}

.aphorism-tooltip {
    z-index: 1050; /* Dropdown'dan da yüksek */
}

/* Modal ve diğer overlay'ler için */
.modal {
    z-index: 1055;
}

.modal-backdrop {
    z-index: 1050;
}

/* Özel durumlar için */
.content-wrapper-enhanced {
    position: relative;
    z-index: 1000; /* Base level */
}

.main-content-enhanced {
    position: relative;
    z-index: 1005;
}

/* DataTables ve diğer plugin'ler için */
.dataTables_wrapper {
    z-index: 1005;
}

/* Select2 dropdown'ları için */
.select2-container {
    z-index: 1045;
}

.select2-dropdown {
    z-index: 1045;
}

/* Bootstrap toast'lar için */
.toast {
    z-index: 1060;
}

/* Responsive durumlar için */
@media (max-width: 991.98px) {
    .navbar-toggler {
        z-index: 1035;
    }

    .navbar-collapse.show {
        z-index: 1035;
        background: var(--turquoise-main);
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* Mobil menü dropdown'ları için */
    .navbar-collapse .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin-left: 20px;
    }
}