/* assets/css/style.css */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f4f4f4; color: #333; line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* Navbar */
.navbar { background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 70px; }
.nav-brand .brand-link { text-decoration: none; font-size: 20px; font-weight: bold; color: #333; display: flex; align-items: center; gap: 10px; }
.nav-brand .brand-text { color: #007bff; }
.nav-list { display: flex; list-style: none; gap: 5px; align-items: center; }
.nav-link { display: block; padding: 10px 15px; text-decoration: none; color: #333; border-radius: 6px; transition: all 0.3s; }
.nav-link:hover { background: #f0f0f0; }
.nav-link.active { background: #007bff; color: white; }
.nav-link i { margin-right: 5px; }
.btn-nav-primary { background: #007bff; color: white !important; }
.btn-nav-primary:hover { background: #0056b3 !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-toggle .hamburger { width: 25px; height: 3px; background: #333; border-radius: 3px; transition: all 0.3s; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: white; min-width: 200px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); border-radius: 8px; padding: 8px 0; z-index: 100; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-link { display: block; padding: 10px 20px; text-decoration: none; color: #333; transition: all 0.3s; }
.dropdown-link:hover { background: #f0f0f0; }
.dropdown-link i { margin-right: 8px; width: 20px; }
.text-danger { color: #dc3545 !important; }
.dropdown-divider { border: none; border-top: 1px solid #e0e0e0; margin: 8px 0; }

/* Buttons */
.btn { display: inline-block; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; font-size: 14px; transition: all 0.3s; }
.btn-primary { background: #007bff; color: white; }
.btn-primary:hover { background: #0056b3; }
.btn-success { background: #28a745; color: white; }
.btn-success:hover { background: #1e7e34; }
.btn-danger { background: #dc3545; color: white; }
.btn-danger:hover { background: #c82333; }
.btn-warning { background: #ffc107; color: #333; }
.btn-warning:hover { background: #e0a800; }
.btn-secondary { background: #6c757d; color: white; }
.btn-secondary:hover { background: #5a6268; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* File Grid */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.file-card { background: white; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); padding: 20px; display: flex; gap: 15px; transition: transform 0.3s, box-shadow 0.3s; }
.file-card:hover { transform: translateY(-3px); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.file-icon { flex-shrink: 0; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: #f8f9fa; border-radius: 10px; }
.file-info { flex: 1; }
.file-info h3 { font-size: 16px; margin-bottom: 5px; color: #333; }
.file-meta { display: flex; gap: 15px; font-size: 12px; color: #666; flex-wrap: wrap; margin: 5px 0; }
.file-desc { color: #666; font-size: 14px; margin: 5px 0; }
.file-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Badge */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-secondary { background: #e9ecef; color: #6c757d; }

/* Modal */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); justify-content: center; align-items: center; }
.modal-content { background: white; padding: 30px; border-radius: 12px; max-width: 450px; width: 90%; position: relative; margin: auto; }
.close { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; color: #999; }
.close:hover { color: #333; }

/* Form */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; color: #555; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; font-family: inherit; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group .help-text { font-size: 12px; color: #999; margin-top: 5px; }
.checkbox-group { margin: 15px 0; }
.checkbox-group label { display: inline-block; font-weight: normal; margin-left: 5px; }

/* Table */
.table-responsive { overflow-x: auto; background: white; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
table { width: 100%; border-collapse: collapse; }
th { background: #f8f9fa; padding: 12px 15px; text-align: left; font-weight: 600; }
td { padding: 12px 15px; border-top: 1px solid #dee2e6; }
tr:hover { background: #f8f9fa; }

/* Alert */
.alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; position: relative; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-close { position: absolute; right: 15px; top: 10px; background: none; border: none; font-size: 24px; cursor: pointer; color: inherit; }

/* Filter */
.filter-section { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); margin-bottom: 20px; }
.filter-form { display: flex; gap: 15px; flex-wrap: wrap; align-items: flex-end; }
.filter-form .form-group { margin: 0; }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; color: #666; }
.empty-state i { font-size: 48px; color: #ccc; margin-bottom: 15px; }
.empty-state h3 { margin-bottom: 10px; }

/* Footer */
.footer { background: white; margin-top: 40px; padding: 40px 0 20px; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 20px; }
.footer-section h4 { margin-bottom: 10px; color: #333; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 5px; }
.footer-section ul li a { color: #666; text-decoration: none; }
.footer-section ul li a:hover { color: #007bff; }
.footer-bottom { border-top: 1px solid #e0e0e0; padding-top: 20px; text-align: center; color: #999; font-size: 14px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu { display: none; width: 100%; position: absolute; top: 70px; left: 0; background: white; box-shadow: 0 4px 15px rgba(0,0,0,0.1); padding: 20px; }
    .nav-menu.active { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; }
    .dropdown-menu { position: static; box-shadow: none; padding-left: 20px; }
    .file-grid { grid-template-columns: 1fr; }
    .filter-form { flex-direction: column; }
    .filter-form .form-group { width: 100%; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 10px; }
    .file-card { flex-direction: column; text-align: center; }
    .file-actions { justify-content: center; }
}