/* ===== Base & Layout ===== */
html {
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin-bottom: 120px;
    padding-top: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0c0c1d 0%, #12122a 50%, #0a0a2e 100%);
    color: white;
    padding: 28px 0 32px;
    margin-bottom: 32px;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
}

/* Animated grid background */
.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Floating glow orbs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.hero-glow-1 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-glow-2 {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.hero-cta {
    margin-top: 1rem;
}

.hero-cta .btn-primary,
.hero-cta .btn-outline-light {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.25rem;
    font-size: 0.925rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.hero-cta .btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
}

.hero-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.hero-cta .btn-outline-light {
    border-color: rgba(255,255,255,0.3);
}

.hero-cta .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    opacity: 0.5;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== Section Title ===== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    font-size: 1.75rem;
    color: #1a1a2e;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d0d7de, transparent);
    max-width: 120px;
}

/* ===== Stats Cards ===== */
.stat-card {
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card .card-body {
    padding: 1.75rem;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon-primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
    color: #6366f1;
}

.stat-icon-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    color: #22c55e;
}

.stat-icon-info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.05));
    color: #0ea5e9;
}

.stat-icon-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    color: #ef4444;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.stat-trend {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===== API Doc Cards ===== */
.api-card {
    border: none;
    border-radius: 24px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.api-card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.api-card:hover .api-card-shine {
    opacity: 1;
}

.api-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0,0,0,0.15);
}

.api-card .card-body {
    padding: 2.25rem;
    text-align: left;
    position: relative;
    z-index: 1;
}

.api-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: white;
    transition: transform 0.4s ease;
}

.api-card:hover .api-icon {
    transform: scale(1.1) rotate(-5deg);
}

