/* Profil Resmi Modalı için yeni stiller */
#profile-image-modal .modal-content.profile-image-modal-content {
    max-width: 300px !important;
    /* Genişlik küçültüldü */
    width: 85% !important;
    max-height: 400px !important;
    /* Yükseklik içeriğe göre */
    min-height: auto !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#profile-image-modal .modal-body {
    padding: 25px 15px 20px 15px !important;
    /* Padding optimize edildi */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#profile-image-modal .profile-image-display {
    width: 120px;
    /* Avatar boyutu daha da küçültüldü */
    height: 120px;
    border-radius: 50%;
    margin-bottom: 12px;
    box-shadow: 0 10px 30px rgba(27, 139, 180, 0.3);
    border: 4px solid #fff;
    position: relative;
    overflow: hidden;
    margin-top: -5px;
}

#profile-image-modal .profile-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

#profile-image-modal .profile-image-full:hover {
    transform: scale(1.05);
}

#profile-image-modal .micro-profile-info {
    text-align: center;
    width: 100%;
}

#profile-image-modal .micro-profile-info h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.3rem !important;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    /* Boşluk azaltıldı */
    line-height: 1.2;
    transition: color 0.3s ease;
}

/* Genel P Etiketi (Birim için) */
#profile-image-modal .micro-profile-info #profile-image-unit {
    margin: 4px 0 0;
    color: #4f46e5;
    font-size: 0.8rem !important;
    font-weight: 700;
    background: rgba(79, 70, 229, 0.08);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid rgba(79, 70, 229, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

#profile-image-modal .micro-profile-info #profile-image-unit:hover {
    background: rgba(79, 70, 229, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

#profile-image-modal .micro-profile-info .profile-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

#profile-image-modal .micro-profile-info .profile-username {
    display: inline-block;
    margin: 0;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.15);
    padding: 4px 10px;
    border-radius: 8px;
    color: #4f46e5;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

#profile-image-modal .micro-profile-info .profile-username i {
    margin-right: 6px;
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Modal kapatma butonu */
#profile-image-modal .micro-modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    z-index: 99999 !important;
    color: #475569 !important;
    padding: 0 !important;
    line-height: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#profile-image-modal .micro-modal-close:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
    transform: rotate(90deg) !important;
}

#profile-image-modal .micro-modal-close i {
    font-size: 16px !important;
    pointer-events: none !important;
}

/* DARK MODE STYLES */
body.dark-mode #profile-image-modal .modal-body {
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

body.dark-mode #profile-image-modal .profile-image-display {
    border-color: #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode #profile-image-modal .micro-profile-info h3 {
    color: #f1f5f9;
}

body.dark-mode #profile-image-modal .micro-profile-info #profile-image-unit {
    background: rgba(129, 140, 248, 0.1);
    color: #818cf8;
    border-color: rgba(129, 140, 248, 0.2);
}

body.dark-mode #profile-image-modal .micro-profile-info #profile-image-unit:hover {
    background: rgba(129, 140, 248, 0.15);
}

body.dark-mode #profile-image-modal .micro-profile-info .profile-username {
    background: rgba(129, 140, 248, 0.1);
    border-color: rgba(129, 140, 248, 0.2);
    color: #818cf8;
}

#profile-image-modal .micro-profile-info .profile-phone {
    display: inline-block;
    margin: 0;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    padding: 4px 10px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem !important;
    font-weight: 800;
    line-height: 1.2;
}

#profile-image-modal .micro-profile-info .profile-phone i {
    margin-right: 6px;
    font-size: 0.75rem;
    opacity: 0.9;
}

body.dark-mode #profile-image-modal .micro-profile-info .profile-phone {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

body.dark-mode #profile-image-modal .micro-modal-close {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
}

body.dark-mode #profile-image-modal .micro-modal-close:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
}