body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1rem;
}
.navbar-brand {
    font-weight: 600;
    color: #333;
}
.nav-link {
    color: #666;
    margin: 0 0.5rem;
    font-size: 0.9rem;
}
.nav-link.active {
    color: #333;
    font-weight: 600;
}
.container-fluid {
    padding: 2rem;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}
.search-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 10px;
}
.search-container {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}
.search-container input {
    padding-left: 2.5rem;
    border-radius: 0.25rem;
    border: 1px solid #ddd;
    height: 38px;
}
.search-container i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}
.filter-container {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}
.table-container {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.table {
    margin-bottom: 0;
}
.table thead {
    background-color: #f5f5f5;
}
.table th {
    font-weight: 600;
    color: #555;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}
.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.table tr:last-child td {
    border-bottom: none;
}
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}
.status-badge.active {
    background-color: #e6f7ed;
    color: #1d8b4e;
}
.status-badge.inactive {
    background-color: #f8eae9;
    color: #d1333e;
}
.status-badge i {
    margin-right: 5px;
    font-size: 0.7rem;
}
.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.action-buttons button {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}
.action-buttons button:hover {
    color: #333;
}
.add-button {
    background-color: #4c6ef5;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: background-color 0.2s;
}
.add-button:hover {
    background-color: #3b5bdb;
}
.mode-toggle {
    display: flex;
    gap: 10px;
}
.mode-toggle button {
    background: none;
    border: 1px solid #ddd;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}
.mode-toggle button.active {
    background-color: #4c6ef5;
    color: white;
    border-color: #4c6ef5;
}
.checkbox-container {
    width: 20px;
    height: 20px;
    position: relative;
}
.checkbox-container input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 3px;
}
.checkbox-container input:checked ~ .checkmark {
    background-color: #4c6ef5;
    border-color: #4c6ef5;
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.column-header {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.column-header i {
    margin-left: 5px;
    font-size: 0.8rem;
}
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }
    .search-filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    .search-container, .filter-container {
        max-width: 100%;
    }
    .table-responsive {
        overflow-x: auto;
    }
}

/* Dark mode styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f5f5f5;
}
body.dark-mode .navbar {
    background-color: #2d2d2d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
body.dark-mode .navbar-brand,
body.dark-mode .nav-link.active {
    color: #f5f5f5;
}
body.dark-mode .nav-link {
    color: #aaa;
}
body.dark-mode .table-container {
    background-color: #2d2d2d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
body.dark-mode .table thead {
    background-color: #252525;
}
body.dark-mode .table th,
body.dark-mode .table td {
    border-color: #3d3d3d;
    color: #f5f5f5;
}
body.dark-mode .table-hover tbody tr:hover {
    background-color: #333;
}
body.dark-mode .status-badge.active {
    background-color: #164430;
    color: #4ade80;
}
body.dark-mode .status-badge.inactive {
    background-color: #471418;
    color: #f87171;
}
body.dark-mode .search-container input,
body.dark-mode .filter-container select {
    background-color: #2d2d2d;
    border-color: #444;
    color: #f5f5f5;
}
body.dark-mode .search-container i {
    color: #aaa;
}
body.dark-mode .action-buttons button {
    color: #aaa;
}
body.dark-mode .action-buttons button:hover {
    color: #f5f5f5;
}
body.dark-mode .mode-toggle button {
    border-color: #444;
    color: #aaa;
}
body.dark-mode .checkmark {
    border-color: #555;
}