*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:Segoe UI, Arial;
background:#0f172a;
color:white;
min-height:100vh;
display:flex;
flex-direction:column;
}

header{
background:#020617;
padding:15px 30px;
display:flex;
justify-content:space-between;
align-items:center;
border-bottom:1px solid #1e293b;
}

.logo{
font-size:20px;
font-weight:bold;
}

nav a{
color:#cbd5f5;
margin-left:15px;
text-decoration:none;
font-size:14px;
}

nav a:hover{
color:white;
}

.container{
width:1100px;
height:700px;

margin:40px auto;
padding:25px;

background:#0f172a;
border-radius:10px;

box-shadow:0 0 10px rgba(0,0,0,0.4);

overflow-y:auto;
overflow-x:hidden;
}
.container::-webkit-scrollbar{
width:6px;
}

.container::-webkit-scrollbar-thumb{
background:#2563eb;
border-radius:10px;
}
h2{
margin-bottom:20px;
}

form{
margin-bottom:25px;
}

input[type=file]{
background:#020617;
color:white;
border:1px solid #334155;
padding:8px;
border-radius:6px;
}

button{
background:#2563eb;
border:none;
padding:10px 20px;
border-radius:6px;
color:white;
cursor:pointer;
margin-top:10px;
}

button:hover{
background:#1d4ed8;
}

.gallery{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
gap:15px;
margin-top:20px;
}

.gallery img{
width:100%;
border-radius:8px;
transition:0.2s;
}

.gallery img:hover{
transform:scale(1.05);
}

input{
width:100%;
padding:10px;
margin:5px 0;
border-radius:6px;
border:1px solid #334155;
background:#020617;
color:white;
}

/* footer */

footer{
margin-top:auto;
background:#020617;
border-top:1px solid #1e293b;
}

.footer-container{
max-width:1000px;
margin:auto;
padding:20px;
display:flex;
justify-content:space-between;
align-items:center;
font-size:14px;
color:#94a3b8;
}

.footer-center a{
margin:0 10px;
color:#94a3b8;
text-decoration:none;
}

.footer-center a:hover{
color:white;
}
.gallery-item{
display:block;
overflow:hidden;
border-radius:6px;
}

.gallery-item img{
transition:0.2s;
}

.gallery-item img:hover{
transform:scale(1.05);
}

.admin-tabs{
margin-bottom:20px;
}

.admin-tabs a{
margin-right:15px;
padding:8px 15px;
background:#1e293b;
border-radius:6px;
text-decoration:none;
color:white;
}

.admin-card{
background:#1e293b;
padding:10px;
margin:5px 0;
border-radius:6px;
}.admin-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:15px;
margin-top:20px;
}

.admin-image{
width:100%;
aspect-ratio:1/1;
overflow:hidden;
border-radius:8px;
cursor:pointer;
}

.admin-image img{
width:100%;
height:100%;
object-fit:cover;
}

.popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.8);
display:none;
align-items:center;
justify-content:center;
}

.popup-content{
background:#111;
padding:20px;
border-radius:10px;
max-width:90vw;
max-height:90vh;
overflow:auto;
text-align:center;
}

.popup-content img{
max-width:100%;
max-height:60vh;
object-fit:contain;
border-radius:8px;
}

.popup-actions{
margin-top:15px;
}

.popup-actions button{
margin:5px;
padding:10px 20px;
background:#2563eb;
border:none;
color:white;
border-radius:6px;
cursor:pointer;
}

.popup-actions button:hover{
background:#1d4ed8;
}
.users-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:15px;
}

.user-card{
background:#1e293b;
padding:15px;
border-radius:10px;
cursor:pointer;
text-align:center;
}

.user-avatar{
width:50px;
height:50px;
background:#2563eb;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
margin:auto;
font-size:20px;
}

.user-name{
margin-top:8px;
font-weight:bold;
}
.container{
max-width:1000px;
margin:auto;
padding:40px 20px;
}

/* admin grid */

.admin-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:15px;
}

.admin-image{
position:relative;
aspect-ratio:1/1;
overflow:hidden;
border-radius:8px;
cursor:pointer;
}

.admin-image img{
width:100%;
height:100%;
object-fit:cover;
}

.image-info{
position:absolute;
bottom:0;
left:0;
width:100%;
background:rgba(0,0,0,0.7);
color:white;
font-size:12px;
padding:5px;
opacity:0;
transition:0.2s;
}

.admin-image:hover .image-info{
opacity:1;
}

/* users */

.users-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:15px;
}

.user-card{
background:#1e293b;
padding:15px;
border-radius:10px;
cursor:pointer;
text-align:center;
}

