* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

body {
    background: linear-gradient(145deg, #f3e8ff 0%, #ffd6f3 100%);
    min-height: 100vh;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 1400px;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #6a1b9a;
    letter-spacing: -0.5px;
    text-shadow: 4px 4px 0 #e1bee7;
    line-height: 1.3;
}

.header h1 i {
    color: #ff4fb3;
    margin-right: 12px;
}

.header p {
    font-size: 1.2rem;
    color: #6a1b9a;
    background: #fff0fb;
    display: inline-block;
    padding: 12px 32px;
    border-radius: 60px;
    box-shadow: 0 6px 0 #c48bcf;
    font-weight: 600;
    margin-top: 8px;
}

.main-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.left-col {
    flex: 2;
    min-width: 320px;
}

.theme-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.theme-btn {
    background: white;
    border: 3px solid #b455d6;
    border-radius: 40px;
    padding: 14px 6px;
    font-weight: 700;
    font-size: 1rem;
    color: #6a1b9a;
    box-shadow: 0 7px 0 #7b1fa2;
    cursor: pointer;
    transition: 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.theme-btn i {
    font-size: 1.3rem;
}

.theme-btn.active {
    background: #ffd6f3;
    border-color: #ff4fb3;
    box-shadow: 0 4px 0 #c2185b;
    transform: translateY(3px);
}

.theme-btn:hover {
    background: #ffe6fa;
}

.write-box {
    background: #ffffffed;
    border: 4px solid #b455d6;
    border-radius: 40px 40px 20px 20px;
    padding: 25px 25px 20px;
    box-shadow: 0 15px 0 #7b1fa2;
    margin-bottom: 20px;
}

.write-box label {
    font-weight: 700;
    font-size: 1.4rem;
    color: #6a1b9a;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.write-box label i {
    background: #ff4fb3;
    color: white;
    padding: 12px;
    border-radius: 50%;
}

textarea {
    width: 100%;
    height: 280px;
    padding: 22px;
    font-size: 1.2rem;
    line-height: 1.6;
    border: 3px dashed #b455d6;
    border-radius: 30px;
    background: #fff7fd;
    resize: vertical;
    font-weight: 500;
    color: #5a2a6e;
}

textarea:focus {
    outline: 4px solid #ff9adf;
    border-color: #ff4fb3;
    background: #fff0fb;
}

.word-count {
    text-align: right;
    margin-top: 10px;
    font-size: 1rem;
    color: #7b1fa2;
    font-weight: 600;
}

.koreksi-btn {
    display: flex;
    justify-content: center;
    margin: 10px 0 25px;
}

.btn-ai {
    background: linear-gradient(135deg,#c084fc,#ff6ec7);
    border: none;
    border-radius: 60px;
    padding: 20px 45px;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 12px 0 #7b1fa2;
    cursor: pointer;
    transition: 0.08s linear;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    border: 3px solid #ffd6f3;
}

.btn-ai:active {
    transform: translateY(6px);
    box-shadow: 0 6px 0 #7b1fa2;
}

.btn-ai i {
    font-size: 2.2rem;
    color: white;
}

.right-col {
    flex: 1.3;
    min-width: 320px;
    background: #fdf4ff;
    border: 4px solid #b455d6;
    border-radius: 40px;
    padding: 25px 20px;
    box-shadow: 0 15px 0 #7b1fa2;
    height: fit-content;
}

.right-col h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    color: #6a1b9a;
    border-bottom: 4px solid #b455d6;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.kor-head {
    background: #f3d9ff;
    border-radius: 30px;
    padding: 15px;
    color: #4a0072;
    font-weight: 700;
    margin-bottom: 15px;
    border: 2px solid #b455d6;
}

.kor-item {
    background: #fff7fd;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
    border-left: 12px solid #ff4fb3;
    box-shadow: 0 6px 0 #c48bcf;
}

.kor-item p {
    margin: 8px 0;
    font-size: 1.05rem;
}

.badge {
    display: inline-block;
    background: #7b1fa2;
    color: white;
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 8px;
    margin-bottom: 6px;
}

.badge-revisi {
    background: #ff4fb3;
}

.badge-history {
    background: #9c27b0;
}

.badge-score {
    background: #c2185b;
}

.suggestion {
    background: #ffe6fa;
    padding: 12px;
    border-radius: 18px;
    font-style: italic;
    margin-top: 12px;
    border: 2px solid #ff4fb3;
}

.footer-note {
    font-size: 0.95rem;
    text-align: center;
    margin-top: 40px;
    color: #6a1b9a;
    font-weight: 700;
}

.grid-efektif {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 10px 0;
}

.efektif-item {
    background: #f3d9ff;
    border-radius: 30px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.revisi-area {
    margin-top: 20px;
    padding: 15px;
    background: #ffe6fa;
    border-radius: 30px;
    border: 3px solid #ff4fb3;
}

.revisi-area textarea {
    height: 150px;
    background: #fff7fd;
    border: 2px solid #ff4fb3;
}

.btn-revisi {
    background: linear-gradient(135deg,#c084fc,#ff6ec7);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 6px 0 #7b1fa2;
    transition: 0.05s linear;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-revisi:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #7b1fa2;
}

.history-box {
    background: #f3d9ff;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #b455d6;
}

.history-item {
    background: white;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 8px solid #b455d6;
}

.history-item .version {
    font-weight: 700;
    color: #6a1b9a;
}

.diff {
    background: #fdf0ff;
    padding: 8px;
    border-radius: 12px;
    font-family: monospace;
    white-space: pre-wrap;
    margin: 8px 0;
}

.diff-added {
    background: #e1bee7;
    color: #4a0072;
    padding: 2px 4px;
    border-radius: 6px;
}

.diff-removed {
    background: #f8bbd0;
    color: #880e4f;
    padding: 2px 4px;
    border-radius: 6px;
    text-decoration: line-through;
}

.score-container {
    background: linear-gradient(135deg, #e1bee7, #ff9adf);
    border-radius: 30px;
    padding: 20px;
    margin-bottom: 20px;
    border: 3px solid #7b1fa2;
    box-shadow: 0 8px 0 #6a1b9a;
}

.score-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4a0072;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.score-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-around;
}

.score-card {
    background: white;
    border-radius: 30px;
    padding: 15px;
    flex: 1;
    min-width: 140px;
    text-align: center;
    border: 3px solid #b455d6;
}

.score-card .label {
    font-weight: 700;
    color: #6a1b9a;
    font-size: 1.1rem;
}

.score-card .value {
    font-size: 3rem;
    font-weight: 800;
    color: #ff4fb3;
    line-height: 1.2;
}

.score-card .desc {
    font-size: 0.9rem;
    color: #6a1b9a;
}

.total-score {
    background: linear-gradient(135deg,#7b1fa2,#ff4fb3);
    color: white;
    border-radius: 40px;
    padding: 12px 25px;
    text-align: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin-top: 15px;
}