/* Sohbet Container */
.sohbet-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    background: #242535;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    min-height: calc(100vh - 200px);
}

/* Sol Panel */
.sohbet-sol {
    background: #1e1f2d;
    border: 1px solid #2f3042;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.sohbet-baslik {
    padding: 1rem;
    border-bottom: 1px solid #2f3042;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sohbet-baslik h2 {
    color: #fff;
    font-size: 1.125rem;
    margin: 0;
}

.yeni-sohbet-btn {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.yeni-sohbet-btn:hover {
    background: #4f46e5;
}

.sohbet-arama {
    padding: 1rem;
    border-bottom: 1px solid #2f3042;
}

.arama-input {
    background: #242535;
    border: 1px solid #2f3042;
    border-radius: 4px;
    color: #fff;
    padding: 0.75rem;
    width: 100%;
    font-size: 0.875rem;
}

.arama-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sohbet-listesi {
    flex: 1;
    overflow-y: auto;
}

.sohbet-item {
    padding: 1rem;
    border-bottom: 1px solid #2f3042;
    cursor: pointer;
    transition: all 0.2s;
}

.sohbet-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.sohbet-item.active {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid #6366f1;
}

.sohbet-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.sohbet-item-kullanici {
    color: #fff;
    font-weight: 500;
    font-size: 0.9375rem;
}

.sohbet-item-saat {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.sohbet-item-mesaj {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sağ Panel */
.sohbet-sag {
    background: #1e1f2d;
    border: 1px solid #2f3042;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.sohbet-header {
    padding: 1rem;
    border-bottom: 1px solid #2f3042;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sohbet-kullanici {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.sohbet-icerik {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mesaj {
    display: flex;
    flex-direction: column;
    max-width: 70%;
}

.mesaj.gelen {
    align-self: flex-start;
}

.mesaj.giden {
    align-self: flex-end;
}

.mesaj-icerik {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.mesaj.gelen .mesaj-icerik {
    background: #2f3042;
    border-bottom-left-radius: 4px;
}

.mesaj.giden .mesaj-icerik {
    background: #6366f1;
    border-bottom-right-radius: 4px;
}

.mesaj-saat {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.mesaj.gelen .mesaj-saat {
    margin-left: 0.5rem;
}

.mesaj.giden .mesaj-saat {
    margin-right: 0.5rem;
    text-align: right;
}

.sohbet-yazma {
    padding: 1rem;
    border-top: 1px solid #2f3042;
    display: flex;
    gap: 1rem;
}

.mesaj-input {
    flex: 1;
    background: #242535;
    border: 1px solid #2f3042;
    border-radius: 4px;
    color: #fff;
    padding: 0.75rem;
    font-size: 0.9375rem;
    resize: none;
    min-height: 45px;
    max-height: 120px;
}

.mesaj-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.gonder-btn {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.gonder-btn:hover {
    background: #4f46e5;
}

/* Responsive */
@media (max-width: 768px) {
    .sohbet-container {
        grid-template-columns: 1fr;
    }

    .sohbet-sol {
        display: none;
    }

    .sohbet-sol.active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
    }
} 
/* Header İkonları */
.header-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.25rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: #f3f4f6;
    position: relative;
    text-decoration: none !important;
}

.header-icon:hover {
    color: #4f46e5;
    background-color: #eef2ff;
    transform: translateY(-2px);
}

.header-icon .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
    border: 2px solid #fff;
    background: #ef4444;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: #fff;
}

/* Kullanıcı Menüsü */
.dropdown {
    position: relative;
}

.user-menu {
    padding: 8px 14px;
    border-radius: 12px;
    background: #f3f4f6;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none !important;
    box-shadow: none !important;
    min-width: 200px;
}

.user-menu:hover {
    background: #eef2ff;
}

.user-menu img {
    width: 38px;
    height: 38px;
    border: 2px solid #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.user-menu .user-info {
    margin-left: 12px;
}

.user-menu .username {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 2px;
    line-height: 1.2;
}

.user-menu .balance {
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1;
}

.user-menu .fa-chevron-down {
    color: #9ca3af;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.user-menu[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menü */
.dropdown-menu {
    padding: 8px;
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    margin-top: 60px !important;
    transform-origin: top center;
}

.dropdown-menu:before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    box-shadow: -2px -2px 5px rgba(0,0,0,0.06);
}

.dropdown-menu.show {
    display: block;
    animation: slideDown 0.2s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 9px 14px;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 2px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item i {
    width: 20px;
    font-size: 1.05rem;
    margin-right: 12px;
    color: #6b7280;
}

.dropdown-item span {
    color: #4b5563;
}

.dropdown-item:hover {
    background: #eef2ff;
}

.dropdown-item:hover i,
.dropdown-item:hover span {
    color: #4f46e5;
}

.dropdown-divider {
    margin: 8px 0;
    border-color: #e5e7eb;
}

.dropdown-item.text-danger {
    color: #dc2626;
}

.dropdown-item.text-danger i,
.dropdown-item.text-danger span {
    color: #dc2626;
}

.dropdown-item.text-danger:hover {
    background: #fef2f2;
}

.dropdown-item.text-danger:hover i,
.dropdown-item.text-danger:hover span {
    color: #dc2626;
} 