/* Profile Picture Uploader — shared styles (dark theme) */

.ppu-modal-content {
    background: rgba(26, 26, 46, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 1rem;
}

.ppu-modal-content .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ppu-modal-content .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ppu-modal-content .modal-title {
    font-size: 1rem;
    font-weight: 600;
}

.ppu-modal-body {
    position: relative;
}

.ppu-crop-container {
    width: 100%;
    height: 420px;
    max-height: 60vh;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    overflow: hidden;
}

.ppu-crop-container img {
    display: block;
    max-width: 100%;
}

.ppu-toolbar {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
}

.ppu-toolbar .btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.3rem 0.6rem;
}

.ppu-toolbar .btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.ppu-url-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ppu-url-row input {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.ppu-url-row input:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #667eea;
    box-shadow: none;
}

.ppu-url-row input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.ppu-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(26, 26, 46, 0.85);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.ppu-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
    text-align: center;
}

/* Drag-over highlight applied to the drop zone element on the page */
.ppu-dragover {
    border-color: #8a2be2 !important;
    background: rgba(138, 43, 226, 0.25) !important;
    transform: scale(1.02);
}

/* Cropper.js dark-theme tweaks */
.ppu-modal-content .cropper-view-box {
    outline: 2px solid #8a2be2;
    outline-color: rgba(138, 43, 226, 0.85);
}

.ppu-modal-content .cropper-point {
    background-color: #8a2be2;
}

.ppu-modal-content .cropper-line {
    background-color: rgba(255, 255, 255, 0.6);
}

.ppu-modal-content .cropper-dashed {
    border-color: rgba(255, 255, 255, 0.4);
}

.ppu-modal-content .cropper-modal {
    background-color: rgba(0, 0, 0, 0.55);
}
