/* 전자결재 서명 등록 스타일 */

/* Custom styles for signature pad */
.signature-canvas {
    touch-action: none;
    display: block;
    width: 100%;
    max-width: 600px;
    height: 260px;
    border-radius: 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    cursor: crosshair;
}

/* Preview canvas styling */
.preview-canvas {
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    background: white;
    width: 320px;
    height: 180px;
    image-rendering: auto;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Status messages */
.status-success {
    color: #059669;
    background: #d1fae5;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.status-error {
    color: #dc2626;
    background: #fee2e2;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.status-loading {
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

/* Enhanced signature info display */
.signature-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
}

.signature-info-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    text-align: center;
    color: #64748b;
}

.signature-preview-mini {
    width: 80px;
    height: 45px;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    background: white;
}

/* Button hover effects */
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background-color: #f8fafc;
}

/* Enhanced button transitions */
button {
    transition: all 0.2s ease-in-out;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .preview-canvas {
        width: 280px;
        height: 157px;
    }
}

/* Hidden download link */
.hidden-download {
    display: none;
}

/* Improved signature display */
.signature-display {
    background: white;
    border: 2px dashed #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.signature-display.has-signature {
    border-style: solid;
    border-color: #059669;
    background: #f0fdf4;
}

.signature-meta {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.4;
}

.signature-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}