/* =========================================================
   RUMUS WD - STYLE.CSS
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #eef4f8;

    color: #17365d;

    min-height: 100vh;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {

    width: 100%;

    min-height: 110px;

    padding: 20px 40px;

    background: #3987c9;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.12);
}


/* Bagian kiri header */

.header-left {

    display: flex;

    align-items: center;

    gap: 16px;
}


/* Icon */

.logo-icon {

    width: 58px;

    height: 58px;

    background: rgba(255, 255, 255, 0.15);

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 30px;
}


/* Judul */

.header h1 {

    margin: 0;

    color: #fff200;

    font-size: 40px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: 1px;
}


/* Subtitle */

.header p {

    margin-top: 7px;

    color: #ffffff;

    font-size: 14px;

    line-height: 1.4;
}


/* Bagian kanan header */

.header-right {

    display: flex;

    align-items: center;

    gap: 20px;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 28px 20px 10px;
}


/* =========================================================
   CARD
   ========================================================= */

.card {

    width: 100%;

    background: #ffffff;

    border: 1px solid #d7e4ed;

    border-radius: 12px;

    padding: 25px;

    margin-bottom: 24px;

    box-shadow:
        0 4px 15px rgba(25, 75, 110, 0.08);
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.section-header {

    display: flex;

    align-items: flex-start;

    gap: 13px;

    margin-bottom: 20px;
}


.section-icon {

    width: 42px;

    height: 42px;

    flex-shrink: 0;

    border-radius: 9px;

    background: #e8f3fc;

    color: #287fc5;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 22px;

    font-weight: bold;
}


.section-header h2 {

    color: #2678bd;

    font-size: 21px;

    font-weight: 800;

    margin: 0;

    line-height: 1.2;
}


.section-header p {

    margin-top: 6px;

    color: #71869a;

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   TEXTAREA
   ========================================================= */

#inputData {

    display: block;

    width: 100%;

    min-height: 190px;

    padding: 16px;

    resize: vertical;

    border: 2px solid #d3e1eb;

    border-radius: 9px;

    outline: none;

    background: #fbfdff;

    color: #183c60;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 14px;

    line-height: 1.6;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


#inputData::placeholder {

    color: #9aabba;
}


#inputData:focus {

    border-color: #3987c9;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(57, 135, 201, 0.12);
}


/* =========================================================
   BUTTON
   ========================================================= */

.button {

    min-height: 44px;

    padding: 0 20px;

    border: none;

    border-radius: 7px;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.button:hover {

    transform: translateY(-1px);
}


.button:active {

    transform: translateY(0);
}


/* Button utama */

.button-primary {

    background: #287fc5;

    color: #ffffff;

    box-shadow:
        0 3px 8px rgba(40, 127, 197, 0.18);
}


.button-primary:hover {

    background: #176ba9;
}


/* Button secondary */

.button-secondary {

    background: #edf3f7;

    color: #4d6880;

    border: 1px solid #d0dce5;
}


.button-secondary:hover {

    background: #e2ebf1;
}


/* =========================================================
   INPUT ACTIONS
   ========================================================= */

.input-actions {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 14px;

    flex-wrap: wrap;
}


/* =========================================================
   STATUS
   ========================================================= */

.status-message {

    min-height: 20px;

    margin-top: 12px;

    color: #3974a8;

    font-size: 13px;

    font-weight: 700;
}


/* =========================================================
   RESULT HEADER
   ========================================================= */

.result-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 3px;
}


.result-header .section-header {

    margin-bottom: 0;
}


/* =========================================================
   TABLE WRAPPER
   ========================================================= */

.table-wrapper {

    width: 100%;

    overflow-x: auto;

    border: 1px solid #d7e2e9;

    border-radius: 8px;

    margin-top: 18px;
}


/* =========================================================
   TABLE
   ========================================================= */

table {

    width: 100%;

    min-width: 720px;

    border-collapse: collapse;

    background: #ffffff;
}


/* Table header */

thead th {

    padding: 14px 12px;

    background: #3987c9;

    color: #fff200;

    border: 1px solid #6ba5d2;

    font-size: 12px;

    font-weight: 800;

    text-align: center;

    white-space: nowrap;
}


/* Table body */

tbody td {

    padding: 13px 12px;

    border: 1px solid #d9e3ea;

    color: #294967;

    background: #ffffff;

    font-size: 13px;

    vertical-align: middle;
}


/* Baris selang-seling */

tbody tr:nth-child(even) td {

    background: #f8fbfd;
}


/* Hover */

tbody tr:hover td {

    background: #eef7fd;
}


/* Nomor */

tbody td:first-child {

    width: 60px;

    text-align: center;

    font-weight: 700;
}


/* User name */

tbody td:nth-child(2) {

    font-weight: 700;

    color: #246fa8;
}


/* Account */

tbody td:nth-child(3) {

    min-width: 240px;
}


/* Debit */

tbody td:nth-child(4) {

    text-align: right;

    font-weight: 800;

    color: #1c5e91;

    white-space: nowrap;
}


/* Action */

tbody td:last-child {

    width: 110px;

    text-align: center;
}


/* =========================================================
   COPY BUTTON DI DALAM TABLE
   ========================================================= */

.btn-copy {

    min-height: 34px;

    padding: 0 13px;

    border: none;

    border-radius: 6px;

    background: #287fc5;

    color: #ffffff;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}


.btn-copy:hover {

    background: #176ba9;

    transform: translateY(-1px);
}


.btn-copy:active {

    transform: translateY(0);
}


/* =========================================================
   EMPTY DATA
   ========================================================= */

.empty-data {

    height: 100px;

    text-align: center !important;

    color: #8498aa !important;

    font-weight: 600;

    background: #ffffff !important;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {

    width: 100%;

    padding: 5px 20px 25px;

    text-align: center;

    color: #8196a9;

    font-size: 11px;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {

    width: 8px;

    height: 8px;
}


::-webkit-scrollbar-track {

    background: #edf3f7;
}


::-webkit-scrollbar-thumb {

    background: #b8cad8;

    border-radius: 10px;
}


::-webkit-scrollbar-thumb:hover {

    background: #8eacbf;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 900px) {

    .header {

        padding: 20px 25px;
    }


    .header-right {

        display: none;
    }


    .container {

        padding-left: 15px;

        padding-right: 15px;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .header {

        min-height: auto;

        padding: 18px;

        align-items: flex-start;
    }


    .logo-icon {

        width: 48px;

        height: 48px;

        font-size: 25px;
    }


    .header h1 {

        font-size: 28px;
    }


    .header p {

        font-size: 12px;
    }


    .container {

        padding: 15px 10px 5px;
    }


    .card {

        padding: 17px;

        border-radius: 9px;

        margin-bottom: 15px;
    }


    .section-header h2 {

        font-size: 17px;
    }


    .section-header p {

        font-size: 12px;
    }


    #inputData {

        min-height: 170px;

        font-size: 12px;
    }


    .input-actions {

        flex-direction: column;

        align-items: stretch;
    }


    .input-actions .button {

        width: 100%;
    }


    .result-header {

        flex-direction: column;

        align-items: stretch;

        gap: 12px;
    }


    .result-header > .button {

        width: 100%;
    }


    .table-wrapper {

        margin-top: 15px;
    }

}