body{
  margin:0;
  font-family:'Poppins', sans-serif;
  background:#0f172a;
  color:white;
}

/* layout */
.dashboard{
  display:flex;
}

/* sidebar */
.sidebar{
  width:220px;
  height:100vh;
  background:#111827;
  padding:20px;
}

.sidebar h2{
  color:#00d4ff;
  margin-bottom:20px;
}

.sidebar a{
  display:block;
  color:white;
  text-decoration:none;
  padding:10px;
  margin:5px 0;
  border-radius:6px;
  font-size:14px;
}

.sidebar a:hover,
.sidebar a.active{
  background:#00d4ff;
  color:black;
}

.logout{
  margin-top:20px;
  color:#ff4d4d;
}

/* main */
.main{
  flex:1;
  padding:20px;
}

/* topbar */
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.topbar input{
  padding:10px;
  border-radius:8px;
  border:none;
  width:200px;
}

/* cards */
.cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
  margin-top:20px;
}

.card{
  background:#1f2937;
  padding:20px;
  border-radius:12px;
  text-align:center;
  transition:0.3s;
}

.card:hover{
  transform:translateY(-5px);
  background:#293548;
}

.card h3{
  font-size:14px;
  opacity:0.8;
}

.card p{
  font-size:22px;
  font-weight:bold;
  color:#00d4ff;
}

/* upload box */
.upload-box{
  margin-top:25px;
  background:#1f2937;
  padding:25px;
  border-radius:12px;
  text-align:center;
}

.upload-box button{
  margin-top:10px;
  padding:10px 20px;
  background:#00d4ff;
  border:none;
  border-radius:8px;
  cursor:pointer;
}
.upload-area{
  margin-top:20px;
}



.drop-box{
  background:#1f2937;
  padding:40px;
  border-radius:12px;
  text-align:center;
  border:2px dashed #00d4ff;
}

.drop-box input{
  margin-top:10px;
  color:white;
}

