/* TransEase Admin Common Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background-color: #f5f5f5; }
.header { background-color: #333; color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.nav { display: flex; gap: 20px; }
.nav a { color: white; text-decoration: none; padding: 5px 10px; border-radius: 4px; transition: background-color 0.3s; }
.nav a:hover, .nav a.active { background-color: #555; }
.container { max-width: 1200px; margin: 20px auto; padding: 20px; }
.card { background-color: white; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.card h2 { margin-top: 0; color: #333; margin-bottom: 15px; }
.status { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; }
.status.online { background-color: #28a745; color: white; }
.status.offline { background-color: #dc3545; color: white; }
.status.pending { background-color: #ffc107; color: #333; }
.btn { padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; transition: background-color 0.3s; margin-right: 5px; }
.btn-primary { background-color: #007bff; color: white; }
.btn-primary:hover { background-color: #0056b3; }
.btn-danger { background-color: #dc3545; color: white; }
.btn-danger:hover { background-color: #c82333; }
.btn-success { background-color: #28a745; color: white; }
.btn-success:hover { background-color: #218838; }
.btn-warning { background-color: #ffc107; color: #333; }
.btn-warning:hover { background-color: #e0a800; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #ddd; }
th { background-color: #f8f9fa; font-weight: bold; }
tr:hover { background-color: #f5f5f5; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px;
}
.form-group textarea { min-height: 80px; resize: vertical; }
.modal-overlay { 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-overlay.show { display: flex; }
.modal { background: white; border-radius: 8px; padding: 30px; width: 500px; max-width: 90%; max-height: 80vh; overflow-y: auto; }
.modal h2 { margin-bottom: 20px; }
.modal-actions { margin-top: 20px; text-align: right; }
.filter-bar { display: flex; gap: 10px; margin-bottom: 15px; align-items: center; flex-wrap: wrap; }
.filter-bar select, .filter-bar input { padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; }
.empty-state { text-align: center; padding: 40px; color: #999; }
.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 15px; }
.pagination button { padding: 5px 12px; border: 1px solid #ddd; background: white; border-radius: 4px; cursor: pointer; }
.pagination button.active { background-color: #007bff; color: white; }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

.upload-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.upload-row input[type="file"] { font-size: 13px; }
.upload-status { font-size: 12px; margin-bottom: 4px; min-height: 18px; }
.upload-status.success { color: #28a745; }
.upload-status.error { color: #dc3545; }
.upload-status.loading { color: #007bff; }

.tab-bar { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid #e9ecef; }
.tab-btn { padding: 10px 20px; border: none; background: none; cursor: pointer; font-size: 14px; font-weight: 500; color: #6c757d; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.3s; }
.tab-btn:hover { color: #007bff; }
.tab-btn.active { color: #007bff; border-bottom-color: #007bff; }
.tab-content { display: block; }

.footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
    margin-top: 30px;
}
.footer a {
    color: #999;
    text-decoration: none;
}
.footer a:hover {
    color: #666;
    text-decoration: underline;
}
