/* 基本样式 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
}

/* 容器样式 */
.container-fluid {
    max-width: 1600px;
}

/* 表格样式 */
.table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* 项目卡片样式 */
.project-card {
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.project-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px;
}

.project-card .card-body {
    padding: 20px;
}

.project-card .card-footer {
    background-color: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 10px 15px;
}

/* 按钮样式增强 */
.btn {
    border-radius: 5px;
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.btn-info {
    color: #fff;
}

/* 插件模块表格样式 */
.plugin-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.plugin-table thead th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.plugin-table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* 插件选择按钮区域 */
.plugin-buttons {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* 代码编辑器样式 */
.code-editor {
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
    color: #212529;
    font-size: 14px;
}

.code-block {
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.cookies-block {
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 14px;
}

/* 命令执行结果样式 */
.result-block {
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    background-color: #f8f9fa;
    color: #212529;
}

/* 单元格样式 */
.url-cell-short, .agent-cell-short {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.url-cell-full, .agent-cell-full {
    max-width: 400px;
    white-space: normal;
    word-break: break-word;
    display: inline-block;
}

/* URL单元格特殊样式 */
.url-cell-short {
    max-width: 250px; /* URL短显示时给更多空间 */
    color: #0d6efd;
}

.url-cell-full {
    max-width: 450px; /* URL完整显示时给更多空间 */
    font-size: 0.9rem;
    padding: 2px 5px;
    background-color: #f8f9fa;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

/* UA和URL切换链接样式 */
.ua-toggle, .url-toggle {
    text-decoration: none;
    color: inherit;
}

.ua-toggle:hover, .url-toggle:hover {
    text-decoration: underline;
    color: #0d6efd;
}

/* 模态框样式增强 */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    overflow: hidden;
    padding: 0;
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px 30px;
    background-color: #f8f9fa;
}

.modal-body {
    padding: 25px 30px;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 15px 30px;
    background-color: #f8f9fa;
}

/* 模态框宽度设置 */
#commandModal .modal-dialog,
#cookiesModal .modal-dialog,
#viewPluginModal .modal-dialog {
    max-width: 90%;
    width: 1400px;
}

#clientsModal .modal-dialog {
    max-width: 92%;
    width: 1600px;
}

#editPluginModal .modal-dialog,
#newPluginModal .modal-dialog {
    max-width: 90%;
    width: 1200px;
}

/* 表格列宽度优化 */
#clientsModal .table th[style*="width: 20%"] {
    width: 22% !important;
}

#clientsModal .url-cell-short {
    max-width: 300px;
}

#clientsModal .url-cell-full {
    max-width: 500px;
}

#clientsModal .agent-cell-short {
    max-width: 300px;
}

#clientsModal .agent-cell-full {
    max-width: 500px;
}

#commandInput {
    min-height: 180px;
}

/* 徽章样式 */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 4px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* 通知栏样式 */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    background-color: #343a40;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    font-size: 14px;
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.toast-success {
    background-color: #28a745;
}

.toast-notification.toast-error {
    background-color: #dc3545;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-header {
        padding: 10px 15px;
    }
    
    .project-card .card-body {
        padding: 15px;
    }
} 