* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { background-color: #f4f6f8; color: #333; line-height: 1.6; }
a { text-decoration: none; color: #007bff; }
.container { max-width: 1200px; margin: 0 auto; padding: 15px; }
header { background: #fff; padding: 15px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.05); margin-bottom: 20px; }
.navbar { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 1.5rem; font-weight: bold; color: #333; }
.btn { padding: 8px 15px; border-radius: 4px; border: none; cursor: pointer; font-size: 0.9rem; transition: 0.2s; display: inline-block; }
.btn-primary { background: #007bff; color: #fff; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-sm { padding: 4px 8px; font-size: 0.8rem; }
.card { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.file-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.2s; }
.file-card:hover { transform: translateY(-3px); }
.file-img { width: 100%; height: 160px; object-fit: cover; background: #eee; }
.file-info { padding: 15px; }
.file-title { font-weight: bold; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 0.8rem; color: #777; margin-bottom: 10px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-control { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 20px; }
.stat-box { background: #f8f9fa; padding: 15px; text-align: center; border-radius: 4px; }
.stat-num { font-size: 1.5rem; font-weight: bold; color: #007bff; }
.pagination { margin-top: 20px; display: flex; justify-content: center; gap: 5px; }
.page-link { padding: 8px 12px; border: 1px solid #ddd; background: #fff; color: #333; }
.page-link.active { background: #007bff; color: #fff; border-color: #007bff; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center; }
.modal-content { background: #fff; padding: 25px; border-radius: 8px; width: 90%; max-width: 500px; }
.close { float: right; cursor: pointer; font-size: 1.5rem; }
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
th { background-color: #f8f9fa; }
.alert { padding: 10px; margin-bottom: 15px; border-radius: 4px; background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr; } .navbar { flex-direction: column; gap: 10px; } }
