.mysp-words-wrap {
    width: 100%;
}

/* TEXTAREA */
#mysp-words-text {
    width: 100%;
    min-height: 320px;
    padding: 14px;
    font-size: 16px;
    line-height: 1.6;
    box-sizing: border-box;
    margin-bottom: 15px;
    resize: vertical;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    background: #fff;
}

#mysp-words-text:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.8;
}

/* BUTTON */
#mysp-words-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: #0073aa;
    color: #fff;
    margin-bottom: 20px;
    border-radius: 6px;
    transition: 0.3s;
}

#mysp-words-btn:hover {
    background: #005f8d;
}

#mysp-words-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #6c757d;
}

/* PROGRESS BAR CONTAINER */
#mysp-words-progress {
    width: 100%;
    height: 32px;
    background: #e9ecef;
    border-radius: 6px; 
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    display: none;
    border: 1px solid #d0d7de;
}

/* PROGRESS BAR */
#mysp-words-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #28a745, #34c759); /* hijau */
    transition: width 0.3s ease;
    z-index: 1;
}

/* TEXT */
#mysp-words-progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    z-index: 2;
    pointer-events: none;
}

/* TABLE */
.mysp-words-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dcdcdc;
    overflow: hidden;
    border-radius: 8px;
}

.mysp-words-table th,
.mysp-words-table td {
    border: 1px solid #e5e5e5;
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

/* HEADER COLOR */
.mysp-words-table th {
    background: linear-gradient(90deg, #28a745, #34c759);
    color: #ffffff;
    font-weight: 700;
}

.mysp-words-table tr:nth-child(even) {
    background: #f8f9fa;
}

.mysp-words-table tr:hover {
    background: #eef7fc;
}
@media (max-width: 768px) {
    #mysp-words-text,
    #mysp-words-btn,
    .mysp-words-table {
        width: 100%;
    }
}

/* TAG CLOUD */
.mysp-words-tag {
    display: inline-block;
    margin: 4px 6px 4px 0;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* PASTEL COLORS ROTATION */
.mysp-words-tag:nth-child(5n+1) {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.mysp-words-tag:nth-child(5n+2) {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.mysp-words-tag:nth-child(5n+3) {
    background: #fce4ec;
    color: #ad1457;
    border: 1px solid #f8bbd0;
}

.mysp-words-tag:nth-child(5n+4) {
    background: #fff8e1;
    color: #f9a825;
    border: 1px solid #ffecb3;
}

.mysp-words-tag:nth-child(5n+5) {
    background: #f3e5f5;
    color: #6a1b9a;
    border: 1px solid #e1bee7;
}

/* BADGE */
.mysp-words-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    line-height: 1;
}

/* READABILITY */
.mysp-words-badge.easy {
    background: #e8f5e9;
    color: #2e7d32;
}

.mysp-words-badge.medium {
    background: #fff8e1;
    color: #f9a825;
}

.mysp-words-badge.hard {
    background: #ffebee;
    color: #c62828;
}

/* KEYWORD DENSITY */
.mysp-words-badge.low {
    background: #e3f2fd;
    color: #1565c0;
}

.mysp-words-badge.mid {
    background: #fff3e0;
    color: #ef6c00;
}

.mysp-words-badge.high {
    background: #fce4ec;
    color: #ad1457;
}

/*TERJEMAHAN*/
.mysp-words-sublabel{
    display: block;
    font-size: 11px;
    line-height: 1.2;
    color: #8a8a8a;
    font-style: italic;
    margin-top: 2px;
    letter-spacing: 0.2px;
}

.mysp-words-warning{
    padding:10px 12px;
    background:#fff3cd;
    color:#856404;
    border:1px solid #ffeeba;
    border-radius:6px;
    font-size:14px;
    margin:10px 0;
}