.photo-frame-container {
    background: linear-gradient(to bottom, #044123 0%, #044123 75%, #e30002 100%);
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    color: white;
}

.upload-card {
    background: white;
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    color: #333;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    min-height: 680px;
}

/* Square upload & preview areas */
.upload-overlay-container,
.preview-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.preview-wrapper {
    cursor: grab;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-wrapper:active {
    cursor: grabbing;
}

#previewImg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.photocard-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('{{ @globalAsset($frame->upload[' path'], ' avatar1.png') }}') no-repeat center center;
    background-size: contain;
    pointer-events: none;
    z-index: 20;
    /* HIGHER than image */
}

/* Upload placeholder text */
.upload-placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 25;
    color: #666;
    width: 100%;
    pointer-events: none;
}

.upload-icon {
    font-size: 70px;
    color: #ccc;
    margin-bottom: 18px;
    display: block;
}

.file-types {
    font-size: 17px;
    color: #888;
    margin-bottom: 6px;
}

.max-size {
    font-size: 15px;
    color: #aaa;
    margin-bottom: 22px;
}

.click-instruction {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 30;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.05rem;
    background: rgb(0 204 153 / 45%);
    padding: 14px;
    border-radius: 0 0 24px 24px;
    border-top: 2px solid #00cc99;
}

.click-instruction i {
    animation: bounce 2s infinite;
    margin-right: 8px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Controls */
.controls {
    margin-top: 30px;
}

.zoom-label {
    color: #00cc99;
    font-weight: bold;
    font-size: 1.1rem;
}

.custom-range {
    -webkit-appearance: none;
    width: 75%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #00cc99, #009973);
    outline: none;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #00cc99;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.move-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    margin: 8px;
    font-size: 1.4rem;
    border: none;
    transition: all 0.2s;
    cursor: pointer;
    color: #00cc99;
}

.move-btn:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}

.action-btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-weight: bold;
}

.btn-new {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-new:hover {
    background: #e9ecef;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-download {
    background: linear-gradient(135deg, #00cc99, #009973);
    color: white;
}

.btn-download:hover {
    background: linear-gradient(135deg, #00b386, #008060);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 155, 115, 0.3);
}

/* Right side */
.chat-header {
    font-size: 2.8rem;
    font-weight: bold;
    background: linear-gradient(to right, #ffffff, #f6fffc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 30px;
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-left: 5px solid #00cc99;
    font-size: 1.1rem;
    line-height: 1.6;
}

.chat-bubble i {
    color: #00cc99;
}

.hashtag-input {
    border-radius: 50px;
    padding: 15px 25px;
    border: 2px solid #00cc99;
    width: 100%;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #004d33;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

.hashtag-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 204, 153, 0.3);
}

#fileInput {
    display: none;
}

/* Loading animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Mobile adjustments */
@media (max-width: 992px) {
    .upload-card {
        max-width: 100%;
        padding: 30px 20px;
        min-height: 600px;
    }

    .upload-overlay-container,
    .preview-wrapper {
        max-width: 380px;
        margin: 25px auto;
    }

    .upload-icon {
        font-size: 60px;
    }

    .move-btn {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .action-btn {
        padding: 12px 25px;
        font-size: 1rem;
        margin: 5px;
    }

    .chat-header {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .upload-card {
        padding: 20px 15px;
        min-height: 550px;
    }

    .upload-overlay-container,
    .preview-wrapper {
        max-width: 320px;
        margin: 20px auto;
    }

    .controls {
        margin-top: 20px;
    }

    .action-btn {
        display: block;
        width: 90%;
        margin: 10px auto;
    }
}

.manifesto-hero-title {
    background: #1a4d2e;
    color: white;
    padding: 60px 0;
    border-bottom: 5px solid #f1c40f;
}

.manifesto-sidebar-menu {
    position: sticky;
    top: 20px;
    max-height: 85vh;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.manifesto-sidebar-menu a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-bottom: 1px solid #eee;
    border-radius: 5px;
    transition: 0.3s;
}

.manifesto-sidebar-menu a:hover,
.manifesto-sidebar-menu a.active {
    background: #1a4d2e;
    color: white;
}

.manifesto-card {
    background: white;
    border-radius: 15px;
    padding: 35px;
    margin-bottom: 30px;
    border-left: 8px solid #1a4d2e;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.manifesto-section-header {
    color: #1a4d2e;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #eee;
}

.manifesto-section-header i {
    color: #f1c40f;
    font-size: 1.5rem;
}

.list-unstyled li {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.1rem;
    border-bottom: 1px dashed #eee;
}

.manifesto-highlight-box {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}