/* Glow efekti yeni mesaj geldiğinde */
.chat-link.active-glow img {
    border-image: linear-gradient(45deg, #ff0066, #9900ff) 1;
    border-radius: 50%;
    animation: pulse 1s infinite alternate;
}

/* Durum noktası (online/offline) */
.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
}
.bg-success {
    background-color: #28a745 !important;
}
.bg-secondary {
    background-color: #6c757d !important;
}

/* Mesaj kutuları */
.message {
    max-width: 75%;
    padding: 10px 14px;
    margin: 6px 0;
    border-radius: 18px;
    display: inline-block;
    word-wrap: break-word;
}

.message.sent {
    background-color: #d1e7dd;
    align-self: flex-end;
    border-radius: 15px 15px 0 15px;
    text-align: right;
    margin-left: auto;
}

.message.received {
    background-color: #f8d7da;
    align-self: flex-start;
    border-radius: 15px 15px 15px 0;
    margin-right: auto;
    text-align: left;
}

/* Yazışma alanı */
#chatArea {
    overflow-y: auto;
    padding: 15px;
    background-color: #fdfdfd;
}

/* Emoji picker pozisyonu */
emoji-picker {
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Bildirim efekti */
@keyframes pulse {
    from {
        box-shadow: 0 0 0px #ff0066;
    }
    to {
        box-shadow: 0 0 12px #ff0066;
    }
}
.chat-link, .arkadaslik-link {
    cursor: pointer;
    position: relative;
}

.chat-link img.user-avatar {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}

.insta-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 4px;
}

.chat-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
}

.insta-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
    animation: spin-ring 1.6s linear infinite;
    z-index: 1;
}

@keyframes spin-ring {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#chatArea {
    height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.message {
    padding: 6px 10px;
    margin-bottom: 5px;
    border-radius: 8px;
}
.sent {
    align-self: flex-end;
    background-color: #e0f7fa;
}
.received {
    align-self: flex-start;
    background-color: #f1f1f1;
}

.custom-user-menu {
    top: 100%;
    right: 0;
    min-width: 180px;
    max-width: 100vw;
    z-index: 999;
}

@media (max-width: 576px) {
    .custom-user-menu {
        left: 0 !important;
        right: auto !important;
    }
}

body {
    font-family: "Jost", sans-serif;
    background-color: black;
}

.header-image {
    height: 300px;
    background: url('/img/arka-plan2.jpg') no-repeat right top;
    background-size: auto;
}

.white-box {
    background-color: white;
    border-radius: 25px;
}
.foto-kutu {
    transition: background-color 0.2s ease;
    border-radius: 10px;
    padding: 8px;
}
.foto-kutu img {
    transition: transform 0.2s ease;
}
.foto-kutu:hover {
    background-color: #e9ecef;
}
.foto-kutu img:hover {
    transform: scale(1.05);
    cursor: pointer;
}
.foto-alt {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* üst hizalama */
    text-align: left;
}
.filter-group-ic {
    background-color: #e9ecef;
    border-radius: 20px;
    padding: 5px;
}
.filter-group {
    padding: 5px;
    margin-bottom: 20px;
}
.checkbox-wrapper {
    display: inline-block;
    background-color: #fff;
    border-radius: 15px;
    padding: 8px 12px;
    margin: 5px;
    width: 100%;
}

.checkbox-wrapper input {
    margin-right: 6px;
}

/* Genel Checkbox Kutusu */
.custom-checkbox {
    display: inline-block;
    position: relative;
    width: 28px;
    height: 28px;
    margin-right: 6px;
}

/* Gizli checkbox */
.custom-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 100%;
    border: 2px solid #d11f79;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease-in-out;
}

/* Seçili durumda arka plan pembe */
.custom-checkbox input[type="checkbox"]:checked {
    background-color: #d11f79;
}

/* Tik işareti */
.custom-checkbox input[type="checkbox"]::after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%) scale(0);
    transition: transform 0.2s ease-in-out;
}

/* Tik görünsün */
.custom-checkbox input[type="checkbox"]:checked::after {
    transform: translate(-50%, -55%) scale(1);
}

