* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    text-align: center;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
}

.page {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.3rem;
    margin: 15px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
}

h3 {
    font-size: 1.1rem;
    margin: 12px 0 8px;
    color: #3498db;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #27ae60;
}

.btn-success:hover {
    background-color: #219653;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.status-indicator {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
    margin-right: 10px;
}

.status-yellow {
    background-color: #f39c12;
}

.status-gray {
    background-color: #7f8c8d;
}

.status-green {
    background-color: #27ae60;
}

.status-blue {
    background-color: #3498db;
}

.dashboard-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.dashboard-card.yellow {
    background-color: #f39c12;
}

.dashboard-card.gray {
    background-color: #7f8c8d;
}

.dashboard-card.green {
    background-color: #27ae60;
}

.dashboard-card.blue {
    background-color: #3498db;
}

.quick-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.quick-actions button {
    margin-bottom: 10px;
}

.membrane-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.membrane-item:hover {
    background-color: #e9ecef;
}

.nav-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.nav-tab.active {
    border-bottom: 2px solid #3498db;
    color: #3498db;
    font-weight: 500;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.layer-section {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

.layer-title {
    font-weight: 500;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1rem;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    margin-bottom: 15px;
    gap: 0;
}

.search-box input {
    flex: 1;
    border-radius: 4px 0 0 4px;
    margin-top: 0;
}

.search-box button {
    width: auto;
    border-radius: 0 4px 4px 0;
    margin-top: 0;
}

.record-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.record-table th, .record-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.record-table th {
    background-color: #f2f2f2;
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.inline-label {
    display: inline;
    margin-right: 15px;
}

.inline-label input {
    width: auto;
    margin-right: 5px;
}

.inline-label label {
    display: inline;
    margin-bottom: 0;
}

.btn-inline {
    width: auto;
    display: inline-block;
    margin-left: 10px;
    margin-top: 0;
}

.remove-layer-btn {
    background-color: #e74c3c;
    width: auto;
    display: inline-block;
    margin-top: 10px;
}

.remove-layer-btn:hover {
    background-color: #c0392b;
}