.form-box{
  margin-top:25px;
  background:#1f2937;
  padding:20px;
  border-radius:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.form-box input,
.form-box select,
.form-box textarea{
  padding:12px;
  border:none;
  border-radius:8px;
  outline:none;
}

.form-box textarea{
  height:80px;
}

.form-box button{
  background:#00d4ff;
  border:none;
  padding:12px;
  border-radius:8px;
  cursor:pointer;
}
.analysis-box{
  margin-top:30px;
  background:#1f2937;
  padding:30px;
  border-radius:12px;
  text-align:center;
}

/* loader circle */
.loader{
  margin:20px auto;
  width:50px;
  height:50px;
  border:5px solid #333;
  border-top:5px solid #00d4ff;
  border-radius:50%;
  animation:spin 1s linear infinite;
}

@keyframes spin{
  0%{transform:rotate(0deg);}
  100%{transform:rotate(360deg);}
}

/* progress bar */
.progress-bar{
  width:100%;
  height:12px;
  background:#333;
  border-radius:20px;
  margin:20px 0;
  overflow:hidden;
}

.progress{
  height:100%;
  width:0%;
  background:#00d4ff;
  transition:0.2s;
}

.analysis-box button{
  background:#00d4ff;
  border:none;
  padding:12px 20px;
  border-radius:8px;
  cursor:pointer;
}
.result-box{
  margin-top:25px;
  background:#1f2937;
  padding:30px;
  border-radius:12px;
  text-align:center;
}

/* status */
.status{
  padding:10px;
  border-radius:8px;
  margin:15px 0;
  font-weight:bold;
}

.status.fake{
  background:#ff4d4d;
  color:white;
}

.status.real{
  background:#22c55e;
  color:white;
}

/* confidence bar */
.confidence-bar{
  width:100%;
  height:15px;
  background:#333;
  border-radius:20px;
  overflow:hidden;
  margin:10px 0;
}

.confidence-fill{
  width:87%;
  height:100%;
  background:#ff4d4d;
}

/* heatmap box */
.heatmap{
  margin-top:20px;
  padding:20px;
  background:#111827;
  border-radius:10px;
  border:1px dashed #00d4ff;
}

/* button */
.result-box button{
  margin-top:20px;
  padding:12px 20px;
  background:#00d4ff;
  border:none;
  border-radius:8px;
  cursor:pointer;
}
.chart-box{
  margin-top:30px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

canvas{
  background:#1f2937;
  padding:20px;
  border-radius:12px;
}
.report-container{
  margin-top:25px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
}

.report-card{
  background:#1f2937;
  padding:20px;
  border-radius:12px;
  text-align:center;
  transition:0.3s;
}

.report-card:hover{
  transform:translateY(-5px);
}

.report-card h3{
  color:#00d4ff;
}

.report-card p{
  font-size:14px;
  opacity:0.9;
}

.report-card button{
  margin-top:10px;
  padding:10px 15px;
  background:#00d4ff;
  border:none;
  border-radius:8px;
  cursor:pointer;
}
/* profile */
.profile-box{
  margin-top:25px;
  background:#1f2937;
  padding:30px;
  border-radius:12px;
  text-align:center;
}

.avatar{
  width:80px;
  height:80px;
  background:#00d4ff;
  color:black;
  font-weight:bold;
  font-size:24px;
  display:flex;
  justify-content:center;
  align-items:center;
  border-radius:50%;
  margin:0 auto 10px auto;
}

.profile-details{
  margin-top:15px;
  font-size:14px;
  opacity:0.9;
}

.profile-box button{
  margin-top:15px;
  padding:10px 20px;
  background:#00d4ff;
  border:none;
  border-radius:8px;
  cursor:pointer;
}

/* settings */
.settings-box{
  margin-top:25px;
  background:#1f2937;
  padding:25px;
  border-radius:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.settings-box select,
.settings-box input{
  padding:12px;
  border:none;
  border-radius:8px;
}

.settings-box button{
  margin-top:10px;
  padding:12px;
  background:#00d4ff;
  border:none;
  border-radius:8px;
  cursor:pointer;
}

body{
    background:linear-gradient(135deg,#f8fafc,#e0e7ff,#ddd6fe);
    min-height:100vh;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:linear-gradient(135deg,#f8fafc,#e0e7ff,#ddd6fe);
    min-height:100vh;
    color:#1f2937;
}

/* Navbar */

header{
    background:#ffffff;
    box-shadow:0 2px 15px rgba(0,0,0,0.08);
    padding:20px 40px;
}

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    font-size:28px;
    font-weight:700;
    color:#7c3aed;
}

nav ul{
    display:flex;
    list-style:none;
    gap:25px;
}

nav ul li a{
    text-decoration:none;
    color:#374151;
    font-weight:500;
}

nav ul li a:hover{
    color:#7c3aed;
}

/* Main Container */

.container{
    max-width:1200px;
    margin:auto;
    padding:40px 20px;
}

/* Cards */

.card{
    background:#ffffff;
    border-radius:20px;
    padding:30px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    margin-bottom:25px;
}

/* Dashboard Stats */

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.stat-card{
    background:white;
    border-radius:20px;
    padding:25px;
    text-align:center;
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
}

.stat-card h2{
    color:#7c3aed;
    font-size:32px;
}

.stat-card p{
    margin-top:10px;
    color:#6b7280;
}

/* Forms */

input,
select,
textarea{
    width:100%;
    padding:14px;
    border:1px solid #d1d5db;
    border-radius:12px;
    margin-top:8px;
    margin-bottom:20px;
    outline:none;
}

input:focus,
textarea:focus{
    border-color:#7c3aed;
}

/* Buttons */

.btn{
    background:#7c3aed;
    color:white;
    border:none;
    padding:14px 30px;
    border-radius:12px;
    cursor:pointer;
    font-size:16px;
    font-weight:600;
}

.btn:hover{
    background:#6d28d9;
}

/* Upload Box */

.upload-box{
    border:2px dashed #7c3aed;
    background:white;
    border-radius:20px;
    padding:50px;
    text-align:center;
}

/* Table */

table{
    width:100%;
    border-collapse:collapse;
    background:white;
}

table th{
    background:#7c3aed;
    color:white;
    padding:15px;
}

table td{
    padding:15px;
    border-bottom:1px solid #e5e7eb;
}

/* Result Status */

.fake{
    color:red;
    font-weight:700;
}

.real{
    color:green;
    font-weight:700;
}

/* Profile */

.profile-card{
    text-align:center;
}

.profile-card img{
    width:120px;
    height:120px;
    border-radius:50%;
    margin-bottom:20px;
}

/* Footer */

footer{
    text-align:center;
    padding:20px;
    color:#6b7280;
}

/* Upload Page */

.upload-area{
    margin-top:30px;
}

.drop-box{
    background:#ffffff;
    border:2px dashed #7c3aed;
    border-radius:20px;
    padding:50px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.drop-box p{
    margin:10px 0;
    font-size:18px;
}

#fileInput{
    margin:20px 0;
}

#fileName{
    margin-top:10px;
    font-weight:600;
    color:#2563eb;
}

.drop-box button,
.form-box button{
    background:#7c3aed;
    color:white;
    border:none;
    padding:14px 30px;
    border-radius:12px;
    cursor:pointer;
    font-size:16px;
    font-weight:600;
}

.drop-box button:hover,
.form-box button:hover{
    background:#6d28d9;
}

.form-box{
    background:white;
    margin-top:30px;
    padding:30px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.form-box input,
.form-box select,
.form-box textarea{
    width:100%;
    padding:14px;
    margin-bottom:18px;
    border:1px solid #d1d5db;
    border-radius:12px;
}

.form-box textarea{
    min-height:120px;
    resize:none;
}

/* Analysis Page */

.analysis-box{
    background:#ffffff;
    padding:40px;
    border-radius:20px;
    margin-top:30px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.analysis-box h2{
    color:#7c3aed;
    margin-bottom:20px;
}

.loader{
    width:80px;
    height:80px;
    border:8px solid #e5e7eb;
    border-top:8px solid #7c3aed;
    border-radius:50%;
    margin:25px auto;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

.progress-bar{
    width:100%;
    height:20px;
    background:#e5e7eb;
    border-radius:20px;
    overflow:hidden;
    margin:25px 0;
}

.progress{
    width:0%;
    height:100%;
    background:#7c3aed;
    border-radius:20px;
}

.analysis-box button{
    background:#7c3aed;
    color:white;
    border:none;
    padding:14px 30px;
    border-radius:12px;
    cursor:pointer;
    font-size:16px;
    font-weight:600;
}

.analysis-box button:hover{
    background:#6d28d9;
}
.white-text{
    color:white;
}

.small-chart{
    width:400px;
    margin:30px auto;
}

.small-chart canvas{
    max-width:300px;
    max-height:300px;
}

.small-chart{
    width:400px;
    margin:40px auto;
    display:flex;
    justify-content:center;
    align-items:center;
}


.small-chart canvas{
    width:300px !important;
    height:300px !important;
}

.chart-box{
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    margin:40px auto;
}


#deepfakeChart{
    width:300px !important;
    height:300px !important;
}
.result-card{
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    margin-top:25px;
}

.status-box{
    text-align:center;
    margin-bottom:30px;
}

.fake-badge{
    display:inline-block;
    background:#fee2e2;
    color:#dc2626;
    padding:12px 35px;
    border-radius:30px;
    font-size:20px;
    font-weight:700;
}

.result-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-top:20px;
}

.info-box{
    background:#f8fafc;
    padding:20px;
    border-radius:15px;
}

.summary-box{
    background:#eef2ff;
    padding:25px;
    border-radius:15px;
    margin-top:25px;
}

.action-buttons{
    display:flex;
    gap:15px;
    margin-top:25px;
    flex-wrap:wrap;
}

.action-buttons button{
    background:#7c3aed;
    color:white;
    border:none;
    padding:14px 25px;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
}

.action-buttons button:hover{
    background:#6d28d9;
}

.profile-card{
    text-align:center;
    color:white;
}

.profile-card h2{
    color:#ffffff;
    font-size:32px;
    font-weight:700;
    margin-top:15px;
}

.profile-card p{
    color:#e2e8f0;
    font-size:16px;
    margin:8px 0;
}

.profile-card .status{
    display:inline-block;
    background:#22c55e;
    color:white;
    padding:8px 18px;
    border-radius:30px;
    font-weight:600;
    margin-top:10px;
}

.avatar{
    width:140px;
    height:140px;
    border-radius:50%;
    border:4px solid #00d4ff;
    object-fit:cover;
}

.main{
    flex:1;
    padding:35px;
    background:#eef4ff;
}

.main h1{
    text-align:center;
    font-size:48px;
    margin-bottom:5px;
}

.main p{
    text-align:center;
}

.result-card,
.result-grid,
.summary-box,
.recommend-box,
.action-buttons{

    width:100%;
    max-width:1200px;
    margin:25px auto;
}

.result-card{
    background:#fff;
    border-radius:20px;
    padding:30px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.result-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.info-box{
    background:#fff;
    border-radius:18px;
    padding:25px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.summary-box,
.recommend-box{
    background:#fff;
    border-radius:18px;
    padding:25px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.action-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
}

.action-buttons button{
    padding:14px 35px;
    border:none;
    border-radius:12px;
    background:#3b82f6;
    color:#fff;
    font-size:16px;
    cursor:pointer;
}


.fake-badge{
    display:inline-block;
    background:#ff4d6d;
    color:#fff;
    padding:10px 25px;
    border-radius:30px;
    font-weight:bold;
    margin-right:10px;
}

h1{
    margin-bottom:5px;
}

p{
    color:#555;
}
/* ===== Reports Page Text Color ===== */

.report-card,
.report-card h2,
.report-card h3,
.report-card h4,
.report-card p,
.report-card span,
.report-card li {
    color: #ffffff !important;
}

.report-card small{
    color:#d9e6ff !important;
}

.report-card strong{
    color:#ffffff !important;
}

.report-card button{
    color:#ffffff;
}

/* Table Header */
.report-table th{
    color:#ffffff;
}

/* Report Details */
.report-details{
    color:#ffffff;
}

/* Download button */
.download-btn{
    color:#ffffff;
    font-weight:600;
}