/* ===================================
   AI.Agent Studio - Dark Theme
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #0f0f14;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #3B82F6;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: #60a5fa;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Scrollbar (Dark) --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0f14;
}
::-webkit-scrollbar-thumb {
    background: #2a2a3a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a3a4a;
}
* {
    scrollbar-width: thin;
    scrollbar-color: #2a2a3a #0f0f14;
}

/* --- Navbar --- */
.navbar {
    background-color: #12121a;
    border-bottom: 1px solid #2a2a3a;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    font-size: 18px;
    font-weight: 700;
    color: #e0e0e0;
    letter-spacing: -0.5px;
}

.navbar .logo span {
    color: #3B82F6;
}

.navbar .nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.navbar .nav-links a {
    color: #a0a0b0;
    font-size: 14px;
    transition: color 0.2s ease;
}
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: #e0e0e0;
}

.navbar .nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar .nav-user .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2a2a3a;
}

/* --- Cards --- */
.card {
    background-color: #1a1a24;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    border-color: #3a3a4a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background-color: #3B82F6;
    color: #fff;
}
.btn-primary:hover {
    background-color: #2563EB;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: #2a2a3a;
    color: #e0e0e0;
}
.btn-secondary:hover {
    background-color: #3a3a4a;
}

.btn-success {
    background-color: #10B981;
    color: #fff;
}
.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: #EF4444;
    color: #fff;
}
.btn-danger:hover {
    background-color: #DC2626;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 10px;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* --- Chips (Selection Pills) --- */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #1a1a24;
    border: 1px solid #2a2a3a;
    border-radius: 20px;
    font-size: 14px;
    color: #a0a0b0;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.chip:hover {
    border-color: #4a4a5a;
    color: #e0e0e0;
}
.chip.sel {
    background-color: #1a2740;
    border-color: #3B82F6;
    color: #3B82F6;
    font-weight: 500;
}

.chip-all {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 14px;
    background-color: transparent;
    border: 1px dashed #2a2a3a;
    color: #6a6a7a;
}
.chip-all:hover {
    border-color: #3B82F6;
    color: #3B82F6;
}

/* --- Inputs --- */
.input {
    width: 100%;
    padding: 10px 14px;
    background-color: #1a1a24;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}
.input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.input::placeholder {
    color: #4a4a5a;
}

textarea.input {
    resize: vertical;
    min-height: 100px;
}

select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236a6a7a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* --- Tables --- */
.table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #2a2a3a;
}

table.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table.table th {
    background-color: #12121a;
    color: #a0a0b0;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #2a2a3a;
    white-space: nowrap;
}

table.table td {
    padding: 12px 16px;
    border-bottom: 1px solid #1a1a24;
    color: #e0e0e0;
}

table.table tbody tr:nth-child(even) {
    background-color: #1a1a24;
}
table.table tbody tr:hover {
    background-color: #1e1e2e;
}

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

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10B981;
}
.badge-info {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}
.badge-warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}
.badge-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

/* --- Progress Bars --- */
.progress-wrap {
    width: 100%;
    height: 8px;
    background-color: #2a2a3a;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #3B82F6;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.progress-bar.success {
    background-color: #10B981;
}

.progress-bar.warning {
    background-color: #F59E0B;
}

.progress-bar.danger {
    background-color: #EF4444;
}

