/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.big-btn {
    font-size: 20px;
    padding: 15px 30px;
    width: 100%;
}

.logout-btn {
    background-color: #e74c3c;
    display: block;
    margin: 30px auto 0;
    width: 150px;
}

.logout-btn:hover {
    background-color: #c0392b;
}

/* 账号列表样式 */
.account-list, .employee-list, .history-list {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.account-item, .employee-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.account-item:last-child, .employee-item:last-child {
    border-bottom: none;
}

.account-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

/* 员工信息样式 */
.employee-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* 当前账号样式 */
.current-number {
    margin-top: 20px;
    padding: 20px;
    font-size: 24px;
    text-align: center;
    background-color: #2ecc71;
    color: white;
    border-radius: 5px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder {
    color: rgba(255,255,255,0.7);
}

/* 历史记录项样式 */
.history-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.modal h3 {
    margin-bottom: 20px;
}

.modal input, .modal textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal textarea {
    height: 150px;
    resize: vertical;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .account-item, .employee-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .account-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
}


/* 添加这些样式到现有的style.css文件 */
.whatsapp-section {
    background-color: #f0fff4;
    border-color: #4CAF50;
}

.whatsapp-section h2 {
    color: #2E7D32;
}

.modal-content {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.modal-content textarea {
    width: 100%;
    height: 150px;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.account-item span:first-child {
    font-family: monospace;
}

.loading, .empty, .error {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    color: #d32f2f;
}

/* 员工信息卡片 */
.employee-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.employee-name {
    font-size: 20px;
    margin-bottom: 8px;
    color: #333;
}

.employee-id {
    color: #666;
    margin-bottom: 8px;
}

.last-login {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.stat-item {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 历史记录项 */
.history-item {
    margin-bottom: 10px;
    border-left: 4px solid #0088cc;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.history-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-number {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.history-time {
    color: #666;
    font-size: 14px;
}

.history-type {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    color: white;
}

.telegram-type {
    background-color: #0088cc;
}

.whatsapp-type {
    background-color: #25D366;
}

/* 空状态 */
.empty {
    text-align: center;
    padding: 30px;
    color: #888;
    font-style: italic;
}

/* 错误状态 */
.error {
    text-align: center;
    padding: 30px;
    color: #dc3545;
}

/* 提示消息 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    z-index: 1000;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.toast.error {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .account-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .get-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .history-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .stats {
        flex-direction: column;
        gap: 10px;
    }
}