.user-avatar{
width:50px;
height:50px;
background:#2563eb;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
margin:auto;
font-size:20px;
}

.user-name{
margin-top:8px;
font-weight:bold;
}

/* popup */

.popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.8);
display:none;
align-items:center;
justify-content:center;
}

.popup-content{
background:#111;
padding:20px;
border-radius:10px;
max-width:90vw;
max-height:90vh;
overflow:auto;
text-align:center;
}

.popup-content img{
max-width:100%;
max-height:60vh;
object-fit:contain;
}

/* user popup */

.user-popup-header{
display:flex;
gap:15px;
align-items:center;
margin-bottom:20px;
}

.user-avatar-big{
width:60px;
height:60px;
background:#2563eb;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:22px;
}

.user-stats{
display:flex;
gap:15px;
margin-bottom:20px;
}

.stat-box{
background:#1e293b;
padding:10px;
border-radius:6px;
text-align:center;
}

.login-history{
max-height:200px;
overflow:auto;
text-align:left;
}

.log-row{
padding:5px;
border-bottom:1px solid #333;
font-size:12px;
}
h2{
margin-top:0;
margin-bottom:20px;
}

form{
margin-bottom:20px;
}

button{
padding:10px 20px;
background:#2563eb;
border:none;
border-radius:6px;
color:white;
cursor:pointer;
}

button:hover{
background:#1d4ed8;
}
.search-box{
margin-bottom:20px;
display:flex;
gap:10px;
}

.search-box input{
flex:1;
padding:8px;
}

.user-header{
display:flex;
align-items:center;
gap:15px;
margin-bottom:20px;
}

.user-avatar-big{
width:60px;
height:60px;
background:#2563eb;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:22px;
}

.user-stats{
display:flex;
gap:15px;
margin-bottom:20px;
}

.stat{
background:#1e293b;
padding:15px;
border-radius:8px;
cursor:pointer;
text-align:center;
}

.popup-buttons{
margin-top:20px;
display:flex;
gap:10px;
}.container{
width:1100px;
height:700px;
margin:40px auto;
padding:30px;
background:#0f172a;
border-radius:10px;
display:flex;
flex-direction:column;
align-items:center;
overflow-y:auto;
}

.admin-tabs{
display:flex;
justify-content:center;
gap:10px;
margin-bottom:20px;
}

.search-box{
display:flex;
justify-content:center;
gap:10px;
margin-bottom:20px;
width:100%;
}

.users-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:15px;
width:100%;
}

.user-card{
background:#1e293b;
padding:15px;
border-radius:10px;
cursor:pointer;
text-align:center;
}

.user-avatar{
width:50px;
height:50px;
background:#2563eb;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
margin:auto;
font-size:20px;
}

.admin-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:15px;
width:100%;
}

.admin-image{
position:relative;
aspect-ratio:1/1;
overflow:hidden;
border-radius:8px;
}

.admin-image img{
width:100%;
height:100%;
object-fit:cover;
}

.image-info{
position:absolute;
bottom:0;
left:0;
width:100%;
background:rgba(0,0,0,0.7);
padding:5px;
font-size:12px;
}

.popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.8);
display:none;
align-items:center;
justify-content:center;
}

.popup-content{
background:#111;
padding:20px;
border-radius:10px;
max-width:500px;
width:100%;
}

.uploads-popup{
max-width:900px;
}

.login-history{
max-height:200px;
overflow:auto;
}

.log-row{
padding:5px;
border-bottom:1px solid #333;
font-size:12px;
}
.admin-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:15px;
}

.admin-image{
aspect-ratio:1/1;
overflow:hidden;
border-radius:8px;
cursor:pointer;
}

.admin-image img{
width:100%;
height:100%;
object-fit:cover;
}

.popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.8);
display:none;
align-items:center;
justify-content:center;
}

.popup-content{
background:#111;
padding:20px;
border-radius:10px;
text-align:center;
}

.popup-content img{
max-width:500px;
max-height:60vh;
}
.download-grid{
display:flex;
gap:30px;
margin-top:30px;
flex-wrap:wrap;
}

.download-card{
background:#1e293b;
padding:25px;
border-radius:10px;
width:300px;
color:white;
}

.download-card h2{
margin-bottom:10px;
}

.download-card ul{
margin:10px 0;
padding-left:20px;
}

.download-btn{
display:inline-block;
margin-top:15px;
padding:10px 20px;
background:#3b82f6;
color:white;
text-decoration:none;
border-radius:6px;
}

.download-btn:hover{
background:#2563eb;
}