/* General Layout */
body { display: flex; margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: #f4f4f9; height: 100vh; color: #333; }
.sidebar { width: 250px; background: #2c3e50; color: white; padding: 20px; box-shadow: 2px 0 5px rgba(0,0,0,0.1); }
.main-content { flex: 1; padding: 40px; overflow-y: auto; }

/* Typography */
h1 { margin-top: 0; color: #2c3e50; font-size: 24px; border-bottom: 2px solid #ddd; padding-bottom: 10px; }
.sidebar h3 { border-bottom: 1px solid #555; padding-bottom: 10px; font-size: 18px; }
.sidebar-note { font-size: 12px; color: #bdc3c7; margin-top: 20px; line-height: 1.4; }

/* Buttons & Inputs */
.btn-primary { background: #007bff; color: white; border: none; padding: 12px 25px; cursor: pointer; border-radius: 4px; font-weight: bold; font-size: 14px; }
.btn-secondary { background: #6c757d; color: white; border: none; padding: 10px; width: 100%; cursor: pointer; border-radius: 4px; font-size: 14px; }
.btn-primary:hover { background: #0056b3; }
.btn-secondary:hover { background: #5a6268; }

/* Upload Area */
.upload-zone { background: white; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 30px; border: 1px solid #e0e0e0; }
.control-group { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }

/* Table Styling */
table { width: 100%; border-collapse: collapse; background: white; margin-bottom: 30px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
th { background: #f8f9fa; text-align: left; padding: 12px; border: 1px solid #dee2e6; color: #495057; font-weight: 600; font-size: 13px; }
td { padding: 12px; border: 1px solid #dee2e6; word-break: break-all; font-size: 13px; vertical-align: top; }
.file-header { background: #34495e; color: white; padding: 12px; border-radius: 4px 4px 0 0; font-weight: bold; margin-top: 30px; font-size: 14px; }

/* Badges */
.badge { padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; text-transform: uppercase; display: inline-block; }
.working { background: #d4edda; color: #155724; }
.broken { background: #f8d7da; color: #721c24; }
.manual { background: #fff3cd; color: #856404; }

/* Empty State */
.empty-state { text-align: center; padding: 50px; color: #999; border: 2px dashed #ddd; border-radius: 8px; }

/* Filter Toggle (Slider) */
.switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 20px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #007bff; }
input:checked + .slider:before { transform: translateX(20px); }
.filter-group { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #666; }

.hidden { display: none; }