body {
    font-family: Arial, sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 20px;
}
.container {
    max-width: 900px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
h1, h2 { text-align: center; }
input, select, button { padding: 8px; margin: 5px 0; font-size: 14px; }
button { cursor: pointer; background: #007bff; color: white; border: none; border-radius: 5px; }
button:hover { background: #0056b3; }
.progress-container { margin-bottom: 15px; padding:10px; border:1px solid #ddd; border-radius:5px; background:#f9f9f9; display:flex; align-items:center; gap:10px; flex-wrap: wrap; }
.progress-bar { width:0%; height:20px; background: #28a745; text-align:center; color:white; line-height:20px; border-radius:5px; flex:1; }
.status { font-size: 14px; }
.thumb { max-width: 80px; max-height: 80px; display:block; border:1px solid #ccc; padding:2px; border-radius:5px; }
.file-info { flex:1; }
#userFiles {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.cache-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.cache-thumb {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}
#gallery-wrapper {
    width: 80%;
    margin: 0 auto;
    padding-top: 20px;
}

#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

#gallery img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    transition: 0.2s;
}

#gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.pagination button {
    padding: 6px 14px;
    cursor: pointer;
}
