/* Reset dan variabel */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --popup-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --popup-bg: #ffffff;
    --popup-bg-opacity: 0.85;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

/* Container dan layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #6c5ce7);
}

header h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

header h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #6c5ce7);
    border-radius: 3px;
}

header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
    position: relative;
}

header .version {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Form styling */
.input-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: grid;
    gap: 2rem;
}

.form-group {
    margin-bottom: 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    transition: var(--transition);
}

.form-group:hover {
    border-color: #ddd;
    background: #fff;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1rem;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
    outline: none;
}

input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
    outline: none;
}

input[type="color"] {
    width: 100%;
    height: 50px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    background: white;
}

/* Position options styling */
.position-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.position-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.position-option:hover {
    border-color: var(--primary-color);
    background: rgba(74, 144, 226, 0.05);
}

.position-option input[type="radio"] {
    margin: 0;
}

/* Tombol */
.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6c5ce7 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    margin-top: 1.5rem;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6c5ce7 0%, var(--primary-color) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.primary-btn:hover::before {
    opacity: 1;
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.secondary-btn {
    background-color: var(--light-gray);
    color: var(--secondary-color);
}

.secondary-btn:hover {
    background-color: #e0e0e0;
}

/* Result section */
.result-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.code-container {
    position: relative;
}

pre {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-bottom: 1rem;
}

#copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Checkbox styling */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* CTA Options styling */
.cta-options {
    margin-top: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid #eee;
}

.cta-options .form-group {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: white;
}

.cta-options .form-group:last-child {
    margin-bottom: 0;
}

.cta-options label {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.cta-options input[type="text"] {
    font-size: 0.9rem;
    padding: 0.65rem 0.9rem;
}

.cta-options.hidden {
    display: none;
}

/* FOMO Popup styling */
.fomo-popup {
    position: fixed;
    padding: 1rem;
    border-radius: 12px;
    color: white;
    box-shadow: var(--popup-shadow);
    z-index: 9999;
    max-width: 280px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: floatIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
               floating 3s ease-in-out infinite;
    transform-origin: center;
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
    background-color: rgba(var(--popup-bg-rgb), var(--popup-bg-opacity));
}

.popup-content {
    font-size: 1rem;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding-right: 1.5rem;
}

.popup-cta {
    margin-top: 0.5rem;
}

.cta-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: calc(var(--border-radius) - 2px);
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.close-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    padding: 0.2rem;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.popup-bell-icon {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 50px;
    opacity: 0.15;
    transform: rotate(-15deg);
    pointer-events: none;
    color: white;
    z-index: 0;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes floatIn {
    0% {
        transform: translateY(100%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(-10%) scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes floatOut {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100%) scale(0.8);
        opacity: 0;
    }
}

/* Position classes */
.fomo-popup.top-right {
    top: 20px;
    right: 20px;
    transform-origin: top right;
}

.fomo-popup.top-left {
    top: 20px;
    left: 20px;
    transform-origin: top left;
}

.fomo-popup.bottom-right {
    bottom: 20px;
    right: 20px;
    transform-origin: bottom right;
}

.fomo-popup.bottom-left {
    bottom: 20px;
    left: 20px;
    transform-origin: bottom left;
}

/* Hover effect */
.fomo-popup:hover {
    animation-play-state: paused;
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

/* Design options styling */
.design-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.design-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.design-option:hover {
    border-color: var(--primary-color);
    background: rgba(74, 144, 226, 0.05);
}

.design-option input[type="radio"] {
    margin: 0;
}

/* Modern Popup Design */
.fomo-popup.modern {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.fomo-popup.modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--popup-bg), var(--popup-bg));
    border-radius: 12px 12px 0 0;
    opacity: 0.3;
}

.fomo-popup.modern .popup-content {
    font-weight: 500;
    text-shadow: none;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    padding-right: 1.5rem;
    color: #ffffff !important;
}

.fomo-popup.modern .cta-button {
    background-color: var(--popup-main-color, var(--popup-bg));
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.fomo-popup.modern .cta-button:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}

.fomo-popup.modern .cta-button:active {
    transform: translateY(0);
}

.fomo-popup.modern .close-btn {
    color: #ffffff !important;
    opacity: 0.7;
}

.fomo-popup.modern .close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.fomo-popup.modern .fomo-icon,
.fomo-popup.modern .fomo-close {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.fomo-popup.modern svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Minimal Popup Design */
.fomo-popup.minimal {
    background-color: var(--popup-bg, #ffffff);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: none;
    font-size: 14px;
    color: #374151;
    padding: 14px 18px;
    max-width: 280px;
    line-height: 1.5;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.fomo-popup.minimal .popup-content {
    font-size: 14px;
    line-height: 1.5;
    text-shadow: none;
    color: #374151;
    padding-right: 24px;
}

.fomo-popup.minimal .cta-button {
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    transition: background-color 0.2s ease;
}

.fomo-popup.minimal .cta-button:hover {
    background: #1f2937;
    transform: none;
}

.fomo-popup.minimal .close-btn {
    color: #9ca3af;
    font-size: 16px;
    top: 8px;
    right: 10px;
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: color 0.2s ease;
}

.fomo-popup.minimal .close-btn:hover {
    color: #374151;
    background: none;
    transform: none;
    opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .input-section,
    .result-section {
        padding: 1.5rem;
    }

    .position-options {
        grid-template-columns: 1fr;
    }

    .primary-btn, .secondary-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }

    .design-options {
        grid-template-columns: 1fr;
    }
}

.fn-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 0;
}

.fn-footer-card {
    background: #e6f9ec;
    border: 1.5px solid #7be495;
    border-radius: 12px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(123, 228, 149, 0.08);
    gap: 12px;
    min-width: 0;
}

.fn-footer-card .fn-footer-icon {
    color: #34c759;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.fn-footer-card .fn-footer-text {
    color: #b0b7c3;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}

.fn-footer-card .fn-footer-text a {
    color: #34c759;
    text-decoration: none;
    font-weight: 600;
}

.fn-footer-card .fn-footer-text a:hover {
    text-decoration: underline;
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #60a5fa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.card p {
    color: #666;
    font-size: 1rem;
}

.fn-footer-spacer {
    height: 48px;
    width: 100%;
    display: block;
}

.btn-guide {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px 0;
    padding: 9px 22px;
    background: transparent;
    color: #34c759;
    border: 2px solid #34c759;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
    position: relative;
}

.btn-guide i {
    font-size: 1.2rem;
    margin-right: 4px;
    color: #34c759;
}

.btn-guide:hover {
    background: #34c759;
    color: #fff;
    border-color: #249944;
}

.btn-guide:hover i {
    color: #fff;
}

@media (max-width: 600px) {
    .btn-guide {
        width: 100%;
        justify-content: flex-start;
    }
}

.modal-guide {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.25);
    justify-content: center;
    align-items: center;
}

.modal-guide.show {
    display: flex;
}

.modal-guide-content {
    background: #fff;
    border-radius: 10px;
    padding: 32px 24px 24px 24px;
    max-width: 420px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
    position: relative;
    animation: fadeInModal 0.2s;
}

@keyframes fadeInModal {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-guide-close {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 1.5rem;
    color: #2563eb;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}

.modal-guide-close:hover {
    color: #1746a2;
}

.modal-guide-content h2 {
    margin-top: 0;
    color: #2563eb;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.modal-guide-content ol {
    padding-left: 20px;
    color: #444;
    margin-bottom: 12px;
}

.modal-guide-content p {
    color: #666;
    font-size: 0.98rem;
} 

.badge-countdown {
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 4px;
    display: inline-block;
} 

.guide-section {
    max-width: 700px;
    width: 100%;
    margin: 20px auto;
    padding: 24px 32px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.7;
    box-sizing: border-box;
}

.guide-section h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.guide-section h3 {
    margin-top: 20px;
    color: #111827;
    font-size: 1.1rem;
}

.guide-section ul {
    padding-left: 20px;
    margin-top: 8px;
}

.guide-section code {
    background: #eef2f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
}

@media (max-width: 768px) {
    .guide-section {
        padding: 16px 8px;
        max-width: 95%;
    }
    .modal-guide-content, .modal-box {
        max-width: 98vw;
        width: 98vw;
    }
}

.modal-guide-content, .modal-box {
    max-width: 720px;
    width: 90%;
} 

/* Responsif untuk popup modern dengan posisi center di mobile */
@media (max-width: 480px) {
    .fomo-popup.modern.center {
        max-width: 90vw;
        padding: 16px;
        font-size: 14px;
        transform: translate(-50%, -50%);
        left: 50%;
        top: 50%;
        box-sizing: border-box;
        word-break: break-word;
        text-align: center;
    }

    .fomo-popup.modern.center .fomo-button {
        display: block;
        width: 100%;
        font-size: 14px;
        padding: 10px;
        margin-top: 12px;
    }
    
    /* Responsif untuk popup default dengan posisi center */
    .fomo-popup.default.center {
        max-width: 90vw;
        padding: 16px;
        font-size: 14px;
        transform: translate(-50%, -50%);
        left: 50%;
        top: 50%;
        box-sizing: border-box;
        word-break: break-word;
        text-align: center;
    }

    .fomo-popup.default.center .fomo-button {
        display: block;
        width: 100%;
        font-size: 14px;
        padding: 10px;
        margin-top: 12px;
    }
    
    /* Responsif untuk popup minimal dengan posisi center */
    .fomo-popup.minimal.center {
        max-width: 90vw;
        padding: 16px;
        font-size: 14px;
        transform: translate(-50%, -50%);
        left: 50%;
        top: 50%;
        box-sizing: border-box;
        word-break: break-word;
        text-align: center;
    }

    .fomo-popup.minimal.center .fomo-button {
        display: block;
        width: 100%;
        font-size: 14px;
        padding: 10px;
        margin-top: 12px;
    }
} 