.api-icon-redoc {
    background: linear-gradient(135deg, #ff6b6b, #f43f5e);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.3);
}

.api-icon-swagger {
    background: linear-gradient(135deg, #85c250, #22c55e);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.api-icon-scalar {
    background: linear-gradient(135deg, #4a90d9, #6366f1);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.api-icon-graphql {
    background: linear-gradient(135deg, #e535ab, #ec4899);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

.api-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: #0f172a;
}

.api-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.api-link {
    display: inline-flex;
    align-items: center;
    color: #6366f1;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.api-card:hover .api-link {
    gap: 0.5rem;
}

/* ===== Feature Cards ===== */
.feature-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 2.25rem;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s ease;
}

.feature-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.feature-icon-blue {
    background: linear-gradient(135deg, #4a90d9, #6366f1);
}

.feature-icon-purple {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.feature-card h3 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0;
    color: #0f172a;
}

.feature-list {
    margin-top: 1rem;
}

.feature-list-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: #475569;
    font-size: 0.9rem;
}

.release-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.release-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.release-version {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, #0c0c1d 0%, #12122a 50%, #0a0a2e 100%);
    border-radius: 24px;
    padding: 4rem 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

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

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h3 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===== Markdown Styles (GitHub-like) ===== */
.markdown-body {
    font-size: 16px;
    line-height: 1.6;
    color: #24292f;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #1a1a2e;
    scroll-margin-top: 90px;
}

.markdown-body h1 { font-size: 2em; border-bottom: 1px solid #d0d7de; padding-bottom: 0.3em; }
.markdown-body h2 { font-size: 1.5em; border-bottom: 1px solid #d0d7de; padding-bottom: 0.3em; }
.markdown-body h3 { font-size: 1.25em; }
.markdown-body h4 { font-size: 1em; }

.markdown-body p {
    margin-top: 0;
    margin-bottom: 16px;
}

.markdown-body code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(175, 184, 193, 0.2);
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.markdown-body pre {
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f6f8fa;
    border-radius: 6px;
    margin-bottom: 16px;
}

.markdown-body pre code {
    padding: 0;
    background-color: transparent;
}

.markdown-body blockquote {
    padding: 0 1em;
    color: #656d76;
    border-left: 0.25em solid #d0d7de;
    margin-bottom: 16px;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 2em;
    margin-bottom: 16px;
}

.markdown-body li + li {
    margin-top: 0.25em;
}

.markdown-body table {
    border-spacing: 0;
    border-collapse: collapse;
    margin-bottom: 16px;
    width: 100%;
    overflow: auto;
}

.markdown-body table th,
.markdown-body table td {
    padding: 6px 13px;
    border: 1px solid #d0d7de;
}

.markdown-body table th {
    font-weight: 600;
    background-color: #f6f8fa;
}

.markdown-body table tr:nth-child(2n) {
    background-color: #f6f8fa;
}

/* ===== Document Sidebar (sticky) ===== */
.toc-col {
    /* 让列随 row 一起撑高，这样 sticky 卡片才能在长内容滚动时持续吸附 */
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* ===== Release Notes Sidebar ===== */
.release-sidebar {
    position: sticky;
    top: 100px;
}

.release-sidebar .nav-link {
    color: #656d76;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.release-sidebar .nav-link:hover {
    background-color: #f6f8fa;
    color: #24292f;
}

.release-sidebar .nav-link.active {
    background-color: #ddf4ff;
    color: #0969da;
    font-weight: 500;
}

/* ===== Admin Layout ===== */
.admin-layout {
    padding-top: 0;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    flex: 0 0 220px;
    width: 220px;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    transition: flex-basis 0.3s ease, width 0.3s ease;
}

/* Brand */
.admin-sidebar-brand {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.admin-sidebar-brand-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

.admin-sidebar-brand-text i {
    color: #6366f1;
    font-size: 1.25rem;
}

.admin-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    color: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.admin-sidebar-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* Navigation */
.admin-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.admin-sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.55);
    padding: 0.625rem 1.25rem;
    margin: 0.125rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.admin-sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.admin-sidebar-nav .nav-link:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.05);
}

.admin-sidebar-nav .nav-link.active {
    color: white;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.15));
    box-shadow: inset 2px 0 0 #6366f1;
}

/* Collapsed state */
.admin-sidebar-collapsed {
    flex: 0 0 64px;
    width: 64px;
}

.admin-sidebar-collapsed .admin-sidebar-brand-text span {
    display: none;
}

.admin-sidebar-collapsed .admin-sidebar-nav .nav-link {
    justify-content: center;
    padding: 0.625rem 0;
    margin: 0.125rem 0.5rem;
}

.admin-sidebar-collapsed .admin-sidebar-nav .nav-link i {
    margin-right: 0;
}

.admin-sidebar-collapsed .admin-sidebar-nav .nav-link span {
    display: none;
}

.admin-sidebar-collapsed .admin-sidebar-user-info,
.admin-sidebar-collapsed .admin-sidebar-logout {
    display: none;
}

.admin-sidebar-collapsed .admin-sidebar-user-row {
    justify-content: center;
}

/* User area */
.admin-sidebar-user {
    padding: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.admin-sidebar-user-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.admin-sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.admin-sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.admin-sidebar-user-name {
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.admin-sidebar-user-role {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    line-height: 1.3;
}

.admin-sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: rgba(255,255,255,0.35);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.admin-sidebar-logout:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ===== Admin Main Content ===== */
.admin-main {
    flex: 1 1 auto;
    min-width: 0;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    height: 56px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    flex-shrink: 0;
}

.admin-topbar-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    padding: 0.375rem 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.admin-topbar-user:hover {
    background: #f1f5f9;
}

.partner-name,
.group-id,
.url-permission-id {
    cursor: pointer;
    color: #0275d8;
    border-radius: 4px;
    transition: background 0.15s;
}

.partner-name:hover {
    background: #f1f5f9;
}

.admin-table-card .table tbody tr:hover {
    background-color: #f8fafc;
}

.admin-topbar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.admin-topbar-user-info {
    line-height: 1.3;
}

.admin-topbar-user-name {
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-topbar-user-role {
    color: #64748b;
    font-size: 0.7rem;
}


.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.admin-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.admin-breadcrumb a:hover {
    color: #6366f1;
}

.admin-breadcrumb-separator {
    color: #cbd5e1;
}

.admin-breadcrumb-current {
    color: #0f172a;
    font-weight: 600;
}

.admin-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* ===== Admin Toolbar & Table ===== */
.admin-toolbar {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 1.25rem;
}

.admin-table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}

.admin-table-card .table {
    margin-bottom: 0;
}

.admin-table-card .table thead th {
    background: #f8fafc;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.875rem 1rem;
}

.admin-table-card .table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    color: #334155;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
}

.admin-table-card .table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table-card .table tbody tr:hover {
    background-color: #f8fafc;
}

/* ===== Request Logs Table Styles ===== */
.logs-table {
    border-collapse: separate;
    border-spacing: 0;
}

.logs-table thead th {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid #6366f1;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.logs-table thead th:first-child {
    border-top-left-radius: 12px;
}

.logs-table thead th:last-child {
    border-top-right-radius: 12px;
}

.logs-table tbody tr {
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.logs-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.logs-table tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.05);
    border-left-color: #6366f1;
}

.logs-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    color: #334155;
    font-size: 0.8rem;
    border-bottom: 1px solid #f1f5f9;
}

.logs-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.logs-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.logs-table tbody tr:last-child td {
    border-bottom: none;
}

.logs-row-error {
    background-color: rgba(239, 68, 68, 0.04) !important;
    border-left-color: #ef4444 !important;
}

.logs-row-error:hover {
    background-color: rgba(239, 68, 68, 0.08) !important;
}

.logs-row-slow {
    background-color: rgba(234, 179, 8, 0.04) !important;
    border-left-color: #eab308 !important;
}

.logs-row-slow:hover {
    background-color: rgba(234, 179, 8, 0.08) !important;
}

.logs-id-link {
    color: #6366f1;
    font-weight: 600;
    transition: color 0.15s ease;
}

.logs-id-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.logs-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.logs-code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.75rem;
    color: #475569;
    background: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.logs-status-ok {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #16a34a;
    font-size: 0.8rem;
    font-weight: 500;
}

.logs-status-error {
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 500;
}

.logs-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    color: white;
}

.logs-pagination .page-link {
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

.logs-pagination .page-link:hover {
    background-color: #f1f5f9;
    color: #6366f1;
    border-color: #cbd5e1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge-active {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.status-badge-inactive {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.toolbar-search {
    position: relative;
    max-width: 320px;
}

.toolbar-search .bi-search {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.875rem;
    pointer-events: none;
}

.toolbar-search input {
    padding-left: 2.5rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.toolbar-search input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-section {
        padding: 24px 0 28px;
        min-height: 160px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .api-card .card-body {
        padding: 1.75rem;
    }

    body {
        padding-top: 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-section h3 {
        font-size: 1.5rem;
    }

    .admin-sidebar {
        position: fixed;
        z-index: 1040;
        left: 0;
        top: 0;
        height: 100vh;
    }

    .admin-sidebar-collapsed {
        transform: translateX(-100%);
    }
}

/* ===== Domain Cards ===== */
.domain-card {
    display: flex;
    flex-direction: column;
}

.domain-card p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.domain-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: auto;
}

.api-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 50rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.api-badge-rest {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

.api-badge-graphql {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}

.domain-icon-air {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.domain-icon-ocean {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.domain-icon-domestic {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.domain-icon-customer {
    background: linear-gradient(135deg, #10b981, #059669);
}

.domain-icon-shipping {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.domain-icon-invoice {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.domain-icon-invoice {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}
