/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Inconsolata:wght@400;700&display=swap');

:root {
    --visa-blue: #1a1f71;
    --visa-dark: #10134b;
    --visa-gold: #f7b600;
    --bg-color: #f2f5f7;
    --system-bg: #e6e9ed;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- HEADER SECTION --- */
.main-header {
    background-color: var(--visa-blue);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
}

.logo-container img {
    height: 35px;
    vertical-align: middle;
}

.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-box input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 15px;
    border-radius: 4px;
    color: white;
    font-family: 'Inconsolata', monospace;
    width: 250px;
    transition: all 0.3s;
}
.search-box input:focus {
    background: rgba(255,255,255,0.2);
    outline: none;
    border-color: var(--visa-gold);
}
.search-box input::placeholder { color: rgba(255,255,255,0.6); }

.nav-btn {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}
.nav-btn:hover { background: rgba(255,255,255,0.1); }

/* --- SYSTEM INFO STRIP --- */
.system-strip {
    background-color: var(--system-bg);
    padding: 8px 30px;
    font-family: 'Inconsolata', monospace;
    font-size: 12px;
    color: #555;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    border-bottom: 1px solid #d1d5db;
}

.sys-item span {
    background: black;
    color: white;
    padding: 1px 6px;
    font-weight: bold;
}

/* --- MAIN CONTENT LAYOUT --- */
.content-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center; /* Center form vertically */
    padding: 20px;
    position: relative;
}

/* FORM CONTAINER (Wizard) */
.form-container {
    background: white;
    width: 450px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.5s ease;
}

h2 { color: var(--visa-blue); margin-bottom: 25px; font-weight: 500; }
label { display: block; text-align: left; margin-top: 15px; font-size: 13px; color: #666; font-weight: 500; }
input.form-input {
    width: 100%; padding: 12px; margin-top: 5px;
    border: 1px solid #ccc; border-radius: 4px;
    box-sizing: border-box; font-size: 16px;
}
input.form-input:focus { border-color: var(--visa-blue); outline: none; }

.btn-primary {
    background-color: var(--visa-blue);
    color: white;
    width: 100%; padding: 14px; margin-top: 25px;
    border: none; border-radius: 4px;
    font-size: 16px; font-weight: bold; cursor: pointer;
    transition: background 0.3s;
}
.btn-primary:hover { background-color: var(--visa-dark); }

/* --- FULL SCREEN PREVIEW --- */
.preview-mode .form-container { display: none; } /* Hide form in preview mode */
.preview-mode .content-wrapper { padding: 0; align-items: flex-start; }

#preview-container {
    display: none;
    width: 100%;
    height: calc(100vh - 100px); /* Adjust based on header height */
    flex-direction: column;
}

iframe#pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.preview-toolbar {
    background: #333;
    color: white;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- LOADING ANIMATION --- */
.loader-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.9);
    display: none;
    z-index: 200;
    justify-content: center; align-items: center; flex-direction: column;
}
.spinner-box { position: relative; width: 100px; height: 100px; display: flex; justify-content: center; align-items: center; }
.circle-border {
    width: 100%; height: 100%; border: 4px solid transparent;
    border-top: 4px solid var(--visa-blue); border-right: 4px solid var(--visa-blue);
    border-radius: 50%; animation: spin 1s linear infinite; position: absolute;
}
.logo-center { width: 50px; animation: pulse 1.5s infinite; }
.loading-text { margin-top: 20px; font-size: 16px; color: var(--visa-blue); font-weight: 500; font-family: 'Inconsolata', monospace; }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.7; } }

/* --- HISTORY DASHBOARD STYLE --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.stat-card { background: white; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.stat-title { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.stat-value { font-size: 24px; color: var(--visa-blue); font-weight: bold; margin-top: 5px; }
.server-log { font-family: 'Inconsolata', monospace; font-size: 12px; color: #333; line-height: 1.5; }
.log-entry { margin-bottom: 5px; border-bottom: 1px dashed #eee; padding-bottom: 2px; }
.status-green { color: green; }

table.history-table { width: 100%; border-collapse: separate; border-spacing: 0; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
table.history-table th { background: var(--visa-blue); color: white; padding: 15px; text-align: left; font-weight: 500; }
table.history-table td { padding: 12px 15px; border-bottom: 1px solid #eee; color: #333; }
table.history-table tr:hover { background-color: #f9f9f9; }
.btn-dl { background: var(--visa-gold); color: #000; padding: 6px 12px; text-decoration: none; border-radius: 4px; font-size: 12px; font-weight: bold; }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* style.css - Tambahkan/Update bagian ini */

/* --- DASHBOARD MENU SELECTION --- */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.menu-card {
    background: white;
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(26, 31, 113, 0.15);
    border-color: var(--visa-blue);
}

.menu-card h3 {
    color: var(--visa-blue);
    margin: 10px 0;
    font-size: 18px;
}

.menu-card p {
    font-size: 13px;
    color: #666;
}

.icon-large {
    font-size: 40px;
    color: var(--visa-gold);
    margin-bottom: 15px;
    display: block;
}

/* Tombol di History */
.action-btn {
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
    margin-right: 5px;
    text-transform: uppercase;
}
.btn-view { background: var(--visa-blue); color: white; }
.btn-dl { background: var(--visa-gold); color: black; }
.btn-view:hover { opacity: 0.9; }

/* Modal Preview di History */
.modal-overlay {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 999;
    justify-content: center; align-items: center;
}
.modal-content {
    background: white; width: 80%; height: 90%;
    position: relative; display: flex; flex-direction: column;
}
.modal-close {
    background: #cc0000; color: white; border: none;
    padding: 10px; cursor: pointer; font-weight: bold;
}