/* Image Manager Styles */
.image-manager {
    margin-bottom: 16px;
}

.image-manager .ant-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.image-manager .image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.image-manager .image-item {
    position: relative;
    width: 120px;
    height: 120px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.image-manager .image-item:hover {
    border-color: #1890ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

.image-manager .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-manager .image-item:hover img {
    transform: scale(1.05);
}

.image-manager .image-actions {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-manager .image-item:hover .image-actions {
    opacity: 1;
}

.image-manager .image-action-btn {
    padding: 2px 4px !important;
    background-color: white !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.image-manager .upload-status {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.image-manager .empty-state {
    text-align: center;
    padding: 40px 0;
    color: #999;
}

/* Clickable Acupoint Text Styles */
.clickable-acupoint {
    color: #1890ff;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 2px 4px;
    border-radius: 2px;
}

.clickable-acupoint:hover {
    color: #40a9ff;
    background-color: rgba(24, 144, 255, 0.1);
    text-decoration: underline;
}

.clickable-acupoint:active {
    color: #096dd9;
}

/* Preview Modal Styles */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.image-preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: transform 0.2s ease;
}

.image-preview-close:hover {
    transform: scale(1.2);
}
