.konvolusi-wrapper {
    max-width: 1000px;
    padding: 18px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.konvolusi-bagian {
    flex: 1;
    text-align: center;
}

.konvolusi-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5px;
    max-width: 1200px;
    font-family: 'Segoe UI', sans-serif;
    padding: 15px 5px;
    background-color: #fefcf8;
    color: #3e2c23;
}

.judul-matriks {
    margin-bottom: 20px;
    font-size: 40px;
    color: #72391d;
}

.tengah {
    flex: 0.8;
    background-color: #fdf6ee;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.padding-matriks {
    display: grid;
    grid-template-columns: repeat(6, 40px);
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}

.grid-kernel {
    display: grid;
    justify-content: center;
    margin-top: 10px;
    gap: 6px;
}

.kecil-5x5 {
    grid-template-columns: repeat(5, 40px) !important;
}

.padding-output {
    display: grid;
    grid-template-columns: repeat(4, 40px);
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}

.cell {
    width: 35px;
    height: 35px;
    border: 1px solid #a8a5a5;
    text-align: center;
    line-height: 40px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    background-color: #fffef9;
    border-radius: 6px;
}

.cell.padding {
    background-color: #e1e1e1;
}

#matriksInput .cell {
    background-color: #f3e9db;
}

#kernelMatriks .cell {
    background-color: #f9eedc;
}

#hasilMatriks .cell {
    background-color: #e7eced;
}

.highlight {
    border: 2px solid #e63946;
}

.output-highlight {
    border: 2px solid #e63946;
    box-shadow: 0 0 4px red;
}

.highlight-animate {
    animation: flashOrange 0.4s ease-in-out;
    background-color: #fdba74 !important;
}

@keyframes flashOrange {
    0% {
        background-color: #fff7ed;
    }

    50% {
        background-color: #fdba74;
    }

    100% {
        background-color: #f3e9db;
    }
}

#boxKalkulasi {
    background-color: #f8f4ef;
    padding: 16px 20px;
    border-left: 5px solid #b08968;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

#boxKalkulasi p {
    margin: 0;
}

.kalku-padding {
    text-align: center;
    margin-top: 10px;
}

.judul-kalkulasi {
    font-size: 18px;
    color: #5a4636;
    margin-bottom: 2px;
}

.kotak-kalkulasi {
    display: inline-block;
    background-color: #f8f4ef;
    padding: 16px 20px;
    border-left: 5px solid #b08968;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    text-align: left;
    min-width: 280px;
    max-width: 100%;
}

.placeholder-kalkulasi {
    color: #888;
    margin: 0;
}

#kontainerTombol {
    margin-top: 20px;
}

.tombol-aksi {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
}

.padding-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.padding-header label {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

#tipePadding {
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    min-width: 120px;
}

.btn-langkah {
    background-color: #976148;
    color: white;
    padding: 8px 18px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    margin: 6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-langkah:hover {
    background-color: #654733 !important;
    transform: scale(1.05) !important;
}

.btn-ulangi {
    background-color: #ce8338;
    color: white;
    padding: 8px 18px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    margin: 6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-ulangi:hover {
    background-color: #a26b28 !important;
    transform: scale(1.05) !important;
}

select {
    margin: 8px 0;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

input {
    width: 38px;
    height: 38px;
    text-align: center;
    font-size: 16px;
    border: none;
    background-color: #fffbe0;
}
