#drop_zone {
    aspect-ratio: 1;
    border: 2px solid #9dd6e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #9dd6e6;
    cursor: url("../cursors/cur_link.cur"), pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    background: rgba(255, 255, 255, 0.5);
    max-width: 400px;
     margin: 0 auto;
}

#drop_zone:hover {
    border-color: #FF4D9A;
    background: rgba(255, 77, 154, 0.1);
}

#drop_zone.drag_over {
    border-color: #FF4D9A;
    background: rgba(255, 77, 154, 0.1);
}

#canvas_wrap {
    text-align: center;
    margin: 10px auto 0 auto;
    max-width: 500px;
    position: relative;
}

#img_canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 8px;
    cursor: crosshair;
}

#magnifier {
    display: none;
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 10;
}

#mag_canvas {
    width: 100%;
    height: 100%;
     display: block;
    image-rendering: pixelated;
}

#mag_crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

#mag_color_label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-family: monospace;
    font-size: 11px;
     padding: 3px 0;
    font-weight: bold;
}

#picked_color {
    display: flex;
    align-items: center;
    gap: 0;
}

.picked_divider {
    width: 2px;
    height: 70px;
    background: #ddd;
     margin: 0 8px;
    align-self: center;
}


.download_btn {
    font-size: 13px;
    padding: 6px 14px;
    border: none;
    border-radius: 5px;
    background: #02acd7;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
     box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.download_btn:hover {
    background: #3a8ea4;
    transform: scale(1.05);
}

.download_btn:active {
    transform: scale(0.97);
}

#results {
    margin-top: 20px;
}

#palette_row {
    display: flex;
    align-items: center;
    justify-content: center;
     flex-wrap: wrap;
}

#results h2 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 12px;
    color: #333;
}

#palette {
    display: flex;
    gap: 10px;
    justify-content: center;
     flex-wrap: wrap;
}

.swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.swatch_color {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.08);
}

.swatch_label {
    font-family: monospace;
    font-size: 12px;
    color: #555;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.swatch_label:hover {
    background: #e8f7fb;
    border-color: #02acd7;
    color: #02acd7;
}

@media (max-width: 600px) {
    .swatch_color {
        width: 50px;
        height: 50px;
    }

    .swatch_label {
         font-size: 10px;
    }

    #palette {
        gap: 6px;
    }
}
