/* profile-cropper.css — zero-dependency 300×300 crop modal
   Design: "Crop Company Logo" style (white card, purple frame, pill buttons) */

body.pc-no-scroll {
    overflow: hidden;
}

.pc-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.5);
}

.pc-overlay.pc-open {
    display: flex;
    animation: pcFade 0.15s ease-out;
}

@keyframes pcFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pc-dialog {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: inherit;
}

.pc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.pc-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.pc-subtitle {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.pc-subtitle strong {
    color: #374151;
}

.pc-close {
    border: none;
    background: transparent;
    padding: 2px;
    color: #6b7280;
    cursor: pointer;
    line-height: 0;
    flex-shrink: 0;
}

.pc-close:hover {
    color: #111827;
}

.pc-stage {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pc-canvas {
    display: block;
    box-sizing: content-box; /* Bootstrap border-box override — border canvas size me na ghuse */
    border: 2px solid #5b3fb5;
    border-radius: 10px;
    background: #f1f3f5;
    cursor: grab;
    touch-action: none;      /* pinch / drag par page scroll na ho */
    user-select: none;
}

.pc-canvas:active {
    cursor: grabbing;
}

.pc-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.pc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 9px 24px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pc-btn-light {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #1f2937;
}

.pc-btn-light:hover {
    background: #f3f4f6;
}

.pc-btn-primary {
    border: none;
    background: linear-gradient(135deg, #5b3fb5 0%, #6d4fd6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(91, 63, 181, 0.35);
}

.pc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(91, 63, 181, 0.45);
}

.pc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 400px) {
    .pc-title { font-size: 1.1rem; }
    .pc-btn { padding: 8px 18px; font-size: 0.95rem; }
}