/* --- Annotation Tool --- */
.annotation-container {
    display: flex;
    flex-direction: column;
    height: 80vh;
    /* Max height for modal */
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.annotation-toolbar {
    display: flex;
    gap: 1rem;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.tool-group {
    display: flex;
    gap: 5px;
    padding-right: 1rem;
    border-right: 1px solid #eee;
}

.tool-group:last-child {
    border-right: none;
}

.tool-btn {
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tool-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.tool-btn.active {
    background: #eef2ff;
    color: var(--primary);
    border-color: var(--primary);
}

.color-picker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ddd;
    cursor: pointer;
    position: relative;
}

.color-picker input[type="color"] {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    cursor: pointer;
    opacity: 0;
}

.canvas-wrapper {
    flex: 1;
    overflow: auto;
    position: relative;
    background: #333;
    /* Dark background for contrast */
    display: flex;
    align-items: center;
    justify-content: center;
}

#annotation-canvas {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    background: #fff;
    /* Image transparent parts should be white */
    cursor: crosshair;
}