@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,700;0,800;1,400;1,700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f4f7fb;
    color: #1c1c28;
}

/* ===== Hero split-screen (kiri form, kanan data tersimpan) ===== */

.hero {
    display: flex;
    min-height: 100vh;
}

.hero-left {
    flex: 0 0 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 28px;
    position: relative;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
}

.hero-right {
    flex: 1;
    background: linear-gradient(135deg, #eaf3ff 0%, #f8fbff 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px;
}

.saved-data-panel {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    padding: 24px;
}

.saved-data-header {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.saved-data-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.saved-data-header p {
    font-size: 13px;
    color: #6b7280;
}

.export-btn,
.clear-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.export-btn {
    background: #0f766e;
}

.export-btn:hover {
    background: #115e59;
}

.clear-btn {
    background: #ef4444;
}

.clear-btn:hover {
    background: #dc2626;
}

.search-box {
    margin-bottom: 12px;
}

.search-box input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    margin-bottom: 0;
}

.search-box input:focus {
    border-color: #269bdf;
}

.table-scroll {
    width: 100%;
    max-height: calc(100vh - 220px);
    overflow-x: auto;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.read-data {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.read-data th,
.read-data td {
    border: 1px solid #eef0f2;
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
}

.read-data thead th {
    background: #269bdf;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 1;
}

.read-data tbody tr:nth-child(even) {
    background: #f7f9fb;
}

.read-data .empty-state {
    text-align: center;
    color: #6b7280;
    padding: 18px;
    font-style: italic;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1c1c28;
    margin-bottom: 40px;
}

.form-box {
    width: 100%;
    max-width: 100%;
}

.form-box .judul {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-box .subjudul {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 25px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    outline: none;
    border: 1.5px solid #dfe3e8;
    background: #fff;
    margin-bottom: 18px;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #269bdf;
}

input::placeholder {
    color: #9aa0a8;
}

.submit {
    margin-top: 8px;
}

.submit button {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: none;
    outline: none;
    background: #1e8e5a;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.submit button:hover {
    background: #187249;
    transition: 0.3s;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        min-height: auto;
    }

    .hero-left {
        flex-basis: auto;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 30px 20px;
    }

    .hero-right {
        padding: 20px;
    }

    .table-scroll {
        max-height: 360px;
    }
}

@media (max-width: 600px) {
    .hero-right {
        padding: 20px;
    }

    .saved-data-panel {
        padding: 16px;
    }

    .table-scroll {
        max-height: 300px;
    }
}
