body {
    font-family: Arial, sans-serif;
    background: #f5f6f8;
    margin: 0;
    padding: 0;
    padding-top: 70px;
}

/* ===== 기본 컨테이너 ===== */
.container {
    width: 800px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.container.wide {
    width: 98%;
    max-width: 1800px;
}

/* ===== 히스토리 전용 넓은 컨테이너 ===== */
.full-container {
    width: 98%;
    max-width: 1900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

h1 {
    margin-bottom: 20px;
}

input {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 8px 0 16px;
    box-sizing: border-box;
}

button {
    padding: 10px 16px;
    border: none;
    background: #2c7be5;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #1a68d1;
}

/* ===== 상단 고정 헤더 ===== */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-sizing: border-box;
    z-index: 1000;
}

.brand {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.brand span {
    margin-left: 10px;
    font-weight: 500;
    color: #2563eb;
    font-size: 14px;
}

/* ===== 로그인 ===== */
.login-wrapper {
    width: 100%;
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.login-card h1 {
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 700;
    color: #111827;
}

.error-box {
    margin-bottom: 20px;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.login-form input {
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    margin: 0;
}

.login-form button {
    height: 46px;
    margin-top: 10px;
    border: none;
    background: #2c7be5;
    color: #ffffff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.login-form button:hover {
    background: #1a68d1;
}

.register-link {
    margin-top: 18px;
    font-size: 14px;
}

.register-link a {
    color: #6d28d9;
    text-decoration: underline;
}

/* ===== 생성 이력 ===== */
.page-header {
    margin-bottom: 20px;
}

.page-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: #111827;
}

.page-header p {
    margin: 0;
    display: inline-block;
    padding: 12px 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #9a3412;
    font-size: 14px;
}

/* ===== 표 ===== */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    box-sizing: border-box;
}

.history-table {
    width: 100%;
    min-width: 1800px;
    border-collapse: collapse;
    background: #ffffff;
}

.history-table th,
.history-table td {
    border: 1px solid #e5e7eb;
    padding: 14px 12px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    font-size: 14px;
    color: #111827;
}

.history-table th {
    background: #f9fafb;
    font-weight: 700;
}

.status {
    font-weight: 700;
    color: #6b7280;
}

.status.success {
    color: #16a34a;
}

.status.fail {
    color: #dc2626;
}

.download-btn {
    display: inline-block;
    padding: 8px 12px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.download-btn:hover {
    background: #1d4ed8;
}

.disabled {
    color: #9ca3af;
    font-weight: 600;
    white-space: nowrap;
}

.empty-box {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 15px;
}

.back-link {
    margin-top: 24px;
}

.back-link a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}