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

body{
font-family:Arial, Helvetica, sans-serif;
background:#f3f4f8;
color:#333;
}

/* TOPBAR */

.topbar{
background:#a3008c;
color:white;
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 40px;
}

.logo{
font-size:20px;
font-weight:bold;
}

.menu{
font-size:14px;
opacity:0.9;
}

.auth{
display:flex;
align-items:center;
gap:15px;
}

.premium{
background:#ffa726;
border:none;
padding:8px 14px;
border-radius:20px;
color:white;
cursor:pointer;
}

/* MAIN AREA */

.main{
max-width:1200px;
margin:auto;
padding:40px;
text-align:center;
}

.title h1{
font-size:42px;
margin-bottom:10px;
}

.title p{
color:#666;
}

/* EMAIL BOX */

.email-box{
margin-top:20px;
display:flex;
justify-content:center;
gap:10px;
}

.email-box input{
width:380px;
padding:12px;
font-size:16px;
border-radius:10px;
border:1px solid #ddd;
background:white;
}

.email-box button{
padding:10px;
border-radius:10px;
border:none;
cursor:pointer;
}

/* ACTION BUTTONS */

.actions{
margin-top:15px;
color:#555;
font-size:14px;
}

.actions span{
margin:0 12px;
cursor:pointer;
}

.actions span:hover{
text-decoration:underline;
}

/* LAYOUT */

.layout{
margin-top:40px;
display:grid;
grid-template-columns:220px 1fr 220px;
gap:20px;
}

/* SIDEBAR */

.sidebar{
background:white;
border-radius:10px;
padding:20px;
box-shadow:0 2px 6px rgba(0,0,0,0.05);
text-align:left;
}

.sidebar h3{
font-size:16px;
margin-bottom:15px;
}

.item{
padding:10px 0;
border-bottom:1px solid #eee;
font-size:14px;
cursor:pointer;
}

.item:hover{
color:#5c3fb4;
}

/* INBOX */

.inbox{
background:white;
border-radius:10px;
padding:20px;
box-shadow:0 2px 8px rgba(0,0,0,0.05);
min-height:300px;
}

.inbox-header{
display:flex;
justify-content:space-between;
margin-bottom:20px;
font-weight:bold;
}

.inbox-header button{
border:none;
background:none;
cursor:pointer;
color:#666;
}

/* EMPTY STATE */

.empty{
text-align:center;
color:#777;
padding:60px;
}

.loader{
width:22px;
height:22px;
border:3px solid #ccc;
border-top:3px solid #666;
border-radius:50%;
margin:auto;
margin-bottom:10px;
animation:spin 1s linear infinite;
}

/* EMAIL MESSAGE */

.mail{
text-align:left;
padding:10px 0;
}

.mail pre{
white-space:pre-wrap;
font-size:13px;
background:#f6f6f6;
padding:10px;
border-radius:6px;
margin-top:6px;
}

/* ANIMATION */

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

/* MOBILE */

@media(max-width:1000px){

.layout{
grid-template-columns:1fr;
}

.sidebar{
display:none;
}

.email-box input{
width:100%;
}

.active {
    background:#e3f2fd;
}

}