/* ================================
   RESET
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* ================================
   PAGE BACKGROUND
================================ */
body {
    background-color: #f4f9ff;
    color: #333;
    line-height: 1.6;
}

/* ================================
   MAIN CONTAINER
================================ */
.container {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ================================
   HEADER
================================ */
h1 {
    text-align: center;
    color: #0a66c2;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-bottom: 30px;
}

/* ================================
   DASHBOARD (NEW FEATURE 1)
================================ */
.dashboard {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.dashboard h2 {
    color: #0a66c2;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.danger {
    border-left: 5px solid #e74c3c;
}

.stat-card.warning {
    border-left: 5px solid #f39c12;
}

.stat-card.success {
    border-left: 5px solid #2ecc71;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #0a66c2;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-height: 300px;
}

/* ================================
   INPUT TABS (NEW FEATURE 2)
================================ */
.input-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: #e8ecf1;
    color: #333;
    font-size: 15px;
    font-weight: normal;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #0a66c2;
    color: white;
    font-weight: bold;
}

.tab-btn:hover:not(.active) {
    background: #d4dae3;
}

/* ================================
   INPUT SECTION
================================ */
.input-section label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

textarea {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    resize: vertical;
}

/* ================================
   UPLOAD AREA (NEW FEATURE 2)
================================ */
.upload-area {
    border: 3px dashed #0a66c2;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    background: #f8f9ff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.upload-area:hover {
    background: #e8f1ff;
    border-color: #084c9e;
}

.upload-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

#imagePreview {
    margin: 15px 0;
    text-align: center;
}

#previewImg {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.clear-btn {
    background: #e74c3c;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    width: auto;
}

.clear-btn:hover {
    background: #c0392b;
}

.ocr-status {
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 14px;
}

/* ================================
   BUTTONS (GLOBAL)
================================ */
button {
    width: 100%;
    padding: 12px;
    background-color: #0a66c2;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background-color: #084c9e;
}

/* ================================
   EXPORT BUTTON (NEW FEATURE 3)
================================ */
.export-btn {
    background-color: #2ecc71;
}

.export-btn:hover {
    background-color: #27ae60;
}

/* ================================
   RESULT SECTION
================================ */
.result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
    font-size: 14px;
}

/* Risk colors */
.safe {
    background-color: #e6f7e6;
    border-left: 5px solid #2ecc71;
}

.suspicious {
    background-color: #fff4e5;
    border-left: 5px solid #f39c12;
}

.scam {
    background-color: #fdecea;
    border-left: 5px solid #e74c3c;
}

/* ================================
   RISK METER (CONFIDENCE BAR)
================================ */
.risk-meter {
    width: 100%;
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    margin-top: 15px;
    margin-bottom: 10px;
    overflow: hidden;
    display: none;
    position: relative;
}

#riskFill {
    height: 100%;
    width: 0%;
    transition: width 0.8s ease-in-out;
    background: linear-gradient(90deg, #16a34a, #facc15, #dc2626);
    border-radius: 10px;
}

/* ================================
   AWARENESS CAMPAIGN SECTION
================================ */
.awareness {
    margin-top: 30px;
    padding: 20px;
    background: #f9fbff;
    border-radius: 8px;
    border: 1px solid #e0e6ef;
}

.awareness h2 {
    color: #0a66c2;
    margin-bottom: 5px;
}

.awareness .subtitle {
    font-size: 13px;
    margin-bottom: 15px;
}

/* Awareness buttons */
.awareness-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.awareness-buttons button {
    flex: 1;
    font-size: 14px;
    padding: 10px;
}

/* Awareness output box */
.awareness-output {
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0a66c2;
    font-size: 14px;
    margin-bottom: 10px;
    white-space: pre-line;
}

/* Copy button */
.copy-btn {
    background-color: #2ecc71;
    font-size: 14px;
}

.copy-btn:hover {
    background-color: #27ae60;
}

/* ================================
   EDUCATION SECTION
================================ */
.education {
    margin-top: 30px;
}

.education h2 {
    margin-bottom: 10px;
    color: #0a66c2;
}

.education ul {
    padding-left: 20px;
}

.education li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* ================================
   FOOTER
================================ */
.footer {
    margin-top: 30px;
    font-size: 12px;
    text-align: center;
    color: #777;
}

/* ================================
   RESPONSIVE DESIGN
================================ */
@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 20px;
    }

    .awareness-buttons {
        flex-direction: column;
    }

    button {
        font-size: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .input-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-radius: 8px;
    }
}
/* ================================
   UI ENHANCEMENTS (ADD ONLY)
================================ */

body {
    background: radial-gradient(circle at top, #eef4ff, #f4f9ff);
}

.container {
    animation: fadeUp 0.8s ease;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
h1 {
    font-size: 2.4rem;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 12px rgba(10, 102, 194, 0.25);
}

.subtitle {
    max-width: 520px;
    margin: 0 auto 30px auto;
}
.dashboard {
    position: relative;
    overflow: hidden;
}

.dashboard::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
    pointer-events: none;
}
.dashboard h2 {
    font-weight: 700;
    letter-spacing: 0.4px;
}
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(10,102,194,0.08),
        transparent
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::before {
    opacity: 1;
}
button {
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.25);
}

button:active {
    transform: scale(0.98);
}
.export-btn,
.copy-btn {
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
}
.upload-area {
    position: relative;
}

.upload-area::after {
    content: "AI OCR READY";
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 10px;
    font-weight: bold;
    color: #0a66c2;
    opacity: 0.6;
}
.result {
    animation: resultPop 0.5s ease;
}

@keyframes resultPop {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.risk-meter {
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
}
.awareness {
    background: linear-gradient(135deg, #f9fbff, #eef4ff);
}

.awareness-output {
    line-height: 1.6;
}
/* ================================
   HERO SECTION FIX
================================ */

.hero {
  background: linear-gradient(135deg, #eef5ff, #f8fbff);
  padding: 80px 20px;
}

.hero-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Title */
.hero h1,
.hero h2 {
  font-size: 3rem;
  font-weight: 800;
  color: #0b5ed7;
  line-height: 1.2;
}

/* Subtitle */
.hero p {
  font-size: 1.1rem;
  color: #444;
  max-width: 750px;
  margin: 0 auto;
}

/* CTA buttons */
.hero a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  margin: 6px;
}

.hero a:first-of-type {
  background: #0b5ed7;
  color: #fff;
}

.hero a:last-of-type {
  background: #e7f1ff;
  color: #0b5ed7;
}

/* Stats row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.hero-stat {
  background: #ffffff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hero-stat h3 {
  font-size: 1.6rem;
  color: #0b5ed7;
}

.hero-stat span {
  font-size: 0.9rem;
  color: #666;
}

/* Mobile fix */
@media (max-width: 768px) {
  .hero h1,
  .hero h2 {
    font-size: 2.2rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}
