:root {
    --primary: #005696;
    --bg: #f4f7f6;
    --white: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    margin: 0;
    padding: 20px;
}

.main-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px;
}

.generator-card {
    flex: 2;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.history-card {
    flex: 1;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.toggle-upload {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.toggle-upload button {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--primary);
    background: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-upload button.active {
    background: var(--primary);
    color: white;
}

/* Mempercantik Input 'Choose File' agar senada */
input[type="file"]::file-selector-button {
    background: #e2e8f0;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    margin-right: 15px;
    transition: 0.3s;
}

input[type="file"]::file-selector-button:hover {
    background: #cbd5e1;
}

.info-size {
    font-size: 12px;
    color: var(--primary);
    margin-top: 5px;
    font-weight: bold;
}

.btn-generate {
    width: 100%;
    padding: 15px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.history-item .actions a {
    text-decoration: none;
    margin-left: 8px;
    font-size: 16px;
}

.btn-clear {
    width: 100%;
    margin-top: 15px;
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
}