/* 工具页面样式 */

.tools-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.tool-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
}

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

.tool-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
    text-align: center;
}

.tool-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.tool-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
}

.ip-result-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.ip-result-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ip-result-card.database {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.ip-result-card.api {
    border-left: 4px solid #007bff;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.result-source {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-source.database {
    color: #28a745;
}

.result-source i {
    margin-right: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.info-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 6px;
    margin: 0 -0.5rem;
    padding: 0.75rem 0.5rem;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.info-value {
    color: #6c757d;
    font-size: 0.9rem;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.query-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #dee2e6;
}

.query-stats .fw-bold {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.query-stats small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-danger {
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    color: #721c24;
}

.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.25rem;
}

/* 确保所有卡片标题文字都是白色 */
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.card-header .mb-0,
.card-header i {
    color: white !important;
}

/* 特定背景色的卡片标题也使用白色文字 */
.card-header.bg-primary,
.card-header.bg-info,
.card-header.bg-success,
.card-header.bg-warning,
.card-header.bg-danger,
.card-header.bg-secondary,
.card-header.bg-dark,
.card-header.bg-light {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.card-header.bg-primary h1,
.card-header.bg-primary h2,
.card-header.bg-primary h3,
.card-header.bg-primary h4,
.card-header.bg-primary h5,
.card-header.bg-primary h6,
.card-header.bg-primary .mb-0,
.card-header.bg-primary i,
.card-header.bg-info h1,
.card-header.bg-info h2,
.card-header.bg-info h3,
.card-header.bg-info h4,
.card-header.bg-info h5,
.card-header.bg-info h6,
.card-header.bg-info .mb-0,
.card-header.bg-info i,
.card-header.bg-success h1,
.card-header.bg-success h2,
.card-header.bg-success h3,
.card-header.bg-success h4,
.card-header.bg-success h5,
.card-header.bg-success h6,
.card-header.bg-success .mb-0,
.card-header.bg-success i,
.card-header.bg-warning h1,
.card-header.bg-warning h2,
.card-header.bg-warning h3,
.card-header.bg-warning h4,
.card-header.bg-warning h5,
.card-header.bg-warning h6,
.card-header.bg-warning .mb-0,
.card-header.bg-warning i,
.card-header.bg-danger h1,
.card-header.bg-danger h2,
.card-header.bg-danger h3,
.card-header.bg-danger h4,
.card-header.bg-danger h5,
.card-header.bg-danger h6,
.card-header.bg-danger .mb-0,
.card-header.bg-danger i,
.card-header.bg-secondary h1,
.card-header.bg-secondary h2,
.card-header.bg-secondary h3,
.card-header.bg-secondary h4,
.card-header.bg-secondary h5,
.card-header.bg-secondary h6,
.card-header.bg-secondary .mb-0,
.card-header.bg-secondary i,
.card-header.bg-dark h1,
.card-header.bg-dark h2,
.card-header.bg-dark h3,
.card-header.bg-dark h4,
.card-header.bg-dark h5,
.card-header.bg-dark h6,
.card-header.bg-dark .mb-0,
.card-header.bg-dark i,
.card-header.bg-light h1,
.card-header.bg-light h2,
.card-header.bg-light h3,
.card-header.bg-light h4,
.card-header.bg-light h5,
.card-header.bg-light h6,
.card-header.bg-light .mb-0,
.card-header.bg-light i {
    color: white !important;
}

/* 动态生成的卡片标题样式 */
.card .card-header,
div[class*="card"] .card-header,
.result-container .card-header,
#resultsContainer .card-header,
#whoisResults .card-header,
#mtrResults .card-header,
#pingResults .card-header,
#dnsResults .card-header,
#portscanResults .card-header,
#speedtestResults .card-header,
#sslResults .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.card .card-header h1,
.card .card-header h2,
.card .card-header h3,
.card .card-header h4,
.card .card-header h5,
.card .card-header h6,
.card .card-header .mb-0,
.card .card-header i,
div[class*="card"] .card-header h1,
div[class*="card"] .card-header h2,
div[class*="card"] .card-header h3,
div[class*="card"] .card-header h4,
div[class*="card"] .card-header h5,
div[class*="card"] .card-header h6,
div[class*="card"] .card-header .mb-0,
div[class*="card"] .card-header i {
    color: white !important;
}

/* 表格标题样式 */
.table-primary,
.table-primary th,
.table-primary td {
    background-color: #667eea !important;
    color: white !important;
}

.table-primary th i,
.table-primary td i {
    color: white !important;
}

/* 确保所有可能的标题容器都是白色文字 */
.card-header *,
.card-header span,
.card-header div,
.card-header small,
.card-header strong,
.card-header b {
    color: white !important;
}

/* 最高优先级确保所有卡片标题都是白色 */
.card .card-header,
.card-header,
div.card-header,
.card > .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
}

.card .card-header *,
.card-header *,
div.card-header *,
.card > .card-header * {
    color: white !important;
}

.card-body {
    padding: 1.25rem;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.form-text code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #e83e8c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 1.5rem;
    }

    /* 移动端标题区块样式 */
    .text-center[style*="margin: 3rem 0"],
    .text-center.mb-5 {
        margin: 2rem 0 !important;
    }

    .text-center[style*="margin: 3rem 0"] h1.h2,
    .text-center.mb-5 h1.h2 {
        font-size: 1.75rem;
    }

    .text-center[style*="margin: 3rem 0"] h1.h2 i,
    .text-center.mb-5 h1.h2 i {
        font-size: 1.5rem;
        margin-right: 0.5rem;
    }

    .text-center[style*="margin: 3rem 0"] p.text-muted,
    .text-center.mb-5 p.text-muted {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .info-value {
        text-align: left;
        max-width: 100%;
    }

    .query-stats .row > div {
        margin-bottom: 1rem;
    }

    .main-container {
        padding: 0 10px;
    }

    .port-result {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .speed-metric {
        padding: 15px;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .cert-detail {
        flex-direction: column;
        gap: 5px;
    }

    .dns-record-item {
        font-size: 12px;
        padding: 8px;
    }

    .whois-raw-data {
        font-size: 11px;
        padding: 10px;
    }

    .ping-result {
        font-size: 12px;
        padding: 10px;
    }

    .api-results {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .timeline-bar {
        margin: 10px 0;
    }

    /* 移动端卡片标题样式 */
    .card-header {
        padding: 0.75rem 1rem;
    }

    .card-header h5,
    .card-header h6 {
        font-size: 1rem;
    }

    .card-header i {
        font-size: 0.9rem;
    }

    /* 编码转换工具移动端样式 */
    #inputText,
    #outputText {
        min-height: 150px;
        font-size: 13px;
    }

    .example-card {
        margin-bottom: 1rem;
    }

    .example-card code {
        font-size: 0.75rem;
        display: block;
        margin-top: 0.25rem;
        word-break: break-all;
    }

    .form-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }

    .d-flex.gap-2 .btn {
        width: 100%;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 结果动画 */
.results-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 工具图标样式 */
.tool-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.online {
    background-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

.status-indicator.offline {
    background-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

/* WHOIS工具样式 */
.whois-raw-data {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Ping工具样式 */
.ping-result {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

.ping-stats {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.ping-success {
    color: #28a745;
}

.ping-timeout {
    color: #dc3545;
}

.ping-warning {
    color: #ffc107;
}

/* 端口扫描工具样式 */
.port-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 6px;
    font-family: monospace;
}

.port-open {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.port-closed {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.port-filtered {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* 主容器样式 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 通用工具样式 */
.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tool-description {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 统一的页面标题区块样式 */
.text-center[style*="margin: 3rem 0"] {
    margin: 3rem 0 !important;
}

.text-center[style*="margin: 3rem 0"] h1.h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.text-center[style*="margin: 3rem 0"] h1.h2 i {
    font-size: 2.2rem;
    margin-right: 0.75rem;
}

.text-center[style*="margin: 3rem 0"] p.text-muted {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* 兼容旧的mb-5样式 */
.text-center.mb-5 {
    margin: 3rem 0 !important;
}

.text-center.mb-5 h1.h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.text-center.mb-5 h1.h2 i {
    font-size: 2.2rem;
    margin-right: 0.75rem;
}

.text-center.mb-5 p.text-muted {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.tool-card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.tool-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem 0.5rem 0 0 !important;
    border: none;
}

.result-container {
    margin-top: 1.5rem;
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 网站速度测试工具样式 */
.speed-metric {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
}

.speed-excellent {
    border-left: 4px solid #28a745;
}

.speed-good {
    border-left: 4px solid #17a2b8;
}

.speed-average {
    border-left: 4px solid #ffc107;
}

.speed-poor {
    border-left: 4px solid #dc3545;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.metric-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.performance-chart {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    flex: 1;
    margin: 0 15px;
    position: relative;
}

.timeline-fill {
    height: 100%;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* SSL证书检查工具样式 */
.ssl-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.ssl-valid {
    border-left: 4px solid #28a745;
    background: #d4edda;
}

.ssl-warning {
    border-left: 4px solid #ffc107;
    background: #fff3cd;
}

.ssl-error {
    border-left: 4px solid #dc3545;
    background: #f8d7da;
}

.cert-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.cert-detail:last-child {
    border-bottom: none;
}

.cert-label {
    font-weight: 600;
    color: #495057;
}

.cert-value {
    color: #6c757d;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.security-score {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.score-a {
    background: #d4edda;
    color: #155724;
}

.score-b {
    background: #d1ecf1;
    color: #0c5460;
}

.score-c {
    background: #fff3cd;
    color: #856404;
}

.score-d {
    background: #f8d7da;
    color: #721c24;
}

.score-f {
    background: #f5c6cb;
    color: #721c24;
}

/* DNS查询工具样式 */
.dns-record {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.dns-record h6 {
    color: #495057;
    margin-bottom: 10px;
    font-weight: 600;
}

.dns-record-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px;
    margin: 5px 0;
    font-family: monospace;
    font-size: 14px;
}

.record-type {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}

.record-type.A {
    background: #28a745;
}

.record-type.AAAA {
    background: #17a2b8;
}

.record-type.MX {
    background: #ffc107;
    color: #212529;
}

.record-type.CNAME {
    background: #6f42c1;
}

.record-type.TXT {
    background: #fd7e14;
}

.record-type.NS {
    background: #20c997;
}

.record-type.SOA {
    background: #6c757d;
}

.record-type.PTR {
    background: #e83e8c;
}

/* 编码转换工具样式 */
.example-card {
    background: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef !important;
}

.example-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.example-card h6 {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.example-card code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-size: 0.85rem;
    word-break: break-all;
}

.example-card p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 编码输入输出区域样式 */
#inputText,
#outputText {
    resize: vertical;
    min-height: 200px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

#inputText:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

#outputText {
    background-color: #f8f9fa !important;
}

/* 操作按钮样式 */
.btn-group-toggle .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 字符计数样式 */
.form-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

/* 复制按钮动画 */
#copyBtn {
    transition: all 0.3s ease;
}

#copyBtn:hover {
    transform: translateY(-1px);
}

/* 示例按钮样式 */
.example-btn {
    transition: all 0.3s ease;
}

.example-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 错误状态样式 */
#outputText.error {
    border-color: #dc3545;
    background-color: #f8d7da !important;
}

/* 成功状态样式 */
#outputText.success {
    border-color: #28a745;
    background-color: #d4edda !important;
}

/* 加载状态样式 */
.converting {
    position: relative;
    overflow: hidden;
}

.converting::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 快捷键提示样式 */
.shortcut-hint {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* 字符计数样式增强 */
.char-count {
    font-weight: 500;
    color: #6c757d;
}

.char-count.large {
    color: #ffc107;
}

.char-count.very-large {
    color: #dc3545;
}

/* IP查询工具样式 */
.ip-result-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.ip-result-card.show {
    opacity: 1;
    transform: translateY(0);
}

.ip-result-card.database {
    border-left: 4px solid #28a745;
}

.ip-result-card.api {
    border-left: 4px solid #007bff;
}

.result-source {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 10px;
}

.result-source.database {
    color: #28a745;
    font-weight: bold;
}

.query-stats {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.progress-container {
    display: none;
    margin-top: 20px;
}

.progress {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #e9ecef;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: #6c757d;
    font-size: 14px;
}

.database-results {
    margin-top: 20px;
}

.api-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.database-result-card {
    width: 100%;
    margin-bottom: 20px;
}
