/* Main color scheme */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --accent-color: #3498db;
}

body {
    background-color: #f8f9fa;
    color: #34495e;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navigation */
.navbar {
    background-color: var(--dark-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    margin-right: 10px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-radius: 8px;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* Buttons */
.btn-dark {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-dark:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* List groups */
.list-group-item {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: var(--light-color);
    font-weight: 600;
}

/* Forms */
.form-control, .form-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: var(--light-color);
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
}

/* 图表卡片样式 */
.chart-card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.chart-header {
    border-bottom: 1px solid #eee;
    padding: 15px;
    background: #f8f9fa;
}

.chart-container {
    padding: 15px;
    height: 400px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .chart-container {
        height: 300px;
    }
}

/*search*/
.aa {
    font-family: "Times New Roman";
    font-size: 14px;
    padding: 1px 2px;
    cursor: help;
    display: inline-block;
    min-width: 14px;
    text-align: center;
    border-radius: 2px;
}

.palmitoylation-experimental {
    background-color: #ffeb3b !important;
    color: black !important;
    font-weight: bold;
    box-shadow: 0 0 3px rgba(255, 235, 59, 0.5);
}

.palmitoylation-database {
    background-color: #4caf50 !important;
    color: white !important;
    font-weight: bold;
    box-shadow: 0 0 3px rgba(76, 175, 80, 0.5);
}

.palmitoylation-both {
    background-color: #f44336 !important;
    color: white !important;
    font-weight: bold;
    box-shadow: 0 0 3px rgba(244, 67, 54, 0.5);
}

.sequence-line {
    font-family: 'Courier New', monospace;
    margin-bottom: 5px;
    line-height: 1.8;
    white-space: nowrap;
    overflow-x: auto;
}

.line-number {
    color: #666;
    font-size: 12px;
    margin-right: 10px;
    min-width: 60px;
    display: inline-block;
    font-weight: bold;
}

.sequence-block {
    margin-right: 15px;
    display: inline-block;
}

.block-number {
    color: #999;
    font-size: 10px;
    margin-right: 2px;
    vertical-align: super;
}

.sequence-display {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.sequence-legend {
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
}

.legend-color {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}


.pmid-link {
    text-decoration: none;
}
.pmid-link:hover {
    text-decoration: underline;
}


      /* 响应式调整 */
    @media (max-width: 768px) {
        .sequence-line {
            white-space: normal;
        }
        .sequence-block {
            margin-right: 5px;
        }
        .line-number {
            width: 60px;
        }
    }
    
    /* 空状态下的页面高度 */
    .empty-state {
        min-height: 60vh;
        display: flex;
        flex-direction: column;
    }


/* static/css/style.css */
/* 基础的样式增强 */

/* 确保响应式布局 */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

/* 可以在这里添加一些自定义样式 */
.tool-card:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* 确保模态框正确显示 */
.modal-backdrop.show {
    opacity: 0.5;
}
  