/* User Profil Component Stilleri */

/* Dropdown toggle gölgesini kaldır */
.dropdown-toggle::after {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}

.navbar-profile-btn.dropdown-toggle::after {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    color: #4776E6;
    transition: color 0.3s ease;
}

/* Sağ üstteki kullanıcı kutusu stilleri */
.user-info-top-right {
    display: flex; 
    align-items: center; 
    background: white; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    padding: 8px 12px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); 
    transition: all 0.3s ease;
    position: relative;
    z-index: 1060; 
}

.user-info-top-right:hover {
    box-shadow: 0 10px 30px rgba(71, 118, 230, 0.2);
    transform: translateY(-2px);
}

.user-name {
    color: #4776E6;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
}

.navbar-profile-btn .user-name {
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

.user-name::after,
.user-name::before {
    box-shadow: none !important;
    text-shadow: none !important;
    display: none !important;
    border: none !important;
    content: none !important;
}

.user-info-top-right:hover .user-name {
    color: #1F2937;
    text-shadow: none !important;
}

.navbar-profile-btn {
    display: flex;
    align-items: center;
    padding: 0; 
    border-radius: 50px;
    border: none;
    background: transparent; 
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}

.btn-outline-primary.navbar-profile-btn {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}

.navbar-profile-btn::after,
.navbar-profile-btn::before {
    box-shadow: none !important;
    text-shadow: none !important;
}

.navbar-profile-btn:hover, 
.navbar-profile-btn:focus {
    background: #e8f0ff; 
    box-shadow: none !important;
    border-color: transparent;
}

.navbar-profile-btn:hover::after,
.navbar-profile-btn:focus::after,
.navbar-profile-btn:hover::before,
.navbar-profile-btn:focus::before {
    box-shadow: none !important;
    text-shadow: none !important;
}

.user-info-top-right:hover .navbar-profile-btn.dropdown-toggle::after {
    color: #1F2937;
}

.navbar-profile-pic {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e8f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    position: relative;
    box-shadow: 0 3px 8px rgba(71, 118, 230, 0.15);
}

.navbar-profile-pic i {
    font-size: 1.2rem;
    color: #4776E6;
}

.navbar-profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: none; /* Varsayılan olarak gizle */
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    animation: fadeInDown 0.3s forwards;
    transform-origin: top right;
    z-index: 9999;
}

.dropdown-item {
    padding: 10px 20px;
    color: #444;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.dropdown-item:hover {
    background: #e8f0ff;
    color: #1F2937;
}

.dropdown-item i {
    margin-right: 10px;
    color: #4776E6;
    transition: color 0.3s ease;
}

.dropdown-item:hover i {
    color: #1F2937;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

#userLoadingIndicator {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4776E6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive styles */
@media (max-width: 768px) {
    .user-info-top-right {
        padding: 6px 10px;
    }
    .user-name {
        max-width: 90px;
    }
}

@media (max-width: 576px) {
    .user-info-top-right {
        padding: 5px 8px;
    }
    .navbar-profile-pic {
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }
    .user-name {
        font-size: 0.8rem;
        max-width: 80px;
    }
}

