/* ==========================================
   Common styles - shared across all pages
   ========================================== */

/* --- Body & Typography --- */
body {
    background-color: #f4f7f9;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* --- Sticky Navigation Bar --- */
.action-bar {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    margin-bottom: 20px;
}

.action-bar .nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-bar .nav-title a {
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-bar .nav-title a:hover {
    color: #007aff;
}

.action-bar .nav-title .back-icon {
    font-size: 1.2rem;
}

.action-bar .nav-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Navigation bar: mobile optimization */
@media (max-width: 575.98px) {
    .action-bar {
        padding: 10px 0;
    }

    .action-bar .nav-title {
        font-size: 1rem;
    }

    .action-bar .nav-actions {
        gap: 6px;
    }

    .action-bar .nav-actions .btn {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

/* --- Card Component --- */
.card-custom {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card-custom:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* --- Preformatted Text Content --- */
.text-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.95rem;
    color: #333;
    max-height: 400px;
    overflow-y: auto;
}

/* --- Custom Scrollbar --- */
.text-content::-webkit-scrollbar {
    width: 6px;
}

.text-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* --- Table Responsive Wrapper --- */
.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
