/* 文档管理系统 - 主样式表 */

body {
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 导航栏渐变样式 */
.navbar-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.navbar-gradient .navbar-brand {
    font-weight: 600;
    color: white !important;
}

.navbar-gradient .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

.navbar-gradient .nav-link:hover {
    color: white !important;
    transform: translateY(-1px);
}

.navbar-gradient .dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 项目列表样式 */
.project-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.project-card h5 {
    font-weight: 600;
    color: #333;
}

.project-card h5:hover {
    color: #667eea;
}

.project-card .btn-group {
    margin-top: 10px;
}

.project-card .btn-group .btn {
    font-size: 12px;
    padding: 4px 8px;
}

/* 文档树样式 */
.tree-panel {
    background: white;
    min-height: calc(100vh - 56px);
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    padding: 20px;
    overflow-y: auto;
}

.content-panel {
    background: white;
    min-height: calc(100vh - 56px);
    padding: 30px;
}

.tree-item {
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tree-item:hover {
    background-color: #f8f9fa;
}

.tree-item.active {
    background-color: #e7f3ff;
    color: #667eea;
}

.tree-item .item-title {
    flex: 1;
    display: flex;
    align-items: center;
}

.tree-item .item-actions {
    opacity: 0;
    transition: opacity 0.3s;
}

.tree-item:hover .item-actions {
    opacity: 1;
}

.tree-children {
    margin-left: 20px;
}

.tree-toggle {
    width: 20px;
    text-align: center;
    cursor: pointer;
}

/* 文档内容样式 */
.document-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.document-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.document-meta {
    color: #6c757d;
    font-size: 14px;
}

.document-content {
    line-height: 1.8;
    color: #333;
}

/* 编辑模式样式 */
.edit-mode .document-title {
    border: 2px solid #667eea;
    padding: 10px;
    border-radius: 5px;
    background: white;
}

.edit-mode .document-content {
    border: 2px solid #e9ecef;
    padding: 20px;
    border-radius: 5px;
    min-height: 400px;
}

/* 工具栏样式 */
.btn-toolbar {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* 自动保存提示 */
.save-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tree-panel {
        min-height: auto;
        max-height: 300px;
    }
    
    .content-panel {
        min-height: auto;
    }
    
    .project-card {
        margin-bottom: 15px;
    }
}

/* 版权信息样式 */
.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-top: none;
}

.footer p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.footer .small {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

/* 分页样式优化 */
.pagination {
    margin-bottom: 1rem;
}

.page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
}

.page-link {
    color: #667eea;
}

.page-link:hover {
    color: #764ba2;
}
