/* ============================================================
   ESTILOS GLOBALES
   wp-security-reporter/assets/css/style.css
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  min-height: 100vh;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-icon   { font-size: 48px; margin-bottom: 12px; }
.login-title  { font-size: 22px; font-weight: 800; color: #0f172a; }
.login-subtitle { font-size: 13px; color: #64748b; margin: 6px 0 24px; }

/* ============================================================
   MAIN APP PAGE
   ============================================================ */
body.app-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
}

/* --- Page Header --- */
.page-header {
  text-align: center;
  margin-bottom: 32px;
}
.page-header .icon     { font-size: 44px; margin-bottom: 10px; }
.page-header h1        { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.page-header .subtitle { font-size: 14px; color: #60a5fa; margin: 4px 0; }
.page-header .desc     { font-size: 12px; color: #94a3b8; margin-top: 6px; }

/* --- Nav Bar --- */
.navbar {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.navbar a { color: #94a3b8; font-size: 12px; text-decoration: none; }
.navbar a:hover { color: #fff; }

/* --- Main Card --- */
.main-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
  width: 100%;
  max-width: 900px;
  overflow: hidden;
}

/* --- Tabs --- */
.tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
}
.tab-btn {
  flex: 1;
  padding: 14px;
  background: #f8fafc;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all .2s;
  border-bottom: 3px solid transparent;
}
.tab-btn:hover       { background: #f1f5f9; color: #1e293b; }
.tab-btn.active      { background: #fff; color: #2563eb; border-bottom-color: #2563eb; }

.badge-count {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: middle;
}

/* --- Tab Content --- */
.tab-content { display: none; padding: 32px; }
.tab-content.active { display: block; }

/* ============================================================
   UPLOAD AREA
   ============================================================ */
.upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: all .2s;
}
.upload-area:hover,
.upload-area.drag-over {
  border-color: #2563eb;
  background: #eff6ff;
}
.upload-area .upload-icon  { font-size: 48px; margin-bottom: 12px; display: block; }
.upload-area .upload-title { font-weight: 700; font-size: 15px; color: #1e293b; }
.upload-area .upload-desc  { color: #64748b; font-size: 13px; margin: 6px 0 16px; }

/* ============================================================
   JSON PREVIEW BOX
   ============================================================ */
.json-info-box {
  margin-top: 24px;
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
}
.json-info-box .box-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.json-info-box pre {
  font-size: 11px;
  color: #475569;
  line-height: 1.7;
}

/* ============================================================
   PROGRESS / LOADING
   ============================================================ */
.loading-area {
  text-align: center;
  padding: 48px 24px;
  display: none;
}
.loading-area.visible { display: block; }
.loading-area .spin   { font-size: 48px; display: inline-block; animation: spin 2s linear infinite; margin-bottom: 16px; }
.loading-area h3      { font-size: 16px; font-weight: 700; color: #1e293b; }
.loading-area p       { color: #64748b; font-size: 13px; margin-top: 6px; }

.progress-bar-wrap { margin-top: 20px; height: 4px; background: #e2e8f0; border-radius: 2px; overflow: hidden; }
.progress-bar      { height: 100%; background: #2563eb; border-radius: 2px; animation: progress 3s ease-in-out infinite; }

@keyframes spin     { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes progress { 0%{width:0%} 50%{width:70%} 100%{width:100%} }

/* ============================================================
   RESULT AREA
   ============================================================ */
.result-area { display: none; }
.result-area.visible { display: block; }

.result-success {
  text-align: center;
  padding: 24px 0 20px;
}
.result-success .ok-icon { font-size: 48px; margin-bottom: 8px; display: block; }
.result-success h3       { font-size: 16px; font-weight: 700; color: #1e293b; }
.result-success p        { color: #64748b; font-size: 13px; margin-top: 4px; }

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

/* --- Browser Preview --- */
.browser-preview {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
}
.browser-bar {
  background: #1e293b;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.browser-dot.red    { background: #ef4444; }
.browser-dot.yellow { background: #f59e0b; }
.browser-dot.green  { background: #10b981; }
.browser-label { color: #94a3b8; font-size: 11px; margin-left: 8px; }
.browser-preview iframe { width: 100%; height: 420px; border: none; display: block; }

/* ============================================================
   HISTORY TABLE
   ============================================================ */
.history-table-wrap { overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.history-table th { background: #1e293b; color: #e2e8f0; padding: 9px 14px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.history-table td { padding: 9px 14px; border-bottom: 1px solid #e2e8f0; }
.history-table tr:hover td { background: #f8fafc; }
.history-empty { text-align: center; color: #94a3b8; padding: 32px; font-size: 13px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group       { text-align: left; margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.form-group input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #1e293b;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus { border-color: #2563eb; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover         { opacity: .88; transform: translateY(-1px); }
.btn:active        { transform: translateY(0); }
.btn-primary       { background: #2563eb; color: #fff; }
.btn-dark          { background: #0f172a; color: #fff; }
.btn-ghost         { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.btn-danger        { background: #dc2626; color: #fff; }
.btn-full          { width: 100%; justify-content: center; margin-top: 4px; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ============================================================
   FOOTER
   ============================================================ */
.page-footer {
  color: #475569;
  font-size: 11px;
  text-align: center;
  margin-top: 24px;
  padding-bottom: 16px;
}
.page-footer strong { color: #94a3b8; }

