/* FlowMaster 主要样式文件 */

pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    white-space: pre-wrap;
    font-size: 14px;
    overflow-x: auto;
    transition: all 0.3s ease;
}
canvas {
    min-width: 200px;
    min-height: 100px;
  }
.loading {
    position: relative;
    opacity: 0.7;
}
[v-cloak] {
    display: none;
}
.update-time {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}
.refresh-control {
    margin-bottom: 15px;
    min-width: 150px;
}
.version-badge {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 500;
    border-radius: 0.25rem;
}
.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.card {
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
@keyframes update-flash {
    0% { background-color: rgba(13, 110, 253, 0.1); }
    100% { background-color: transparent; }
}
.data-updated {
    animation: update-flash 1s ease;
}
.form-select:focus,
.form-check-input:focus,
.github-link:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}
.text-muted {
    color: #666 !important;
}
.date-query .form-control {
    background-color: var(--input-bg, #fff);
    color: var(--input-color, #212529);
    border-color: var(--input-border, #dee2e6);
}
.date-query .btn-primary {
    width: 100%;
}
.card-body.py-2 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}
.form-label.small {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.form-control-sm {
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}
.mb-3 {
    margin-bottom: 1rem !important;
}
.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}
.footer {
    border-top: 1px solid #eee;
    padding: 15px 0;
    margin-top: auto;
    background-color: #fff;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-brand {
    display: flex;
    align-items: center;
}
.footer-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}
.copyright-text {
    color: #666;
    font-size: 14px;
}
.author-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}
.author-link:hover {
    color: #333;
    text-decoration: underline;
}
.github-link {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}
.github-link i {
    font-size: 18px;
}
.github-link:hover {
    color: #333;
}
/* 响应式设计调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    h1 {
        font-size: 1.5rem;
    }
    .card-header {
        padding: 0.75rem;
    }
    .card-body {
        padding: 0.75rem;
    }
    pre {
        font-size: 11px;
        padding: 8px;
    }
    .version-badge {
        font-size: 0.7em;
    }
    .card {
        margin-bottom: 15px;
    }
    .footer {
        padding: 1rem 0;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    .footer-brand {
        flex-direction: column;
        gap: 5px;
    }
    .copyright-text {
        margin-left: 0 !important;
    }
    .refresh-control {
        margin-top: 1rem;
        text-align: left !important;
    }
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start;
    }
    .date-query .col-md-4 {
        margin-bottom: 1rem;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    pre {
        font-size: 13px;
    }
    .card {
        margin-bottom: 20px;
    }
}
@media (min-width: 769px) and (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}
@media (max-width: 576px) {
    .col-md-6 {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
} 

