/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Times New Roman", Times, serif !important;
}

body {
    font-family: "Times New Roman", Times, serif !important;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Override body styles for login page */
body.login-page {
    background-color: transparent !important;
    color: white !important;
}

/* Login Page - Redesign to match image */
.login-page {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh !important;
    background: linear-gradient(180deg, #0070FF 0%, #124499 100%) !important;
    padding: 20px !important;
    margin: 0 !important;
}

.login-container {
    width: 100% !important;
    max-width: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.login-header {
    text-align: center !important;
    margin-bottom: 50px !important;
    width: 100% !important;
}

.login-header h1 {
    color: white !important;
    font-size: 42px !important;
    font-weight: bold !important;
    margin: 0 !important;
    padding: 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    font-family: serif !important;
    letter-spacing: 1px !important;
}

.login-form {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.login-form .form-group {
    margin-bottom: 30px !important;
    width: 100% !important;
}

.login-form #errorMessage {
    margin-bottom: 30px !important;
    margin-top: 0 !important;
}

.login-form .btn-login {
    margin-top: 40px !important;
}

.login-form .form-group label {
    display: block !important;
    margin-bottom: 12px !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    text-align: left !important;
    font-family: "Times New Roman", Times, serif !important;
}

.login-form .form-group input {
    width: 100% !important;
    padding: 14px 16px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background-color: #B8D4F0 !important;
    color: #333 !important;
    transition: all 0.3s !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    font-family: "Times New Roman", Times, serif !important;
}

.login-form .form-group input:focus {
    outline: none !important;
    background-color: #D4E6F7 !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
}

.login-form .form-group input::placeholder {
    color: #5A7FA3 !important;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #0070FF;
    color: white;
    font-family: "Times New Roman", Times, serif !important;
}

.btn-primary:hover {
    background-color: #124499;
}

.btn-login {
    background-color: white !important;
    color: #357ABD !important;
    font-weight: bold !important;
    font-size: 16px !important;
    padding: 14px 24px !important;
    border-radius: 999px !important;
    border: none !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    font-family: "Times New Roman", Times, serif !important;
    margin-top: 40px !important;
}

.btn-login:hover:not(:disabled) {
    background-color: #F5F5F5 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.btn-login:active:not(:disabled) {
    transform: translateY(0) !important;
}

.btn-login:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.btn-secondary {
    background-color: #e9ecef;
    color: #000;
    border: none;
}

.btn-secondary:hover {
    background-color: #dee2e6;
    color: #000;
}

.btn-logout {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-logout:hover {
    background-color: #dee2e6;
}

.btn-logout svg {
    width: 16px;
    height: 16px;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Error Message */
.error-message {
    background-color: rgba(220, 53, 69, 1);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

/* Upload Modal Specific Styles */
.modal-upload-content {
    max-width: 850px;
    min-height: 500px;
}

.upload-info-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: rgba(0, 112, 255, 0.1);
    border: 1px solid rgba(0, 112, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 16px;
    color: #0070FF;
    font-size: 14px;
}

.upload-info-message svg {
    flex-shrink: 0;
}

.upload-drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    position: relative;
}

.upload-drop-zone:hover {
    border-color: #0070FF;
    background-color: #f0f7ff;
}

.upload-drop-zone.drag-over {
    border-color: #0070FF;
    background-color: #e6f3ff;
    border-style: solid;
}

.upload-drop-zone.has-file {
    border-color: #28a745;
    background-color: #f0fff4;
    border-style: solid;
}

.upload-drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-drop-content svg {
    margin-bottom: 8px;
}

.upload-drop-text {
    font-size: 16px;
    font-weight: 500;
    color: #6c757d;
    margin: 0;
}

.upload-drop-subtext {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.btn-upload-select {
    background-color: #ffffff !important;
    color: #0070FF !important;
    border: 1px solid #0070FF !important;
    padding: 10px 20px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-upload-select:hover {
    background-color: #f0f7ff !important;
    border-color: #0056b3 !important;
    color: #0056b3 !important;
}

.upload-file-name {
    margin-top: 12px;
    padding: 8px 12px;
    background-color: #e6f3ff;
    border: 1px solid #0070FF;
    border-radius: 6px;
    color: #0070FF;
    font-size: 14px;
    font-weight: 500;
}

.upload-file-success {
    margin-top: 16px;
    margin-bottom: 16px;
}

.upload-file-success-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #d4edda;
    border: 1px solid #28a745;
    border-radius: 8px;
    color: #155724;
}

.upload-file-success-content svg:first-child {
    flex-shrink: 0;
}

.upload-file-success-content span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.btn-remove-file {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #155724;
    transition: all 0.2s;
    border-radius: 4px;
    flex-shrink: 0;
}

.btn-remove-file:hover {
    background-color: rgba(40, 167, 69, 0.1);
    color: #0d4216;
}

.upload-preview {
    margin-top: 20px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.upload-preview h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.upload-preview-content {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.upload-preview-content pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 13px;
    line-height: 1.5;
}

.upload-preview-content code {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
    font-size: 13px !important;
    color: #333;
}

.upload-preview-content code.hljs,
.upload-preview-content pre code.hljs,
.upload-preview-content code.language-json,
.upload-preview-content pre code.language-json {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
    font-size: 13px !important;
    background: transparent !important;
    padding: 0 !important;
}

.upload-preview-content code.hljs {
    color: #24292e !important;
}

.upload-preview-content code.hljs .hljs-attr,
.upload-preview-content code.hljs .hljs-attribute {
    color: #0969da !important;
    font-weight: 500 !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.upload-preview-content code.hljs .hljs-string {
    color: #0a3069 !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.upload-preview-content code.hljs .hljs-number {
    color: #cf222e !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.upload-preview-content code.hljs .hljs-literal {
    color: #8250df !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.upload-preview-content code.hljs .hljs-keyword {
    color: #0969da !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.upload-preview-content code.hljs .hljs-built_in,
.upload-preview-content code.hljs .hljs-function {
    color: #8250df !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.upload-preview-content .hljs * {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.upload-preview-content code.hljs span,
.upload-preview-content code.hljs span * {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
    font-size: 13px !important;
}

.upload-preview-content code.hljs span.hljs-attr,
.upload-preview-content code.hljs span.hljs-attribute {
    color: #0969da !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.upload-preview-content code.hljs span.hljs-string {
    color: #0a3069 !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.upload-preview-content code.hljs span.hljs-number {
    color: #cf222e !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.upload-preview-content code.hljs span.hljs-literal {
    color: #8250df !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.upload-preview-content code.hljs span.hljs-keyword {
    color: #0969da !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.upload-preview-content code.hljs span.hljs-built_in,
.upload-preview-content code.hljs span.hljs-function {
    color: #8250df !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.upload-preview-content code.hljs span:not(.hljs-attr):not(.hljs-attribute):not(.hljs-string):not(.hljs-number):not(.hljs-literal):not(.hljs-keyword):not(.hljs-built_in):not(.hljs-function) {
    color: #24292e !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.upload-preview-content pre code {
    display: block;
    white-space: pre;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .modal-upload-content {
        width: 95%;
        max-width: 95%;
    }

    .upload-drop-zone {
        padding: 30px 15px;
    }

    .upload-drop-text {
        font-size: 14px;
    }

    .upload-preview-content {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .upload-drop-zone {
        padding: 25px 12px;
    }

    .upload-drop-content svg {
        width: 40px;
        height: 40px;
    }

    .upload-info-message {
        font-size: 13px;
        padding: 10px 12px;
    }

    .upload-preview-content {
        max-height: 250px;
        padding: 10px;
    }

    .upload-preview-content code {
        font-size: 12px;
    }
}

.login-form .error-message {
    background-color: rgba(220, 53, 69, 1) !important;
    color: white !important;
    margin-bottom: 20px !important;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-content h1 {
    font-size: 24px;
    color: #333;
    font-family: "Times New Roman", Times, serif !important;
    margin: 0;
    flex-shrink: 0;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
}

.username {
    font-weight: 500;
    color: #555;
}

.user-menu-wrapper {
    position: relative;
}

.btn-user-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
}

.btn-user-menu:hover {
    background-color: #dee2e6;
}

.btn-user-menu svg {
    width: 16px;
    height: 16px;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 1000;
    overflow: hidden;
}

.user-menu-item {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

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

.user-menu-item:hover {
    background-color: #f8f9fa;
}

.user-menu-logout {
    color: #dc3545 !important;
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    gap: 4px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background-color: #dee2e6;
}

.mobile-menu-toggle span {
    width: 16px;
    height: 2px;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Tabs - Horizontal menu in header */
.tabs-nav {
    display: flex;
    gap: 0;
    align-items: center;
    flex: 1;
}

.tab-button {
    padding: 12px 20px;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    font-family: "Times New Roman", Times, serif !important;
    position: relative;
    white-space: nowrap;
}

.tab-button:hover {
    color: #0070FF;
    background-color: #f8f9fa;
}

.tab-button.active {
    color: #0070FF;
    border-bottom-color: #0070FF;
    font-weight: 600;
}

/* Mobile tabs menu - Overlay */
.tabs-nav-mobile {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.tabs-nav-mobile.show {
    display: block;
}

.tabs-nav-mobile .mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    background-color: white;
    width: 280px;
    height: 100%;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    animation: slideInLeft 0.3s;
    overflow-y: auto;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.tabs-nav-mobile .tab-button {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    border-left: 3px solid transparent;
    text-align: left;
    width: 100%;
}

.tabs-nav-mobile .tab-button.active {
    border-bottom-color: #e0e0e0;
    border-left-color: #0070FF;
    background-color: #f8f9fa;
}

/* Main Content */
.main-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 15px;
    flex-wrap: wrap;
}

.page-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.page-header-search-row {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
}

.page-header-search-row .search-box {
    flex: 1;
    min-width: 0;
}

.page-header h2 {
    font-size: 24px;
    color: #333;
    font-family: "Times New Roman", Times, serif !important;
    margin: 0;
    white-space: nowrap;
}

.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-wrapper {
    position: relative;
    display: inline-block;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.search-input {
    padding: 12px 40px 12px 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    min-width: 300px;
    flex: 1;
    box-sizing: border-box;
    width: 100%;
    display: block;
    line-height: 1.5;
    height: auto;
    min-height: 44px;
}

.btn-clear-input {
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: color 0.2s;
    z-index: 10;
    height: 20px;
    width: 20px;
    line-height: 1;
}

.btn-clear-input:hover {
    color: #212529;
}

.search-box button.btn-primary {
    background-color: rgba(0, 112, 255, 0.3) !important;
    color: #0070FF !important;
    border: 1px solid rgba(0, 112, 255, 0.3) !important;
    padding: 12px 24px !important;
    height: auto;
    box-sizing: border-box;
}

.search-box button.btn-primary:hover {
    background-color: rgba(0, 112, 255, 0.4) !important;
    color: #0070FF !important;
}

.search-box button.btn-secondary {
    background-color: white !important;
    color: #0070FF !important;
    border: 1px solid #0070FF !important;
    padding: 12px 24px !important;
    height: auto;
    box-sizing: border-box;
}

.search-box button.btn-secondary:hover {
    background-color: #f8f9fa !important;
    color: #0056b3 !important;
    border-color: #0056b3 !important;
}

/* List Container */
.list-container {
    margin-bottom: 30px;
}

.list-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.list-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.list-item-info {
    flex: 1;
}

.list-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

/* Method badge colors */
.method-badge {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9em;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 8px;
    color: white;
}

.method-badge.method-get {
    background-color: #08833A;
    color: white;
}

.method-badge.method-post {
    background-color: #FF6C37;
    color: white;
}

.method-badge.method-put {
    background-color: #0480FC;
    color: white;
}

.method-badge.method-patch {
    background-color: #730AC4;
    color: white;
}

.method-badge.method-delete {
    background-color: #FF0000;
    color: white;
}

/* Other methods - default black */
.method-badge:not(.method-get):not(.method-post):not(.method-put):not(.method-patch):not(.method-delete) {
    background-color: #333;
    color: white;
}

.list-item-meta {
    font-size: 14px;
    color: #666;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.list-item-actions {
    display: flex;
    gap: 10px;
}

/* List item action buttons with opacity background */
.list-item-actions .btn-primary {
    background-color: rgba(0, 112, 255, 0.3) !important;
    color: #0070FF !important;
    border: 1px solid rgba(0, 112, 255, 0.3) !important;
}

.list-item-actions .btn-primary:hover {
    background-color: rgba(0, 112, 255, 0.4) !important;
    color: #0070FF !important;
}

.list-item-actions .btn-danger {
    background-color: rgba(220, 53, 69, 0.3) !important;
    color: #dc3545 !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
}

.list-item-actions .btn-danger:hover {
    background-color: rgba(220, 53, 69, 0.4) !important;
    color: #dc3545 !important;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    min-height: 50px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-family: "Times New Roman", Times, serif !important;
    transition: all 0.3s;
    min-width: 40px;
    min-height: 40px;
}

/* Pagination number buttons - circular */
.pagination button.page-number {
    border-radius: 50% !important;
    padding: 8px !important;
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
}

/* Pagination nav buttons (Previous/Next) - oval */
.pagination button.page-nav {
    border-radius: 999px !important;
    padding: 8px 16px !important;
    width: auto !important;
    min-width: auto !important;
}

.pagination button:hover:not(:disabled) {
    background-color: #f0f7ff;
    border-color: #0070FF;
    color: #0070FF;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background-color: #0070FF;
    color: white;
    border-color: #0070FF;
}

.pagination button.active:disabled {
    opacity: 1;
}

.pagination .page-info {
    padding: 8px 16px;
    font-size: 14px;
    color: #666;
    font-family: "Times New Roman", Times, serif !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 15px;
        gap: 12px;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
    }

    .header-content h1 {
        font-size: 18px;
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tabs-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        order: -1;
        flex-shrink: 0;
    }

    .header-user {
        gap: 10px;
        flex-shrink: 0;
    }

    .username {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 120px;
    }

    .container {
        padding: 20px 15px;
    }

    .main-content {
        padding: 20px;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .page-header-left {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        width: 100%;
    }

    .page-header-search-row {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .page-header-search-row #uploadFileBtn {
        width: 100%;
    }

    .page-header h2 {
        font-size: 20px;
    }

    .search-box {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .search-input {
        flex: 1;
        min-width: 0;
        width: 100%;
    }

    .search-box button {
        width: 100%;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .list-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .pagination button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .pagination .page-info {
        width: 100%;
        margin-top: 10px;
        text-align: left;
        padding: 0;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 12px;
        gap: 10px;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .header-content h1 {
        font-size: 16px;
        flex-shrink: 1;
        min-width: 0;
    }

    .header-user {
        gap: 8px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    .username {
        font-size: 13px;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-menu-toggle,
    .btn-logout {
        width: 36px;
        height: 36px;
    }

    .mobile-menu-toggle span {
        width: 14px;
    }

    .btn-logout svg {
        width: 14px;
        height: 14px;
    }

    .tab-button {
        padding: 14px 16px;
        font-size: 14px;
    }

    .page-header h2 {
        font-size: 18px;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s;
    display: flex;
    flex-direction: column;
}

.modal-content:not(.modal-detail-content) {
    overflow-y: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 100;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.modal-header-left {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex: 1;
}

.modal-header-left h3 {
    margin: 0;
    line-height: 1.2;
}

.detail-file-name {
    color: #6c757d;
    font-size: 14px;
    font-family: "Times New Roman", Times, serif !important;
    line-height: 1.2;
    padding-bottom: 2px;
}

.modal-header h3 {
    font-size: 20px;
    color: #333;
}

.close {
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 24px 28px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.modal-body form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.modal-body form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Modal Form Styles - Match Login Form Style */
.modal-body .form-group {
    margin-bottom: 24px;
    width: 100%;
}

.modal-body .form-group:last-of-type {
    margin-bottom: 0;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    text-align: left;
    font-family: "Times New Roman", Times, serif !important;
}

.modal-body .form-group input[type="text"],
.modal-body .form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background-color: #ffffff;
    color: #333;
    transition: all 0.3s;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: "Times New Roman", Times, serif !important;
}

.modal-body .form-group input[type="text"]:focus,
.modal-body .form-group input[type="password"]:focus {
    outline: none;
    border-color: #0070FF;
    box-shadow: 0 0 0 3px rgba(0, 112, 255, 0.1);
}

.modal-body .form-group input[type="text"]:read-only {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #666;
}

.modal-body .form-group input[type="text"]::placeholder,
.modal-body .form-group input[type="password"]::placeholder {
    color: #999;
}

.modal-body .error-message {
    margin-top: 20px;
    margin-bottom: 0;
    padding: 12px 16px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-size: 14px;
    font-family: "Times New Roman", Times, serif !important;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
    padding: 0;
    background-color: transparent;
    border: none;
}

.modal-body .checkbox-group {
    margin-top: 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    font-size: 15px;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 8px;
    transition: all 0.2s;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    font-family: "Times New Roman", Times, serif !important;
    color: #333;
}

.checkbox-group label:hover {
    background-color: #e9ecef;
    border-color: #ddd;
}

.checkbox-group label:has(input:checked) {
    background-color: #E3F2FD;
    border-color: #0070FF;
    color: #0070FF;
    font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

/* Mock Detail Modal Specific Styles */
.modal-detail-content {
    max-width: 900px !important;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mock-detail-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 12px;
    flex-shrink: 0;
    gap: 15px 25px;
}

.detail-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-info-item:last-child {
    margin-left: auto;
}

/* Rules Summary Section */
.rules-summary-section {
    margin-bottom: 12px;
    flex-shrink: 0;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
}

.rules-summary-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rules-summary-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rules-summary-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    font-family: "Times New Roman", Times, serif !important;
}

.rules-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    background-color: rgba(0, 112, 255, 0.3);
    color: #0070FF;
    border-radius: 12px;
    font-size: 12px;
    font-weight: normal;
    font-family: "Times New Roman", Times, serif !important;
    min-width: 20px;
}

.btn-toggle-rules {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background-color: transparent;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #495057;
    font-family: "Times New Roman", Times, serif !important;
    transition: all 0.2s;
}

.btn-toggle-rules:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.btn-toggle-icon {
    transition: transform 0.2s;
    transform: rotate(180deg);
}

.rules-summary-section.collapsed .btn-toggle-icon {
    transform: rotate(0deg);
}

.rules-summary-content {
    background-color: transparent;
    padding: 0;
    overflow: visible;
    transition: max-height 0.3s ease-out;
}

.rules-summary-section.collapsed .rules-summary-content {
    max-height: 0;
    overflow: hidden;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.rule-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0;
    padding: 10px 0;
    font-family: "Times New Roman", Times, serif !important;
}

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

.rule-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.rule-number {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
}

.rule-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.rule-status.status-200 {
    background-color: #d4edda;
    color: #155724;
}

.rule-status.status-400,
.rule-status.status-401,
.rule-status.status-403,
.rule-status.status-404,
.rule-status.status-500 {
    background-color: #f8d7da;
    color: #721c24;
}

.rule-delay {
    padding: 2px 8px;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.rule-match {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
}

.rule-match strong {
    color: #212529;
    font-weight: 600;
}

.detail-info-label {
    font-weight: 600;
    color: #495057;
    font-family: "Times New Roman", Times, serif !important;
    font-size: 14px;
    white-space: nowrap;
}

.detail-info-value {
    color: #212529;
    font-family: "Times New Roman", Times, serif !important;
    font-size: 14px;
}

.detail-endpoint {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
    color: #0070FF;
    font-weight: 500;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

/* Detail Tabs */
.detail-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 12px;
    flex-shrink: 0;
    overflow: visible;
}

.detail-tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #6c757d;
    font-family: "Times New Roman", Times, serif !important;
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
}

.detail-tab-button:hover {
    color: #0070FF;
    background-color: #f8f9fa;
}

.detail-tab-button.active {
    color: #0070FF;
    border-bottom-color: #0070FF;
    font-weight: 600;
}

/* Detail Tab Content */
.detail-tab-content-wrapper {
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detail-tab-content {
    display: none;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
}

.detail-tab-content.active {
    display: flex;
    flex-direction: column;
}

.detail-content-header {
    position: relative;
    margin-bottom: 0;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* For JSON tab - make content scrollable */
#detailJsonContent {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* For Request/Response tabs - make content scrollable */
#detailRequestContent,
#detailResponseContent {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    padding-bottom: 10px;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: #e9ecef;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    color: #000;
    font-family: "Times New Roman", Times, serif !important;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* Button copy trong detail-content-header (JSON, cURL tabs) */
.detail-content-header .btn-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
}

/* Button copy trong mock-detail-info (Copy URL button) - không dùng position absolute */
.mock-detail-info .btn-copy {
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
}

.btn-copy:hover {
    background-color: #dee2e6;
}

.btn-copy svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.btn-copy.copied {
    background-color: #e9ecef;
    color: #6c757d;
}

.btn-copy.copied .btn-copy-text {
    color: #6c757d;
}

.btn-copy.copied svg {
    display: none !important;
}

.detail-code-content {
    background-color: #f8f9fa;
    padding: 15px 50px 15px 15px;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: auto;
    margin: 0;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    position: relative;
    height: 100%;
    flex: 1;
    min-height: 0;
}

.detail-code-content code {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
    background: transparent;
    padding: 0;
    font-size: 13px !important;
    display: block;
    width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Default color only for unhighlighted code */
.detail-code-content code:not(.hljs) {
    color: #212529;
}

/* Request/Response Sections */
.request-section,
.response-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.request-section:last-child,
.response-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.request-section-title,
.response-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 6px 0;
    font-family: "Times New Roman", Times, serif !important;
}

.request-section-desc,
.response-section-desc {
    font-size: 13px;
    color: #6c757d;
    margin: 0 0 8px 0;
    line-height: 1.5;
    font-family: "Times New Roman", Times, serif !important;
}

.request-section-content,
.response-section-content {
    font-family: "Times New Roman", Times, serif !important;
}

.request-code-block,
.response-code-block {
    background-color: #f8f9fa;
    padding: 10px 12px;
    border-radius: 6px;
    margin: 6px 0 0 0;
    overflow-x: auto;
    border: 1px solid #e9ecef;
}

.request-code-block,
.response-code-block {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.request-code-block code,
.response-code-block code {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
    font-size: 13px !important;
}

.request-code-block code:not(.hljs),
.response-code-block code:not(.hljs) {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
    font-size: 13px !important;
    color: #212529;
}

.request-query-string {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
    background-color: #f8f9fa;
    padding: 10px 12px;
    border-radius: 6px;
    margin: 6px 0 0 0;
    border: 1px solid #e9ecef;
    color: #212529;
    font-size: 13px;
    display: inline-block;
}

.endpoint-code {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    color: #0070FF;
    font-weight: 500;
}

.response-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.response-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: "Times New Roman", Times, serif !important;
}

.response-status.status-200 {
    background-color: #d4edda;
    color: #155724;
}

.response-status.status-400,
.response-status.status-401,
.response-status.status-403,
.response-status.status-404,
.response-status.status-500 {
    background-color: #f8d7da;
    color: #721c24;
}

.response-delay {
    padding: 4px 10px;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    font-family: "Times New Roman", Times, serif !important;
}

.response-headers,
.response-body {
    margin-top: 12px;
}

.response-headers strong,
.response-body strong {
    font-size: 14px;
    color: #212529;
    font-family: "Times New Roman", Times, serif !important;
    display: block;
    margin-bottom: 6px;
}

/* Highlight.js for request/response code blocks - ensure monospace font for ALL elements */
.request-code-block *,
.response-code-block * {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.request-code-block code.hljs,
.response-code-block code.hljs,
.request-code-block code.hljs *,
.response-code-block code.hljs *,
.request-code-block code.hljs span,
.response-code-block code.hljs span,
.request-code-block code.hljs span *,
.response-code-block code.hljs span * {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
    font-size: 13px !important;
}

.request-code-block code.hljs .hljs-attr,
.request-code-block code.hljs .hljs-attribute,
.response-code-block code.hljs .hljs-attr,
.response-code-block code.hljs .hljs-attribute {
    color: #0969da !important;
    font-weight: 500 !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.request-code-block code.hljs .hljs-string,
.response-code-block code.hljs .hljs-string {
    color: #0a3069 !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.request-code-block code.hljs .hljs-number,
.response-code-block code.hljs .hljs-number {
    color: #cf222e !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.request-code-block code.hljs .hljs-literal,
.response-code-block code.hljs .hljs-literal {
    color: #8250df !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.request-code-block code.hljs .hljs-keyword,
.response-code-block code.hljs .hljs-keyword {
    color: #0969da !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.request-code-block code.hljs,
.response-code-block code.hljs {
    background: transparent !important;
    padding: 0 !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

/* Highlight.js overrides for detail modal - same colors as guide-content */
.detail-code-content code.hljs {
    background: transparent !important;
    padding: 0 !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
    font-size: 13px !important;
}

.detail-code-content code.hljs,
.detail-code-content code.hljs * {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
    font-size: 13px !important;
}

/* Base text color for highlighted code */
.detail-code-content code.hljs {
    color: #24292e !important;
}

.detail-code-content code.hljs .hljs-attr,
.detail-code-content code.hljs .hljs-attribute {
    color: #0969da !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
    font-weight: 500 !important;
}

.detail-code-content code.hljs .hljs-string {
    color: #0a3069 !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.detail-code-content code.hljs .hljs-number {
    color: #cf222e !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.detail-code-content code.hljs .hljs-literal {
    color: #8250df !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.detail-code-content code.hljs .hljs-keyword {
    color: #0969da !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.detail-code-content code.hljs .hljs-built_in,
.detail-code-content code.hljs .hljs-function {
    color: #8250df !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

/* Override any inline styles from highlight.js - ensure child elements use their specific colors and monospace font */
.detail-code-content code.hljs span,
.detail-code-content code.hljs span * {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
    font-size: 13px !important;
}

.detail-code-content code.hljs span.hljs-attr,
.detail-code-content code.hljs span.hljs-attribute {
    color: #0969da !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.detail-code-content code.hljs span.hljs-string {
    color: #0a3069 !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.detail-code-content code.hljs span.hljs-number {
    color: #cf222e !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.detail-code-content code.hljs span.hljs-literal {
    color: #8250df !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.detail-code-content code.hljs span.hljs-keyword {
    color: #0969da !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.detail-code-content code.hljs span.hljs-built_in,
.detail-code-content code.hljs span.hljs-function {
    color: #8250df !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

/* Base text color for non-highlighted spans inside hljs */
.detail-code-content code.hljs>span:not([class]),
.detail-code-content code.hljs span:not(.hljs-attr):not(.hljs-attribute):not(.hljs-string):not(.hljs-number):not(.hljs-literal):not(.hljs-keyword):not(.hljs-built_in):not(.hljs-function) {
    color: #24292e !important;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

/* Responsive for Detail Modal */
@media (max-width: 768px) {
    .modal-detail-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px;
    }

    .mock-detail-info {
        padding: 10px 12px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .detail-info-item {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .detail-info-label {
        min-width: 80px;
    }

    .detail-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .detail-tab-button {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    .detail-tab-content-wrapper {
        height: 350px;
    }

    .detail-code-content {
        padding: 12px 45px 12px 12px;
        font-size: 12px;
    }

    .detail-content-header .btn-copy {
        top: 8px;
        right: 10px;
        padding: 5px 12px;
        font-size: 12px;
        border-radius: 999px;
    }

    .mock-detail-info .btn-copy {
        position: static;
        top: auto;
        right: auto;
        padding: 6px 14px;
        font-size: 13px;
    }

    .btn-copy svg {
        width: 14px;
        height: 14px;
    }
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #666;
    font-family: "Times New Roman", Times, serif !important;
}

/* Guide/Documentation Page Styles */
.guide-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    line-height: 1.8;
    color: #333;
    font-family: "Times New Roman", Times, serif !important;
}

.guide-content h1 {
    font-size: 32px;
    color: #0070FF;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0070FF;
    font-weight: bold;
}

.guide-content h1:first-child {
    margin-top: 0;
}

.guide-content h2 {
    font-size: 26px;
    color: #124499;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
}

.guide-content h3 {
    font-size: 22px;
    color: #333;
    margin-top: 30px;
    margin-bottom: 12px;
    font-weight: 600;
}

.guide-content h4 {
    font-size: 18px;
    color: #555;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

.guide-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.guide-content ul,
.guide-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.guide-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.guide-content code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
    border: 1px solid #e0e0e0;
}

.guide-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.guide-content pre code {
    background-color: transparent;
    padding: 0;
    border: none;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    display: block;
    white-space: pre;
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

.guide-content pre code * {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
}

/* JSON Syntax Highlighting - handled by JavaScript */
.guide-content pre code.language-json,
.guide-content pre code.hljs,
.guide-content pre code.language-json *,
.guide-content pre code.hljs * {
    font-family: 'Courier New', 'Monaco', 'Consolas', 'Menlo', monospace !important;
    color: #24292e;
}

.guide-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.guide-content table thead {
    background-color: #5a6c7d;
    color: white;
}

.guide-content table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid #4a5568;
}

.guide-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.guide-content table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.guide-content table tbody tr:hover {
    background-color: #e8f4f8;
    transition: background-color 0.2s;
}

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

.guide-content blockquote {
    border-left: 4px solid #0070FF;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
    background-color: #f0f7ff;
    padding: 15px 20px;
    border-radius: 4px;
}

.guide-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 40px 0;
}

.guide-content strong {
    color: #124499;
    font-weight: 600;
}

/* Responsive guide content */
@media (max-width: 768px) {
    .guide-content {
        padding: 20px;
    }

    .guide-content h1 {
        font-size: 26px;
    }

    .guide-content h2 {
        font-size: 22px;
    }

    .guide-content h3 {
        font-size: 20px;
    }

    .guide-content table {
        font-size: 12px;
    }

    .guide-content table th,
    .guide-content table td {
        padding: 10px;
    }

    .guide-content pre {
        padding: 15px;
        font-size: 12px;
    }
}

/* Detail Modal */
#mockDetailContent {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    max-height: 60vh;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {

    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .page-header-left {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .page-header-search-row {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .page-header-search-row #uploadFileBtn {
        width: 100%;
    }

    .page-header h2 {
        font-size: 18px;
    }

    .search-box {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .search-input-wrapper {
        position: relative;
        display: block;
        width: 100%;
    }

    .search-input {
        flex: 1;
        min-width: 0;
        width: 100%;
        font-size: 14px;
        padding-right: 40px;
        padding-left: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
        box-sizing: border-box;
        height: 44px;
        line-height: 24px;
    }

    .btn-clear-input {
        position: absolute;
        right: 12px;
        top: 0;
        bottom: 0;
        margin: auto 0;
        height: 20px;
        width: 20px;
        padding: 0;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-box button {
        width: 100%;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .list-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}