body {

    font-family: 'Poppins', sans-serif;
    margin: 0;

    background: linear-gradient(180deg,
            #ffffff 0%,
            #f8fafc 100%);

    color: #1e293b;

}

.sa-container {

    max-width: 1100px;
    margin: auto;
    padding: 20px;

}


/* HEADER */

.sa-header {

    border-bottom: 1px solid #eee;
    background: #fff;

}

.sa-header .sa-container {

    display: flex;
    justify-content: space-between;
    align-items: center;

}

.sa-logo {

    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    color: #000;

}

.sa-nav a {

    margin-left: 20px;
    text-decoration: none;
    color: #555;
    font-size: 14px;

}

.sa-nav a:hover {

    color: #000;

}



/* TITLE */

.tools-title {

    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: 32px;

}


/* SEARCH */

.tool-search {

    text-align: center;
    margin-bottom: 40px;

}

.tool-search input {

    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;

}


/* GRID */

.tools-grid {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

}


/* CARD */

.tool-card {

    background: white;

    padding: 22px;

    border-radius: 14px;

    text-decoration: none;

    color: #222;

    border: 1px solid #e5e7eb;

    transition: all .2s ease;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

}

.tool-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12);

}

.tool-icon {

    font-size: 32px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef2ff;

    border-radius: 12px;

    margin-bottom: 14px;

}

.tool-card h3 {

    margin: 0 0 10px 0;
    font-size: 18px;

}

.tool-card p {

    font-size: 14px;
    color: #555;

}


/* FOOTER */

.sa-footer {

    margin-top: 60px;
    padding: 30px;
    background: #f7f7f7;
    text-align: center;
    font-size: 14px;

}

.sa-footer a {

    color: #555;
    text-decoration: none;

}

.sa-footer a:hover {

    color: #000;

}


/* kalkulator mean*/

.tool-box {

    margin-top: 30px;

    max-width: 520px;

    padding: 24px;

    background: white;

    border-radius: 14px;

    border: 1px solid #e5e7eb;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);

}

.tool-box input,
.tool-box select,
.tool-box button {

    box-sizing: border-box;

}

.tool-box input,
.tool-box select {

    margin-bottom: 14px;

}

.tool-box input {

    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;

}

.tool-box button {

    padding: 12px;

    background: linear-gradient(135deg,
            #6366f1,
            #4f46e5);

    color: white;

    border: none;

    border-radius: 10px;

    font-weight: 600;

    cursor: pointer;

    transition: .2s;

}

.tool-box button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 6px 16px rgba(79, 70, 229, 0.4);

}

#hasilMean {

    margin-top: 15px;
    font-size: 18px;

}

.tool-back {

    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
    text-decoration: none;
    color: #465367;

}

.tool-back:hover {

    text-decoration: underline;

}

.tools-section {

    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;

}

/* UNIVERSAL RESULT STYLE */

[id^="hasil"] {

    margin-top: 25px;
    padding: 18px;

    background: #f8fafc;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);

    font-size: 16px;
    line-height: 1.6;

    animation: fadeResult .25s ease;

}

[id^="hasil"] b {

    font-size: 22px;
    color: #111;

}

@keyframes fadeResult {

    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

[id^="hasil"] table {

    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;

}

[id^="hasil"] th {

    background: #f1f5f9;
    padding: 10px;
    text-align: left;

}

[id^="hasil"] td {

    padding: 10px;
    border-top: 1px solid #eee;

}

[id^="hasil"] ol {

    padding-left: 20px;

}

[id^="hasil"] li {

    margin-bottom: 12px;

    padding: 14px 16px;

    background: white;

    border-radius: 10px;

    border: 1px solid #e5e7eb;

    transition: .2s;

    font-size: 15px;

}

[id^="hasil"] li:hover {

    border-color: #6366f1;

    transform: translateX(4px);

}

.tool-box button {

    width: 100%;

}

.tool-box select {

    width: 100%;

    padding: 12px;

    border: 1px solid #ddd;

    border-radius: 8px;

    margin-bottom: 12px;

    font-size: 15px;

    background: white;

    appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5l6 6 6-6'/%3E%3C/svg%3E");

    background-repeat: no-repeat;

    background-position: right 12px center;

    background-size: 14px;

}

.tool-box select:focus {

    outline: none;

    border-color: #6366f1;

    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);

}

/* =========================
ARTICLE SEO TOOL
========================= */

.tool-article {

    margin-top: 50px;
    max-width: 520px;

    background: #ffffff;

    padding: 30px;

    border-radius: 10px;

    line-height: 1.7;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

}

.tool-article h2 {

    margin-top: 30px;

    margin-bottom: 10px;

    font-size: 22px;

    color: #222;

}

.tool-article p {

    margin-bottom: 15px;

    color: #444;

}

.rumus {

    font-weight: bold;

    font-size: 18px;

    background: #f5f5f5;

    padding: 10px;

    border-radius: 6px;

}

.contoh {

    font-weight: bold;

    color: #111;

}

.tool-layout {
    display: flex;
    gap: 40px;
}

.tool-content {
    flex: 1;
}

.tool-ads {

    width: 300px;
    height: 500px;

    position: fixed;

    top: 120px;

    right: calc((100vw - 1100px) / 2);

}

.tools-intro {
    max-width: 720px;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.tool-intro {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.tools-article {
    margin-top: 60px;
    max-width: 850px;
}

.tools-article h2 {
    margin-bottom: 15px;
}

.tools-article p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #444;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;

    font-size: 14px;
    font-family: inherit;
    color: #2f2f2f;

    border: 1px solid #ddd;
    border-radius: 8px;

    background-color: #fff;
    resize: vertical;

    transition: all 0.2s ease;
    outline: none;
}

textarea {
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* Placeholder */
textarea::placeholder {
    color: #999;
    font-size: 13px;
}

/* Fokus (pas diklik) */
textarea:focus {
    border-color: #f2b23c;
    box-shadow: 0 0 0 2px rgba(242, 178, 60, 0.2);
}

/* Hover dikit biar hidup */
textarea:hover {
    border-color: #e87f21;
}

/* Optional: biar lebih smooth di dark/light bg */
.tool-box textarea {
    background-color: #fff;
}

.skala-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.skala-item input {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* tombol sampah kecil */
.btn-hapus {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #ff4d4f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-hapus:hover {
    background: #ffeaea;
    border-radius: 8px;
}

.tool-box .btn-hapus {

    width: 10%;

}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#hasilLikert {
    margin-top: 20px;
}


/* RESPONSIVE */

@media(max-width:900px) {

    .tools-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media(max-width:600px) {

    .tools-grid {

        grid-template-columns: 1fr;

    }

}

@media(max-width:900px) {

    .tool-layout {
        flex-direction: column;
    }

    .tool-ads {
        width: 100%;
    }

}

@media(max-width:1200px) {

    .tool-ads {
        display: none;
    }

}