/* Etiket ile hizalama */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin: 4px;
}

.checkbox-wrapper label {
    margin-left: 4px;
    margin-bottom: 0;
    user-select: none;
}

.btn {
    border:none;
    border-top: 1px solid #338cf8;
    background-color: #3b5998 !important;
    color: white !important;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    border:none;
    border-top: 1px solid #338cf8;
    background-color: #2d4373 !important;
    color: white !important;
    text-decoration: none;
}
body, html {
    height: 100%;
    margin: 0;
}

.bg-image {
    background-image: url('/img/arka-plan.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    width: 100%;
    position: relative;
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* opsiyonel karartma */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.title-box {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 20px;
}
@media (max-width: 768px) {
    .logo-index {
        max-height: 32px;
    }
    .lead {
        font-size: 12px;
    }
}
.login-area {
    display: none;
    transition: max-height 0.7s ease;
    overflow: hidden;
    max-height: 0;
}

.login-area.show {
    display: block;
    min-height: 300px;
}

.social-btn img {
    height: 24px;
    margin-right: 8px;
}
/* Özel Checkbox Tasarımı */
.form-check-input {
    width: 1.5rem; /* Yüksekliği artırdık */
    height: 1.5rem; /* Yüksekliği artırdık */
    border-radius: 0.25rem; /* Yuvarlak köşeler */
    transition: all 0.2s ease; /* Geçiş efekti */
    margin-right: 5px; /* Checkbox ile yazı arasına 5px boşluk ekledik */
}

.form-check-input:checked {
    background-color: #0d6efd; /* mavi renk */
    border-color: #0d6efd;
}

.form-check-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Özel Radio Button Tasarımı */
.form-check-input[type="radio"] {
    width: 1.75rem; /* Yüksekliği artırdık */
    height: 1.75rem; /* Yüksekliği artırdık */
    border-radius: 50%; /* Yuvarlak radio butonlar */
    transition: all 0.2s ease; /* Geçiş efekti */
    margin-right: 5px; /* Radio button ile yazı arasına 5px boşluk ekledik */
}

.form-check-input[type="radio"]:checked {
    background-color: #0d6efd; /* mavi renk */
    border-color: #0d6efd;
}

.form-check-input[type="radio"]:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Radio butonlar ve checkboxların label'larını büyütüyoruz */
.form-check-label {
    font-size: 1.1rem; /* Yazı boyutunu büyütüyoruz */
}
.menu-trigger {
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    user-select: none;
    width: 18px;
}

.user-menu {
    z-index: 999;
    white-space: nowrap;
}

.user-menu {
    position: absolute !important;
}
.user-menu button {
    width: 160px;
}

.pagination-wrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pagination-wrapper ul.pagination {
    white-space: nowrap;
}

.btn-x-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #000;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

.btn-x-circle:hover {
    background-color: #f1f1f1;
}

a {
    color: #0d3b66; /* koyu lacivert ton */
    font-weight: 600; /* yarı kalın */
    text-decoration: none; /* alt çizgiyi kaldırır */
}

a:hover {
    color: #0a2e52; /* hover durumunda biraz daha koyusu */
    text-decoration: none;
}

.photo-crop-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* Kare alan */
    overflow: hidden;
    border-radius: 0.5rem;
    background: #f0f0f0;
}

.cropped-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 10vh); /* Ekranın %10'u boşluk olacak şekilde */
    margin-top: 5vh;
    margin-bottom: 5vh;
}
.face-border {
    border: 1px solid #4c5396;
}
.thumb-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; /* Kare alan */
    overflow: hidden;
    border-radius: 0.5rem; /* Yuvarlak köşeler */
    background: #000;
    margin-bottom: 10px;
}

.photo-thumb-sidebar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 767.98px) {
    #photoModal .photo-thumb-sidebar {
        width: 64px !important;
        height: 64px !important;
    }
    .thumb-wrapper {
        float:left;
        max-width: 72px;
        aspect-ratio: 1 / 1; /* Kare alan */
        overflow: hidden;
        border-radius: 0.5rem; /* Yuvarlak köşeler */
        background: #000;
    }

}