/* --- Metrics --- */
.metric {
    text-align: center;
    padding: 20px;
}
.metric-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}
.metric-value.text-primary { color: #3B82F6; }
.metric-value.text-success { color: #10B981; }
.metric-value.text-warning { color: #F59E0B; }
.metric-value.text-danger  { color: #EF4444; }
.metric-label {
    font-size: 13px;
    color: #6a6a7a;
    margin-top: 4px;
}

/* --- Animations --- */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #F59E0B;
    animation: pulse 1.5s ease-in-out infinite;
}
.status-dot.done {
    background-color: #10B981;
    animation: none;
}
.status-dot.failed {
    background-color: #EF4444;
    animation: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #2a2a3a;
    border-top-color: #3B82F6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* --- Skeleton Loading --- */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, #1a1a24 25%, #2a2a3a 50%, #1a1a24 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}
.skeleton-text {
    height: 16px;
    margin-bottom: 10px;
}
.skeleton-block {
    height: 200px;
    border-radius: 12px;
}

/* --- Code/Pre --- */
pre, code {
    font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
}

code {
    background-color: #1a1a24;
    color: #4ADE80;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

pre {
    background-color: #0a0a12;
    color: #4ADE80;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.5;
}
pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* --- Transitions --- */
.fade-enter {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.fade-enter.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Layout Helpers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
    gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex {
    display: flex;
    align-items: center;
}
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-col {
    display: flex;
    flex-direction: column;
}
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* Spacing */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-16  { padding: 16px; }
.p-24  { padding: 24px; }

/* Text helpers */
.text-center { text-align: center; }
.text-muted { color: #6a6a7a; }
.text-sm    { font-size: 13px; }
.text-xs    { font-size: 12px; }
.text-lg    { font-size: 18px; }
.text-xl    { font-size: 24px; }
.text-primary { color: #3B82F6; }
.text-success { color: #10B981; }
.text-warning { color: #F59E0B; }
.text-danger  { color: #EF4444; }

/* Hidden */
.hidden { display: none !important; }

/* --- Step Indicator --- */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
}
.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #2a2a3a;
    color: #6a6a7a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.step-item.active .step-num,
.step-item.done .step-num {
    background-color: #3B82F6;
    color: #fff;
}
.step-item.done .step-num {
    background-color: #10B981;
}
.step-label {
    font-size: 14px;
    color: #6a6a7a;
}
.step-item.active .step-label {
    color: #e0e0e0;
}
.step-item.done .step-label {
    color: #10B981;
}
.step-line {
    width: 60px;
    height: 2px;
    background-color: #2a2a3a;
    margin: 0 12px;
}
.step-line.active {
    background-color: #3B82F6;
}

/* --- Preview Panel --- */
.preview-panel {
    background-color: #12121a;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 24px;
    min-height: 400px;
}
.preview-panel .preview-header {
    font-size: 14px;
    color: #6a6a7a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a3a;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.modal {
    background-color: #1a1a24;
    border: 1px solid #2a2a3a;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.2s ease;
}
.modal-overlay.show .modal {
    transform: translateY(0);
}

/* --- QR Upload --- */
.qr-upload-area {
    border: 2px dashed #2a2a3a;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.qr-upload-area:hover {
    border-color: #3B82F6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
        height: 56px;
    }
    .navbar .nav-links {
        gap: 16px;
    }
    .container {
        padding: 0 16px;
    }
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .card {
        padding: 16px;
    }
    .step-indicator {
        flex-wrap: wrap;
        gap: 12px;
    }
    .step-line {
        display: none;
    }
    .chip-group {
        gap: 8px;
    }
    .chip {
        padding: 6px 12px;
        font-size: 13px;
    }
    table.table th,
    table.table td {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .navbar .nav-links {
        display: none;
    }
    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }
    .metric-value {
        font-size: 24px;
    }
}

/* ===================================
   暗黑科技风 - 页面布局组件
   =================================== */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a3a;
}

/* Navbar dark tech */
.navbar-dark-tech {
    background: linear-gradient(180deg, #12121a 0%, #0f0f14 100%);
    border-bottom: 1px solid #2a2a3a;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}
.navbar-dark-tech .brand {
    font-size: 18px;
    font-weight: 700;
    color: #3B82F6;
    letter-spacing: -0.5px;
}
.navbar-dark-tech .agent-name {
    font-size: 13px;
    color: #a0a0b0;
    padding-left: 16px;
    border-left: 1px solid #2a2a3a;
}
.navbar-dark-tech .nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
}
.navbar-dark-tech .nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    color: #a0a0b0;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.navbar-dark-tech .nav-links a:hover {
    color: #e0e0e0;
    background: rgba(59, 130, 246, 0.08);
}
.navbar-dark-tech .nav-links a.active {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.12);
}

/* Speed badge */
.speed-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    font-size: 12px;
    color: #10B981;
}
.speed-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Card dark */
.card-dark {
    background-color: #1a1a24;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}
.card-dark .card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid #2a2a3a;
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
}
.card-dark .card-body {
    padding: 20px;
}

/* Buttons tech */
.btn-primary-tech {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-primary-tech:hover {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    box-shadow: 0 2px 16px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}
.btn-primary-tech:active {
    transform: scale(0.97);
}
.btn-primary-tech:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-primary-tech.loading .spinner {
    display: inline-block !important;
}
.btn-primary-tech .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.btn-outline-tech {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    color: #a0a0b0;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-outline-tech:hover {
    border-color: #3B82F6;
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.08);
}

/* Form control dark */
.form-control-dark {
    padding: 10px 14px;
    background-color: #1a1a24;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control-dark:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.form-control-dark::placeholder {
    color: #4a4a5a;
}
.form-control-dark.w-100 {
    width: 100%;
}

.form-label-dark {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #8888aa;
    margin-bottom: 6px;
}

/* Chip btn */
.chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #1a1a24;
    border: 1px solid #2a2a3a;
    border-radius: 20px;
    font-size: 14px;
    color: #a0a0b0;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    margin: 2px;
}
.chip-btn:hover {
    border-color: #4a4a5a;
    color: #e0e0e0;
}
.chip-btn.active,
.chip-btn.sel {
    background-color: #1a2740;
    border-color: #3B82F6;
    color: #3B82F6;
    font-weight: 500;
}
.chip-btn i {
    opacity: 0;
    transition: opacity 0.15s ease;
    font-size: 12px;
}
.chip-btn.active i {
    opacity: 1;
}

/* Step card */
.step-card {
    background-color: #1a1a24;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: border-color 0.2s ease;
}
.step-card:hover {
    border-color: #3a3a4a;
}

.step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a3a;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3B82F6;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Badge tech */
.badge-tech {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.badge-queued {
    background-color: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}
.badge-processing {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}
.badge-done {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10B981;
}
.badge-failed {
    background-color: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

/* Progress tech */
.progress-tech {
    width: 100%;
    height: 6px;
    background-color: #2a2a3a;
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-tech {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Metrics bar */
.metrics-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid #2a2a3a;
    margin-top: 24px;
}
.metric-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.metric-item .label {
    font-size: 11px;
    color: #6a6a7a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.metric-item .value {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
}
.metric-item .value.fast {
    color: #10B981;
}
.metric-item .value.medium {
    color: #F59E0B;
}

/* Auth card (login) */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: #16161e;
    border: 1px solid #2a2a3a;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.brand-section {
    text-align: center;
    margin-bottom: 28px;
}
.brand-title {
    font-size: 24px;
    font-weight: 700;
    color: #e0e0e0;
    letter-spacing: -1px;
    margin-bottom: 6px;
}
.brand-subtitle {
    font-size: 13px;
    color: #6a6a7a;
}

.nav-tabs-tech {
    display: flex;
    border-bottom: 1px solid #2a2a3a;
    margin-bottom: 20px;
    gap: 0;
}
.nav-tabs-tech .nav-link {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6a6a7a;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.nav-tabs-tech .nav-link:hover {
    color: #a0a0b0;
}
.nav-tabs-tech .nav-link.active {
    color: #3B82F6;
    border-bottom-color: #3B82F6;
}

.alert-error {
    display: none;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    color: #EF4444;
    font-size: 13px;
    margin-bottom: 16px;
}
.alert-error.show {
    display: block;
}

.alert-success {
    display: block;
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    color: #10B981;
    font-size: 13px;
    margin-bottom: 16px;
}

.wx-qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    background: #1a1a24;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    color: #6a6a7a;
}
.wx-qr-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}
.wx-qr-placeholder .text {
    font-size: 14px;
}

/* Profile */
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 768px) {
    .profile-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
}

.profile-info-item .label {
    font-size: 12px;
    color: #6a6a7a;
    margin-bottom: 4px;
}
.profile-info-item .value {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
}

.brand-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 14px;
    font-size: 13px;
    color: #60A5FA;
    margin: 2px 4px;
}

/* Task list */
.task-row {
    transition: background-color 0.15s ease;
}
.task-row:hover {
    background-color: #1e1e2e !important;
}

.task-detail {
    display: none;
    background-color: #14141c;
}
.task-detail td {
    padding: 20px !important;
}

.result-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #12121a;
    border: 1px solid #2a2a3a;
    border-radius: 6px;
    margin-bottom: 6px;
}
.result-file .file-name {
    font-size: 13px;
    color: #a0a0b0;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6a6a7a;
}
.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}
.empty-state .text {
    font-size: 15px;
    margin-bottom: 8px;
}

/* Fade animation */
.fade-in {
    animation: fadeIn 0.3s ease;
}

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

/* Spacing extras */
.mb-12 { margin-bottom: 12px; }
.mt-12 { margin-top: 12px; }
.mb-3  { margin-bottom: 8px; }
.mb-4  { margin-bottom: 16px; }

/* QR upload */
.qr-upload-area.visible {
    display: block;
}
.qr-upload-area .fa-qrcode {
    font-size: 32px;
    color: #6a6a7a;
    margin-bottom: 12px;
}
.qr-upload-area .qr-text {
    font-size: 14px;
    color: #a0a0b0;
    margin-bottom: 4px;
}

/* Preview panel */
.preview-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.preview-panel i.fa-cube {
    font-size: 48px;
    color: #3a3a4a;
    margin-bottom: 12px;
}
.preview-panel span {
    font-size: 14px;
    color: #6a6a7a;
}

/* Responsive extras */
@media (max-width: 768px) {
    .page-container {
        padding: 16px;
    }
    .navbar-dark-tech {
        padding: 0 16px;
        height: 56px;
    }
    .navbar-dark-tech .nav-links a {
        padding: 6px 10px;
        font-size: 12px;
    }
    .navbar-dark-tech .agent-name {
        display: none;
    }
    .auth-card {
        padding: 24px;
        margin: 16px;
    }
    .metrics-bar {
        gap: 12px;
    }
}
