/* ─── BASE LAYOUT ─────────────────────────────────────────────────────────── */
body { font-family: 'Segoe UI', system-ui, sans-serif; max-width: 800px; margin: 40px auto; padding: 20px; background-color: #faf9f8; }
.card { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-container { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e1dfdd; padding-bottom: 15px; margin-bottom: 20px; }

/* ─── TABS ─────────────────────────────────────────────────────────────────── */
.tabs { display: none; margin-bottom: 20px; }
.tab-btn { background: #f3f2f1; border: 1px solid #ccc; padding: 10px 20px; cursor: pointer; border-radius: 4px 4px 0 0; font-weight: bold; margin-right: 5px; }
.tab-btn.active { background: #0078D4; color: white; border-color: #0078D4; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── AUTH BUTTONS ─────────────────────────────────────────────────────────── */
.auth-btn { display: inline-block; padding: 8px 15px; text-decoration: none; border-radius: 4px; font-weight: bold; font-size: 14px; }
.login-btn { background-color: #0078D4; color: white; border: 1px solid #0078D4; }
.logout-btn { background-color: #fff; color: #323130; border: 1px solid #8a8886; }

/* ─── DROPZONE ─────────────────────────────────────────────────────────────── */
.dropzone { border: 2px dashed #0078D4; padding: 40px; text-align: center; background: #f3f2f1; cursor: pointer; margin-bottom: 20px; transition: 0.3s; }
.dropzone.dragover { background: #e1dfdd; border-color: #107C10; }

/* ─── FORMS & BUTTONS ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 15px; }
button, input { width: 100%; padding: 12px; margin-top: 5px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; }
.main-btn { background: #107C10; color: white; border: none; cursor: pointer; font-weight: bold; font-size: 16px; margin-top: 15px; }
.main-btn:disabled { background: #8a8886; cursor: not-allowed; }
.progress-container { width: 100%; background: #e1dfdd; border-radius: 4px; display: none; margin-bottom: 15px; }
.progress-bar { height: 10px; background: #107C10; width: 0%; border-radius: 4px; transition: width 0.2s; }

/* ─── TABLE ────────────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
th, td { border: 1px solid #e1dfdd; padding: 12px; text-align: left; }
th { background-color: #f3f2f1; }
.action-btn { background: #0078D4; color: white; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 12px; width: auto; margin-top: 0; }
.action-btn.pwd { background: #d83b01; }
.empty-state { text-align: center; padding: 30px; color: #666; font-style: italic; }

/* ─── EXPIRY CARDS ─────────────────────────────────────────────────────────── */
.expiry-header { margin-bottom: 8px; }
.expiry-title { font-weight: bold; color: #323130; font-size: 14px; }
.expiry-subtitle { font-size: 12px; color: #605e5c; margin-top: 2px; display: block; }
.card-radio-group { display: flex; gap: 12px; margin-bottom: 20px; }
.card-radio-group input[type="radio"] { display: none; }
.card-radio { flex: 1; border: 1px solid #e1dfdd; border-radius: 6px; padding: 12px; cursor: pointer; position: relative; background: #fff; transition: all 0.2s ease; display: flex; flex-direction: column; gap: 4px; }
.card-radio:hover { border-color: #0078D4; }
.card-radio-group input[type="radio"]:checked + .card-radio { border-color: #0078D4; background-color: #f3f9fd; box-shadow: 0 0 0 1px #0078D4; }
.card-radio .check-badge { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; background: #0078D4; color: white; border-radius: 50%; display: none; align-items: center; justify-content: center; }
.card-radio-group input[type="radio"]:checked + .card-radio .check-badge { display: flex; }
.card-icon { font-size: 18px; margin-bottom: 2px; }
.card-title { font-weight: bold; color: #323130; font-size: 13px; }
.card-desc { font-size: 11px; color: #605e5c; line-height: 1.3; }

/* ─── RESULT BOXES ─────────────────────────────────────────────────────────── */
.result-group { margin-bottom: 15px; }
.result-label { font-weight: bold; color: #323130; font-size: 14px; margin-bottom: 5px; display: block; }
.data-box { display: flex; justify-content: space-between; align-items: center; background: #f3f2f1; border: 1px solid #e1dfdd; padding: 10px 15px; border-radius: 6px; word-break: break-all; }
.data-value { font-family: monospace; font-size: 14px; color: #0078D4; }
.data-value.pwd { color: #d83b01; font-weight: bold; letter-spacing: 1px; font-size: 16px; }
.icon-copy-btn { background: transparent; border: none; cursor: pointer; color: #0078D4; padding: 6px; transition: all 0.2s ease; border-radius: 4px; flex-shrink: 0; margin-left: 15px; display: flex; align-items: center; justify-content: center; }
.icon-copy-btn:hover { background: #e1dfdd; transform: scale(1.1); }

/* ─── UTILITY CLASSES (replace former inline styles in index.html) ────────── */
.hidden { display: none; }
.header-brand { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 80px; object-fit: contain; }
.portal-title { margin: 0; font-size: 1.2rem; color: #323130; border-left: 2px solid #e1dfdd; padding-left: 15px; }
.user-info-text { color: #666; font-size: 0.85em; margin-top: 4px; }
.status-text { margin-bottom: 15px; font-weight: bold; }
.link-container { display: none; margin-top: 15px; }
.help-text { font-size: 0.9em; color: #666; }

/* ─── DYNAMIC CONTENT (replace inline styles generated in app.js) ─────────── */
.copy-svg { width: 18px; height: 18px; }
.share-link-anchor { color: inherit; text-decoration: none; }
.security-notice { margin-top: 20px; padding: 12px; background-color: #fff4ce; border-left: 4px solid #d83b01; font-size: 0.9em; color: #323130; border-radius: 0 4px 4px 0; }
.notice-link { color: #0078D4; font-weight: bold; }
.msg-success { color: green; }
.msg-error { color: red; }
