
/* Modernized MainUi.css - replace your existing drawer-related styles with this file */

body{
margin:0;
font-family:Inter,Arial,sans-serif;
background:#f5f7fa;
color:#222;
}

nav{
background:#0a84ff;
color:#fff;
padding:16px 24px;
display:flex;
flex-wrap:wrap;
justify-content:space-between;
align-items:center;
box-shadow:0 2px 8px rgba(0,0,0,.12);
}

nav h1{
width:100%;
margin:0 0 12px;
text-align:center;
font-size:28px;
}

.nav-buttons{
display:flex;
justify-content:center;
gap:10px;
width:100%;
flex-wrap:wrap;
}

nav button{
background:#fff;
color:#0a84ff;
border:none;
padding:10px 18px;
border-radius:10px;
font-weight:600;
cursor:pointer;
transition:.2s;
}

nav button:hover{background:#edf5ff;}
.report-btn{background:#e53935;color:#fff;}

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

.search-bar-wrapper{
display:flex;
gap:12px;
margin-bottom:24px;
}

#searchInput{
flex:1;
padding:14px 16px;
border:1px solid #d8dce2;
border-radius:12px;
font-size:15px;
}

.filter-btn{
background:#0a84ff;
color:#fff;
border:none;
padding:0 18px;
border-radius:12px;
font-weight:700;
cursor:pointer;
}

.drawer-backdrop{
position:fixed;
inset:0;
background:rgba(0,0,0,.35);
opacity:0;
visibility:hidden;
transition:.25s;
z-index:9998;
}

.drawer-backdrop.show{
opacity:1;
visibility:visible;
}

.filter-drawer{
position:fixed;
top:0;
right:-420px;
width:390px;
max-width:95vw;
height:100vh;
background:#fff;
display:flex;
flex-direction:column;
box-shadow:-10px 0 30px rgba(0,0,0,.18);
transition:right .3s ease;
z-index:9999;
}

.filter-drawer.open{right:0;}

.drawer-header{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px;
border-bottom:1px solid #ececec;
}

.drawer-header h2{
margin:0;
font-size:24px;
}

.drawer-close{
width:38px;
height:38px;
border:none;
border-radius:10px;
background:#f2f2f2;
cursor:pointer;
font-size:18px;
}

.drawer-content{
flex:1;
overflow-y:auto;
padding:20px;
}

.filter-group{
margin-bottom:28px;
}

.filter-group h3{
margin:0 0 14px;
font-size:13px;
text-transform:uppercase;
letter-spacing:.08em;
color:#777;
}

.filter-card{
display:flex;
align-items:center;
gap:14px;
padding:14px;
border:1px solid #e4e7eb;
border-radius:14px;
margin-bottom:12px;
cursor:pointer;
transition:.2s;
}

.filter-card:hover{
background:#f8fbff;
border-color:#0a84ff;
}

.filter-card input{
width:20px;
height:20px;
accent-color:#0a84ff;
}

.filter-card span:nth-child(2){
flex:1;
font-weight:600;
}

.count-badge{
background:#e8f1ff;
color:#0a84ff;
padding:4px 10px;
border-radius:999px;
font-size:13px;
font-weight:700;
}

.drawer-footer{
display:flex;
gap:12px;
padding:20px;
border-top:1px solid #ececec;
}

.drawer-footer button{
flex:1;
padding:14px;
border:none;
border-radius:12px;
font-weight:700;
cursor:pointer;
}

.clear-btn{background:#eceff3;}
.apply-btn{background:#0a84ff;color:#fff;}

.grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
gap:22px;
}

.catalog-item{
background:#fff;
border:1px solid #e5e7eb;
border-radius:16px;
padding:20px;
box-shadow:0 4px 14px rgba(0,0,0,.08);
transition:.2s;
}

.catalog-item:hover{
transform:translateY(-4px);
box-shadow:0 8px 18px rgba(0,0,0,.12);
}

.sound-type-badge{
display:inline-block;
padding:6px 12px;
border-radius:8px;
color:#fff;
font-size:13px;
font-weight:700;
margin-bottom:10px;
}

.item-title{font-size:20px;font-weight:700;}
.item-meta{color:#666;margin:8px 0 14px;}

.playback{
display:flex;
align-items:center;
gap:12px;
flex-wrap:wrap;
}

.progress{
flex:1;
height:8px;
background:#ddd;
border-radius:999px;
overflow:hidden;
}

.progress-fill{
height:100%;
width:0;
background:#0a84ff;
}

.button-row{
display:flex;
gap:10px;
margin-top:16px;
flex-wrap:wrap;
}

.button-row button{
border:none;
padding:10px 16px;
border-radius:10px;
cursor:pointer;
font-weight:600;
}

.download-btn{background:#2ecc71;color:#fff;}
.delete-btn{background:#e53935;color:#fff;}

@media(max-width:700px){
.search-bar-wrapper{flex-direction:column;}
.filter-btn{height:48px;}
.filter-drawer{
width:100%;
max-width:100%;
right:-100%;
}
}
