body {
    background-color: #f0f2f5;
    font-family: 'Arial', sans-serif;
}

.card {
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: #007bff;
    color: white;
    border-radius: 15px 15px 0 0;
    font-weight: bold;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-danger {
    transition: background-color 0.3s;
}

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

#uploadResult,
#statisticsResult,
#exportResult,
#queryPhoneResult,
#apiUploadResult,
#apiQueryResult,
#apiDownloadResult {
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.alert-info {
    background-color: #cce5ff;
    color: #004085;
    border-left: 5px solid #007bff;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffc107;
}

h1 {
    color: #007bff;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.form-label {
    font-weight: 500;
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 0.8;
}

.form-control:invalid {
    border-color: #dc3545;
}

.form-control:valid {
    border-color: #28a745;
}

small.text-muted {
    color: #6c757d;
}

/* 左侧导航栏 */
#tagListContainer {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

/* 功能按钮 */
.function-btn {
    transition: background-color 0.3s;
}

.function-btn.active {
    background-color: #0056b3;
    color: white;
}

/* 标签列表（本地功能） */
#tagList {
    list-style: none;
    padding: 0;
}

#tagList li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 5px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

#tagList li .tag-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#tagList li .delete-tag-btn {
    font-size: 0.8rem;
    padding: 2px 8px;
}

#refreshTagsBtn,
#selectAllTagsBtn {
    margin-top: 10px;
    width: 100%;
}

.tag-checkbox {
    margin-right: 0;
}

/* 登录模态框样式 */
#loginModal .modal-content {
    border-radius: 10px;
}

#qrCodeImage {
    max-width: 200px;
    margin: 10px auto;
    display: block;
}

#loginMessage .alert {
    padding: 10px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

#googleCodeSection {
    margin-bottom: 15px;
}

/* 上传记录下拉列表样式 */
.upload-record-item {
    cursor: pointer;
    padding: 8px 12px;
}

.upload-record-item:hover {
    background-color: #f0f0f0;
}

.dropdown-menu {
    width: 100%;
}

/* 侧边栏主容器 */
.sidebar {
    width: 250px;
    min-width: 250px;
    height: 100vh;
    background: #2c3e50;
    color: #ecf0f1;
    transition: all 0.3s;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
}

/* 标题区域 */
.sidebar-title {
    color: #ecf0f1 !important;
    background: #2c3e50;
    border-bottom: 1px solid #34495e !important;
    padding: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.sidebar-title i {
    color: #bdc3c7;
}

/* 一级菜单项 */
.menu-item > .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #ecf0f1;
    font-weight: 500;
    border-bottom: 1px solid #34495e;
    transition: all 0.2s;
    text-decoration: none;
}

.menu-item > .nav-link:hover {
    background: #34495e;
    color: white;
}

.menu-item > .nav-link i {
    margin-right: 0.5rem;
    transition: transform 0.2s;
}

/* 展开状态下的一级菜单图标旋转 */
.menu-item > .nav-link[aria-expanded="true"] i {
    transform: rotate(90deg);
}

/* 子菜单容器 */
.submenu {
    background: #34495e;
}

.submenu .nav-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem 0.6rem 2rem;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.2s;
}

.submenu .nav-link:hover {
    color: white;
    background: #3d566e;
}

.submenu .nav-link i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.rotate-icon {
    transition: transform 0.3s;
}

.collapsed .rotate-icon {
    transform: rotate(-90deg);
}