:root {
    --primary-teal: #1a4333;
    --dark-teal: #38b2ac;
    --bg-mint:#1a4333;
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    --text-main: #1a4333;
    --text-muted: #718096;
}

body {
    background: var(--bg-mint);
    background-attachment: fixed;
    font-family: 'Anek Bangla', 'Outfit', sans-serif;
    min-height: 100vh;
    color: var(--text-main);
    padding-bottom: 50px;
}

.main-card {
    background: white;
    border-radius: 50px;
    box-shadow: var(--card-shadow);
    padding: 30px;
}

.poster-preview-area {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
}

#imageWrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#userImage {
    position: relative;
    max-width: none;
    cursor: move;
    transition: transform 0.1s ease-out;
    display: none;
}

#userImage.loaded {
    display: block;
}

.drag-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    z-index: 5;
    white-space: nowrap;
    pointer-events: none;
    display: none;
}

#userImage.loaded~.drag-hint {
    display: block;
}

#frameImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Controls */
.control-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 10px;
}

.slider-container {
    padding: 5px 0;
}

.custom-range {
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
}

.custom-range::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-teal);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* D-Pad Layout */
.d-pad-layout {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.middle-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pad-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f7fafc;
    border-radius: 12px;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.pad-btn:hover {
    background: #edf2f7;
    color: var(--dark-teal);
}

.pad-center {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
}

/* Actions */
.btn-upload {
    background: #f6f6f6;
    color: #4a5568;
    border: none;
    padding: 15px;
    border-radius: 20px;
    font-weight: 600;
}
.btn-download {
    background: linear-gradient(90deg, #2f9b71 0%, #1a4333 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(56, 178, 172, 0.2);
}
/* Sidebar Styling */
.info-sidebar {
    padding-top: 20px;
}

.main-title {
    color: white;
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.rules-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 35px;
    padding: 35px;
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rule-icon-box {
    width: 45px;
    height: 45px;
    background: #ecc94b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.3rem;
}

.rule-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.rule-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.rule-point-icon {
    color: var(--dark-teal);
    font-size: 1.2rem;
}

.rule-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 700;
} 

.win-banner {
    background: white;
    padding: 15px 20px;
    border-radius: 20px;
    border-left: 5px solid var(--primary-teal);
}

.win-banner p {
    margin: 0;
    font-size: 23px;
    font-weight: 600;
    color: var(--dark-teal);
}

.footer-card {
    background: white;
    border-radius: 35px;
    padding: 30px;
}

.footer-card-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hashtag-box {
    background: #f7fafc;
    padding: 12px 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hashtag {
    font-size: 0.9rem;
    color: var(--dark-teal);
    font-weight: 600;
}

.copy-btn {
    border: none;
    background: #edf2f7;
    padding: 5px 10px;
    border-radius: 10px;
    color: #a0aec0;
}

.copyright p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Upload Placeholder */
.upload-placeholder {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
    cursor: pointer;
    z-index: 4;
    transition: all 0.3s ease;
}

.upload-icon-box {
    width: 80px;
    height: 80px;
    background: #e6fffa;
    color: var(--primary-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(79, 209, 197, 0.1);
}

.upload-placeholder:hover .upload-icon-box {
    transform: scale(1.1);
    background: var(--primary-teal);
    color: white;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Download Modal Styling */
.download-modal-content {
    border-radius: 40px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close-btn {
    position: absolute;
    right: 25px;
    top: 25px;
    opacity: 0.3;
}

.success-icon-wrapper {
    display: flex;
    justify-content: center;
}

.success-icon-box {
    width: 80px;
    height: 80px;
    background: #f0fff4;
    color: #38a169;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 8px solid #f0fff4;
    box-shadow: 0 0 0 4px #c6f6d5;
}


.modal-title-text {
    font-weight: 800;
    color: #2d3748;
}

.modal-subtitle-text {
    color: #718096;
    font-size: 0.95rem;
}

.modal-step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-align: left;
}

.step-green {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
}

.step-yellow {
    background: #fffaf0;
    border: 1px solid #feebc8;
}

.step-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
}

.step-green .step-icon {
    background: #38b2ac;
}

.step-yellow .step-icon {
    background: #ecc94b;
}

.step-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d3748;
}

.copy-btn-inline {
    background: #edf2f7;
    border: none;
    padding: 5px 10px;
    border-radius: 8px;
    color: #a0aec0;
    font-size: 0.9rem;
}


@media (max-width: 991px) {
    body {
        padding-top: 20px;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .main-card {
        border-radius: 35px;
    }
}
