/* Circular Profile Picture Styling */
.circular-profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.profile-pic-container {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    position: relative;
}

/* Navbar circular profile icon */
.navbar-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.navbar-profile-pic:hover {
    border-color: #fff;
}

/* Image Cropper Modal */
.cropper-container {
    max-width: 100%;
    max-height: 400px;
    margin: 20px auto;
    background: #000;
    border-radius: 8px;
}

.crop-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 10px auto;
    border: 3px solid #ffc107;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.crop-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

.crop-controls button {
    padding: 8px 12px;
    background: #2d2d2d;
    border: 1px solid #ffc107;
    border-radius: 6px;
    cursor: pointer;
    color: #ffc107;
    font-weight: bold;
    transition: all 0.3s ease;
}

.crop-controls button:hover {
    background: #ffc107;
    color: #000;
    transform: translateY(-2px);
}

.crop-controls button:active {
    transform: translateY(0);
}

/* Modal styling improvements */
#cropperModal .modal-content {
    background: #2d2d2d;
    border: 2px solid #ffc107;
}

#cropperModal .modal-header {
    border-bottom: 1px solid #444;
}

#cropperModal .modal-footer {
    border-top: 1px solid #444;
}

#cropperModal .alert-info {
    background: #1a3a52;
    border-color: #2e5f7e;
    color: #b8d4e8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-pic-container {
        width: 200px;
        height: 200px;
    }

    .crop-preview {
        width: 120px;
        height: 120px;
    }

    .cropper-container {
        max-height: 300px;
    }
}

/* Loading state */
.cropper-container.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffc107;
    font-size: 18px;
}

/* Profile Edit Overlay */
.profile-pic-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 30px;
}

.profile-edit-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #ffc107;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.profile-edit-overlay:hover {
    background: #e0a800;
    transform: scale(1.1);
}

.profile-edit-overlay .edit-icon {
    font-size: 24px;
    display: block;
}

.profile-edit-overlay .edit-text {
    display: none;
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d2d2d;
    color: #ffc107;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: bold;
}

.profile-edit-overlay:hover .edit-text {
    display: block;
}

/* Alternative: Overlay that covers entire image on hover */
.profile-pic-container:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.profile-pic-container:hover .profile-edit-overlay {
    transform: scale(1.05);
}

/* Default avatar styling */
.default-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #2d2d2d;
    border: 3px solid #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: #ffc107;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-pic-container {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }

    .profile-edit-overlay {
        width: 40px;
        height: 40px;
    }

    .profile-edit-overlay .edit-icon {
        font-size: 20px;
    }

    .default-avatar {
        font-size: 80px;
    }
}
