*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:"Segoe UI",sans-serif;
    background:#F4F7FB;
    color:#1E293B;
    overflow-x:hidden;
}

nav{
    background:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 50px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.logo{
    color:#2563EB;
}

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

nav a{
    text-decoration:none;
    color:#1E293B;
    font-weight:600;
}

nav a:hover{
    color:#2563EB;
}

.hero{
    text-align:center;
    padding:100px 20px;
}

.hero h1{
    font-size:60px;
    color:#2563EB;
}

.hero p{
    margin-top:20px;
    font-size:20px;
    color:#64748B;
}

.btn,
button{
    display:inline-block;
    padding:12px 25px;
    background:#2563EB;
    color:#fff;
    border:none;
    border-radius:10px;
    cursor:pointer;
    text-decoration:none;
}

button:hover,
.btn:hover{
    opacity:0.9;
}

.page-title{
    text-align:center;
    margin:25px 0;
    color:#1F2937;
}

.center{
    display:flex;
    justify-content:center;
    gap:15px;
    margin:20px 0;
}

.card,
.stat-card,
.chart-card,
.table-card,
.result-card{
    background:#fff;
    border-radius:15px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.features{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:25px;
    padding:50px;
}

.card{
    width:280px;
    padding:25px;
    transition:0.3s;
}

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

.result-card{
    width:850px;
    max-width:90%;
    margin:20px auto;
    padding:25px;
    background:white;
    border-radius:15px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}



.camera-controls{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    margin:20px 0;
}



#video{
    display:none;
    margin:15px auto;
    width:400px;
    max-width:100%;
    height:auto;
    border-radius:12px;
}

#capturedImage{
    display:block;
    margin:15px auto;
    width:300px;
    max-width:100%;
    height:auto;
    border-radius:12px;
}

#uploadedPreview{
    display:block;
    margin:15px auto;
    width:300px;
    max-width:100%;
    height:auto;
    border-radius:12px;
}

video{
    max-width:100%;
    border-radius:15px;
}

.dashboard-container{
    max-width:1400px;
    margin:auto;
}

.stats-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    margin-bottom:30px;
}

.stat-card{
    padding:25px;
}

.stat-card h3{
    color:#6B7280;
}

.stat-card h2{
    margin-top:15px;
    color:#1E3A8A;
}

.charts-row{
    display:flex;
    justify-content:center;
    margin-bottom:30px;
}

.chart-card{
    width:700px;
    max-width:100%;
    padding:25px;
}

.chart-card canvas{
    height:350px !important;
}

.table-card{
    padding:25px;
}

.table-container{
    overflow-x:auto;
}

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

th{
    background:#1E3A8A;
    color:white;
    padding:15px;
}

td{
    padding:12px;
    text-align:center;
    border-bottom:1px solid #E5E7EB;
    max-width:220px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

tr:nth-child(even){
    background:#F9FAFB;
}

tr:hover{
    background:#F3F4F6;
}

.emotion-badge{
    background:#DBEAFE;
    color:#1E40AF;
    padding:6px 12px;
    border-radius:20px;
    font-weight:bold;
}