/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2 {
    color: #333;
    margin-bottom: 20px;
}

/* 搜索框样式 */
.search-box {
    margin: 20px 0;
    text-align: center;
}

input {
    padding: 8px;
    width: 300px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
}

/* 按钮样式 */
button {
    padding: 8px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

/* 结果卡片样式 */
.result-card, .sim-card, .record {
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.error {
    color: #ff0000;
    text-align: center;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: inline-block;
    width: 100px;
    margin-right: 10px;
    color: #333;
}

.form-group input, .form-group select {
    width: 250px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
}

/* 导航标签样式 */
.nav-tabs {
    margin: 20px 0;
    border-bottom: 2px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

.tab-btn.active {
    border-bottom: 2px solid #4CAF50;
    color: #4CAF50;
}

/* 卡片内容样式 */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h2 {
    color: #333;
    margin-top: 0;
}

/* 列表项样式 */
.sim-card p, .record p {
    margin: 5px 0;
    color: #333;
}

/* 空状态提示 */
.empty-message {
    color: #666;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* 状态样式 */
.status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    background-color: #e8f5e9;
    color: #4caf50;
}

.status.in-use {
    background-color: #ffebee;
    color: #f44336;
}

.status.pending {
    background-color: #fff3e0;
    color: #ff9800;
}

/* 导航菜单样式 */
.nav-menu {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-item {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

.menu-item.active {
    background-color: #4CAF50;
    color: white;
}

/* 内容区域样式 */
.menu-content {
    display: none;
}

.menu-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移除旧的标签页样式 */
.nav-tabs, .tab-btn, .tab-content {
    display: none;
}

/* 待完善状态样式 */
.pending {
    border-left: 4px solid #ff9800;
}

.pending-message {
    color: #ff9800;
    font-weight: bold;
    margin: 10px 0;
}

.action-hint {
    background-color: #fff3e0;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.action-hint ul {
    margin: 10px 0;
    padding-left: 20px;
}

.error-card {
    background: #ffebee;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
}

/* 卡片操作按钮样式 */
.card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.edit-btn, .delete-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.edit-btn {
    background-color: #2196F3;
    color: white;
}

.delete-btn {
    background-color: #f44336;
    color: white;
}

/* 编辑表单样式 */
.edit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.edit-form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.save-btn {
    background-color: #4CAF50;
    color: white;
}

.cancel-btn {
    background-color: #9e9e9e;
    color: white;
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination-controls {
    margin-bottom: 10px;
}

.pagination-controls button {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #333;
}

.pagination-controls button:hover:not(:disabled) {
    background: #f5f5f5;
}

.pagination-controls button:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
    color: #999;
}

.pagination-controls button.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.pagination-controls span {
    margin: 0 5px;
    color: #333;
}

.pagination-info {
    color: #333;
    font-size: 14px;
    margin-top: 10px;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.login-box .form-group {
    margin-bottom: 20px;
}

.login-box label {
    display: block;
    margin-bottom: 8px;
    color: #666;
}

.login-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.login-box button:hover {
    background-color: #45a049;
}

/* 添加用户信息显示样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.user-info span {
    color: #666;
}

.logout-btn {
    padding: 5px 10px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.logout-btn:hover {
    background-color: #d32f2f;
} 