/* ===== RESET ===== */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto;
}

body{
background:#f6f7fb;
color:#111;
}

/* ===== LAYOUT ===== */

.app{
display:flex;
min-height:100vh;
}

/* ===== SIDEBAR ===== */

.sidebar{
width:260px;
background:#fff;
border-right:1px solid #eee;
padding:24px;
transition:.3s;
}

.logo{
font-weight:600;
font-size:20px;
margin-bottom:20px;
}

nav a{
display:block;
padding:10px;
border-radius:10px;
color:#555;
cursor:pointer;
transition:.2s;
}

nav a:hover{
background:#f3f4f7;
}

nav a.active{
background:#f3f4f7;
font-weight:600;
}

.nav-title{
margin:16px 0 6px;
font-size:12px;
color:#aaa;
}

/* ===== MAIN ===== */

.main{
flex:1;
display:flex;
flex-direction:column;
}

/* HEADER */

.header{
position:sticky;
top:0;
background:#fff;
padding:16px 24px;
border-bottom:1px solid #eee;
display:flex;
align-items:center;
gap:12px;
z-index:10;
}

.menu-toggle{
display:none;
font-size:22px;
cursor:pointer;
}

.search{
flex:1;
max-width:400px;
padding:10px 14px;
border-radius:12px;
border:1px solid #eee;
background:rgba(255,255,255,0.7);
backdrop-filter:blur(10px);
}

.balance{
border:1px solid #ddd;
padding:8px 14px;
border-radius:12px;
font-size:14px;
}

.avatar{
width:36px;
height:36px;
border-radius:50%;
background:#222;
color:#fff;
display:flex;
align-items:center;
justify-content:center;
font-size:14px;
}

/* CONTENT */

.content{
padding:32px;
}

.content-header{
display:flex;
justify-content:space-between;
margin-bottom:24px;
flex-wrap:wrap;
gap:10px;
}

.btn{
padding:8px 14px;
border-radius:10px;
cursor:pointer;
border:none;
}

.btn.primary{
background:#8b5a2b;
color:white;
}

.btn.ghost{
background:white;
border:1px solid #ddd;
}

/* GRID */

.grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:24px;
}

.card{
background:white;
padding:20px;
border-radius:16px;
border:1px solid #eee;
transition:.25s;
}

.card:hover{
transform:translateY(-4px);
box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

.card-tags{
margin-bottom:10px;
}

.tag{
padding:4px 10px;
border-radius:6px;
font-size:12px;
margin-right:5px;
}

.yellow{background:#fff5cc;}
.blue{background:#e6edff;}
.green{background:#e2f7ec;}
.purple{background:#f1e6ff;}
.orange{background:#ffe7d6;}

.card h3{
margin-bottom:10px;
}

.card p{
color:#666;
margin-bottom:16px;
}

.card-footer{
display:flex;
justify-content:space-between;
border-top:1px solid #eee;
padding-top:12px;
font-size:13px;
color:#777;
}

/* TABLET */

@media(max-width:1100px){
.grid{
grid-template-columns:repeat(2,1fr);
}
}

/* MOBILE */

@media(max-width:768px){

.sidebar{
position:fixed;
left:-260px;
height:100%;
z-index:100;
}

.sidebar.active{
left:0;
}

.menu-toggle{
display:block;
}

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

}
