#wca-container {
    max-width: 100%;
    margin: 20px auto;
    text-align: center;
    font-family: Arial, sans-serif;
}

#wca-canvas {
    border: 3px solid #333;
    background: #fff;
    cursor: crosshair;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* TOOLBAR */
#wca-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid #ddd;
    align-items: center;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.tool-group label {
    font-weight: bold;
    margin-right: 2px;
    font-size: 13px;
}

.tool-btn {
    padding: 6px 12px;
    background: #e9ecef;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.tool-btn.active {
    border-color: #007cba;
    background: #cfe5ff;
}

.tool-btn:hover {
    background: #dee2e6;
}

.color-btn {
    width: 28px;
    height: 28px;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.1s;
}

.color-btn:hover {
    transform: scale(1.1);
}

#wca-size-slider,
#wca-tolerance-slider {
    width: 100px;
    cursor: pointer;
}

#size-display,
#tolerance-display {
    font-weight: bold;
    min-width: 24px;
    display: inline-block;
}

.tooltip {
    font-size: 14px;
    color: #6c757d;
    cursor: help;
}

/* AKSI */
#wca-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}

.wca-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: #007cba;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.wca-btn:hover {
    background: #005a87;
}

#wca-print-btn {
    background: #28a745;
}
#wca-print-btn:hover {
    background: #1e7e34;
}

#wca-download-btn {
    background: #17a2b8;
}
#wca-download-btn:hover {
    background: #117a8b;
}

#wca-save-btn {
    background: #ffc107;
    color: #212529;
}
#wca-save-btn:hover {
    background: #e0a800;
}

#wca-undo-btn {
    background: #6c757d;
}
#wca-undo-btn:hover {
    background: #5a6268;
}

#wca-clear-btn {
    background: #dc3545;
}
#wca-clear-btn:hover {
    background: #bd2130;
}

/* CETAK */
@media print {
    body * {
        visibility: hidden;
    }
    #wca-container,
    #wca-container * {
        visibility: visible;
    }
    #wca-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    #wca-canvas {
        width: 100% !important;
        height: auto !important;
        border: none;
        box-shadow: none;
    }
    #wca-toolbar,
    #wca-actions {
        display: none !important;
    }
}

/* RESPONSIF */
@media (max-width: 600px) {
    #wca-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .tool-group {
        justify-content: center;
    }
    .wca-btn {
        font-size: 14px;
        padding: 8px 14px;
    }
}