body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f1f3f4;
}

/* Top bar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: white;
    border-bottom: 1px solid #ddd;
}

/* Container */
.container {
    padding: 20px;
}

/* Upload button */
.upload-box {
    margin-bottom: 20px;
}

.upload-box input[type="file"] {
    display: none;
}

.upload-label {
    background: #1a73e8;
    color: white;
    padding: 10px 18px;
    border-radius: 24px;
    cursor: pointer;
    display: inline-block;
}

.upload-label:hover {
    background: #1557b0;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 160px);
    gap: 16px;
}

/* Card */
.file-card {
    background: white;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: 0.2s;
    position: relative;
}

.file-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Preview */
.file-preview {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview img {
    max-width: 100%;
    max-height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

/* Icon */
.file-icon {
    font-size: 40px;
}

/* Name */
.file-name {
    font-size: 13px;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Actions */
.file-actions {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    opacity: 0;
}

.file-card:hover .file-actions {
    opacity: 1;
}

.file-actions a {
    font-size: 12px;
    color: #1a73e8;
    text-decoration: none;
}
.thumb-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}