:root {
    --dark: #121212;
    --primary: #992dff;
    --secondary: #FF69B4;
    --third: rgb(232, 164, 6);
    --text: #e0e0e0;
    --card-bg: #1e1e1e;
    --border: #333;
    --scroll-thumb: #8A2BE2;
    --scroll-track: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    /* border: 1px solid red; */
}

body {
    background-color: var(--dark);
    color: var(--text);
    min-height: 100vh;
    padding: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.heading {
    margin: auto;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-direction: row;
    align-items: center;
    height: calc(15vh - 40px);

}

.brand {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;

    /* background-color: red; */
}

.brand img {
    max-width: 50px;
}

.title {
    color: #992dff;
}

.title h2 {
    text-align: center;
    font-size: 18px;
}

.title span {
    color: #ffffff;
    text-align: center;
    font-size: 12px;
}

.panduan {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fungsi {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.3s;
    text-decoration: none;
}

.fungsi:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}


.container {
    display: grid;
    grid-template-columns: 8fr 20fr;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
    height: calc(90vh - 40px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}



.form-section,
.result-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 6px rgba(0, 0, 0, 0.659);
}

.form-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    padding: 10px;
    background-color: #171717;


}

/* Custom Scrollbar */
.form-content::-webkit-scrollbar {
    width: 6px;
}

.form-content::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb);
    border-radius: 3px;
}

.form-content::-webkit-scrollbar-track {
    background-color: var(--scroll-track);
    border-radius: 3px;
}

.result-content::-webkit-scrollbar {
    width: 6px;
}

.result-content::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb);
    border-radius: 3px;
}

.result-content::-webkit-scrollbar-track {
    background-color: var(--scroll-track);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-track {
    background-color: var(--scroll-track);
    border-radius: 3px;
}




.form-group {
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.form-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-group h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 400;
    color: #ccc;
    font-size: 12px;
}

input,
textarea,
select {
    width: 100%;
    padding: 8px 12px;
    background-color: #2a2a2a;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 12px;
    transition: border 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    min-height: 80px;
    resize: vertical;
}

button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    margin-top: 10px;
    transition: all 0.3s;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.result-content {
    padding-right: 15px;
    margin-bottom: 15px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.result-box {
    background-color: #171717;
    padding: 15px;
    /* border-bottom: 4px solid var(--primary); */
}

.result-box h3 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 14px;
}

.result-box-content {
    line-height: 1.6;
    font-size: 12px;
}

.result-box-content h1 {
    font-size: 3em;
    margin: 20px 0 15px 0;
    color: var(--primary);
    font-weight: bold;

}

.result-box-content h2 {
    font-size: 2em;
    margin: 18px 0 12px 0;
    color: var(--primary);
    font-weight: 800;

}

.result-box-content h3 {
    font-size: 1.4em;
    margin: 15px 0 10px 0;
    color: var(--primary);
    font-weight: 500;
}

.result-box-content p {
    margin: 0 0 12px 0;
}

.result-box-content ul,
.result-box-content ol {
    margin: 8px 0 12px 20px;
    padding-left: 15px;
}

.result-box-content li {
    margin-bottom: 6px;
    padding-left: 5px;
}

.result-box-content strong {
    color: #fff;
    font-weight: 500;
}

.result-box-content em {
    color: #ccc;
    font-style: italic;
}

.result-box-content a {
    color: var(--secondary);
    text-decoration: none;
}

.result-box-content a:hover {
    text-decoration: underline;
}

.result-box-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 12px;
    margin: 12px 0;
    color: #ccc;
    font-style: italic;
}

.result-box-content code {
    background-color: #333;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.loading {
    display: none;
    text-align: center;
    margin: 15px 0;
}

.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--secondary);
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .form-section,
    .result-section {
        height: 500px;
    }

    .heading {
        flex-direction: column;
    }
}

.powered-by {
    font-size: 12px;
    color: var(--gray-color);
    text-align: center;
    margin-bottom: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modalopen 0.4s;
}

@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text);
}


/* Guide Modal Styles */
.guide-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.guide-section h2 {
    color: var(--primary);
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    margin-right: 10px;
}

/* Usage Steps */
.usage-steps {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.step {
    display: flex;
    gap: 15px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
    margin-top: 5px;

}

.step-content h3 {
    color: var(--text);
    margin-top: 5px;
    font-size: 14px;
}

.ui-element {
    background-color: rgba(138, 43, 226, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

/* Feature Explanation Styles */
.feature {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary);
    font-size: 12px;
}

.feature h3 {
    color: var(--secondary);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
}

.feature h4 {
    color: var(--text);
    margin: 20px 0px 4px 0;
    font-size: 14px;
    color: var(--third);
}

.structure-list {
    padding-left: 20px;
    margin: 10px 0;
}

.structure-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.example-box {
    margin: 15px 0;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 12px;
}

.example-title {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
    display: block;
    font-style: italic;
}

.code-example {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
}

.code-block {
    font-family: 'Courier New', monospace;
    background-color: #2a2a2a;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid var(--secondary);
}

.good-example {
    display: block;
    background-color: rgba(0, 255, 0, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #0f0;
}

.bad-example {
    display: block;
    background-color: rgba(255, 0, 0, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #f00;
}

.example-note {
    font-size: 12px;
    color: #aaa;
    margin-top: 8px;
    font-style: italic;
}

/* ========== PROFESSIONAL TIPS SECTION ========== */
.tips-section {
    margin-top: 30px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.tip-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
    font-size: 12px;
    animation: fadeInUp 0.5s ease forwards;
}

.tip-card:hover {
    transform: translateY(-3px);
    background-color: rgba(138, 43, 226, 0.12);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tip-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.tip-icon {
    font-size: 22px;
    width: 35px;
    height: 35px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tip-card h3 {
    color: var(--secondary);
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.tip-content {
    padding-left: 48px;
    /* Match icon spacing */
}

.tip-content p {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 12px;
    font-weight: 400;

}

/* Example Elements */
.audience-example {
    display: grid;
    gap: 15px;
    margin: 10px 0;
}

.audience-case {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.audience-case p {
    margin: 8px 0;
    font-size: 12px;
    font-weight: 200;

}

.audience-case strong {
    color: var(--secondary);
    font-weight: 800;
}

.tip-list {
    padding-left: 20px;
    margin: 10px 0;
    font-size: 12px;
}

.tip-list li {
    margin-bottom: 6px;
    position: relative;
    font-size: 12px;
}

.tip-list li::before {
    position: absolute;
    left: 0;
}

.structure-combo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}

.combo-example {
    display: flex;
    align-items: center;
    gap: 10px;
}

.combo-label {
    font-size: 13px;
    color: var(--text);
    min-width: 60px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay animations for each card */
.tip-card:nth-child(1) {
    animation-delay: 0.1s;
}

.tip-card:nth-child(2) {
    animation-delay: 0.2s;
}

.tip-card:nth-child(3) {
    animation-delay: 0.3s;
}

.tip-card:nth-child(4) {
    animation-delay: 0.4s;
}

.tip-card:nth-child(5) {
    animation-delay: 0.5s;
}

.tip-card:nth-child(6) {
    animation-delay: 0.6s;
}

.tip-card:nth-child(7) {
    animation-delay: 0.7s;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .audience-example {
        grid-template-columns: 1fr;
    }

    .combo-example {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 600px) {
    .tip-content {
        padding-left: 0;
    }

    .tip-header {
        margin-bottom: 15px;
    }

    .tip-card {
        font-size: 13px;
    }
}