/* Modern Dark Theme - dmIntegroff Design */
:root {
    --background: oklch(0.13 0.01 260);
    --foreground: oklch(0.97 0 0);
    --card: oklch(0.17 0.01 260);
    --card-foreground: oklch(0.97 0 0);
    --primary: oklch(0.65 0.15 280);
    --primary-foreground: oklch(0.98 0 0);
    --secondary: oklch(0.22 0.01 260);
    --secondary-foreground: oklch(0.85 0 0);
    --muted: oklch(0.22 0.01 260);
    --muted-foreground: oklch(0.6 0 0);
    --accent: oklch(0.65 0.15 280);
    --accent-foreground: oklch(0.98 0 0);
    --destructive: oklch(0.55 0.2 25);
    --destructive-foreground: oklch(0.98 0 0);
    --success: oklch(0.65 0.17 145);
    --success-foreground: oklch(0.15 0 0);
    --warning: oklch(0.75 0.15 85);
    --warning-foreground: oklch(0.15 0 0);
    --border: oklch(0.28 0.01 260);
    --input: oklch(0.22 0.01 260);
    --ring: oklch(0.65 0.15 280);
    --sidebar: oklch(0.11 0.01 260);
    --sidebar-foreground: oklch(0.97 0 0);
    --sidebar-primary: oklch(0.65 0.15 280);
    --sidebar-accent: oklch(0.22 0.01 260);
    --sidebar-border: oklch(0.25 0.01 260);
    --radius: 0.625rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 90%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 230px;
    height: 100vh;
    background: var(--sidebar);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    padding: 2rem 1rem 1.5rem;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-logo-img {
    width: 100%;
    max-width: 162px;
    height: auto;
}

.sidebar-logo h1 {
    display: none;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.5rem;
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.25rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    color: var(--muted-foreground);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.15s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.sidebar-nav a:hover {
    background: color-mix(in srgb, var(--sidebar-accent) 50%, transparent);
    color: var(--sidebar-foreground);
}

.sidebar-nav a.active {
    background: var(--sidebar-accent);
    color: var(--sidebar-foreground);
}

.sidebar-nav a i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-settings {
    padding: 0.5rem;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-settings a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    color: var(--muted-foreground);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.15s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.sidebar-settings a:hover {
    background: color-mix(in srgb, var(--sidebar-accent) 50%, transparent);
    color: var(--sidebar-foreground);
}

.sidebar-user {
    padding: 0.75rem;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    background: color-mix(in srgb, var(--primary) 20%, transparent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.sidebar-user-details {
    flex: 1;
    min-width: 0;
}

.sidebar-user-details h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sidebar-foreground);
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-details p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.logout-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--muted-foreground);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.logout-btn:hover {
    background: color-mix(in srgb, var(--destructive) 20%, transparent);
    color: var(--destructive);
}

/* Main Content */
.main-content {
    margin-left: 230px;
    padding: 1.5rem 2rem;
    min-height: 100vh;
}

/* Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.page-header-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.page-header-logo {
    height: 60px;
    width: auto;
}

.page-header-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
}

.mobile-menu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--muted);
    border-color: var(--primary);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all 0.15s ease;
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.stat-card-title {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon i {
    width: 20px;
    height: 20px;
}

.stat-card-value {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--card-foreground);
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.stat-card-change {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--card-foreground);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--primary-foreground);
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn:hover {
    background: color-mix(in srgb, var(--primary) 90%, black);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover {
    background: color-mix(in srgb, var(--secondary) 80%, white);
}

.btn-success {
    background: var(--success);
    color: var(--success-foreground);
}

.btn-success:hover {
    background: color-mix(in srgb, var(--success) 90%, black);
}

.btn-danger {
    background: var(--destructive);
    color: var(--destructive-foreground);
}

.btn-danger:hover {
    background: color-mix(in srgb, var(--destructive) 90%, black);
}

.btn-sm {
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    min-width: auto;
}

.btn-sm i[data-lucide],
.btn-sm svg {
    width: 14px !important;
    height: 14px !important;
    stroke-width: 2;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 20%, transparent);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

small {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
}

/* Table */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th,
td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 500;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tbody tr:hover {
    background: color-mix(in srgb, var(--muted) 30%, transparent);
}

/* Mobile Cards for Tables */
.mobile-card-list {
    display: none;
}

.mobile-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.mobile-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    flex: 1;
    word-wrap: break-word;
}

.mobile-card-actions {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

.mobile-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.mobile-card-label {
    color: var(--muted-foreground);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.mobile-card-value {
    color: var(--foreground);
    text-align: right;
    word-wrap: break-word;
    flex: 1;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.badge-success {
    background: color-mix(in srgb, var(--success) 20%, transparent);
    color: var(--success);
}

.badge-warning {
    background: color-mix(in srgb, var(--warning) 20%, transparent);
    color: var(--warning);
}

.badge-danger {
    background: color-mix(in srgb, var(--destructive) 20%, transparent);
    color: var(--destructive);
}

.badge-info {
    background: color-mix(in srgb, var(--primary) 20%, transparent);
    color: var(--primary);
}

/* Info boxes */
.info-box {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border-left: 3px solid var(--primary);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.warning-box {
    background: color-mix(in srgb, var(--warning) 10%, transparent);
    border-left: 3px solid var(--warning);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.error-box {
    background: color-mix(in srgb, var(--destructive) 10%, transparent);
    border: 1px solid var(--destructive);
    color: var(--destructive);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.success-box {
    background: color-mix(in srgb, #10b981 10%, transparent);
    border: 1px solid #10b981;
    color: #10b981;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* Code blocks */
code {
    background: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

pre {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 1rem; }

/* Responsive utilities */
.hide-on-mobile {
    display: inline-flex;
}

.show-on-mobile {
    display: none;
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    /* Скрываем обычный page-header и показываем мобильную версию */
    .page-header {
        display: none;
    }
    
    .page-header-mobile {
        display: flex;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Скрываем таблицу и показываем карточки на мобильных */
    .table-container {
        display: none;
    }
    
    .mobile-card-list {
        display: block;
    }
    
    /* Скрываем/показываем элементы на мобильных */
    .hide-on-mobile {
        display: none !important;
    }
    
    .show-on-mobile {
        display: block;
    }
    
    .bottom-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-list {
        gap: 0.75rem;
    }
    
    .activity-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .activity-time {
        align-self: flex-start;
        font-size: 0.6875rem;
    }
    
    .activity-message {
        font-size: 0.8125rem;
    }
    
    .activity-integration {
        font-size: 0.6875rem;
    }
    
    .progress-container {
        padding: 0 0.75rem 0.75rem 0.75rem;
    }
    
    .steps-list {
        padding: 0 0.75rem 0.75rem 0.75rem;
    }
    
    .step-item {
        font-size: 0.875rem;
        gap: 0.5rem;
    }
    
    .step-icon {
        width: 18px;
        height: 18px;
    }
    
    .step-text {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    /* Скрываем стрелку на планшетах для экономии места */
    .step-item i[data-lucide="arrow-right"] {
        display: none;
    }
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    text-align: left;
    height: auto;
}

.quick-action-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.quick-action-header i {
    width: 16px;
    height: 16px;
}

.quick-action-arrow {
    margin-left: auto;
    opacity: 0.5;
}

.quick-action-arrow i {
    width: 14px;
    height: 14px;
}

.quick-action-desc {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.7;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Getting Started Steps */
.progress-container {
    padding: 0 1.5rem 1rem 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.progress-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.progress-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
    overflow: hidden;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.step-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.step-icon.completed {
    color: var(--success);
}

.step-icon.pending {
    color: var(--muted-foreground);
}

.step-text {
    color: var(--card-foreground);
    flex: 1;
    min-width: 0;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Стрелка в step-item */
.step-item i[data-lucide="arrow-right"] {
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.step-text.completed {
    color: var(--muted-foreground);
    text-decoration: line-through;
}

/* Recent Activity */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    max-width: 100%;
}

.activity-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.activity-integration {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-message {
    font-size: 0.875rem;
    color: var(--card-foreground);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.activity-url {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
    font-family: 'Courier New', monospace;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Bottom Grid Layout */
.bottom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .bottom-grid {
        grid-template-columns: 1fr;
    }
}

/* Lucide Icons Support */
i[data-lucide],
svg[data-lucide] {
    display: inline-block;
    stroke-width: 2;
}

/* Default icon size for buttons and inline elements */
.btn i[data-lucide],
.btn svg[data-lucide] {
    width: 16px !important;
    height: 16px !important;
}

/* Sidebar icons - normal size */
.sidebar i[data-lucide],
.sidebar svg[data-lucide] {
    width: 20px !important;
    height: 20px !important;
}

/* Dashboard icons - normal size */
.stat-card-icon i[data-lucide],
.stat-card-icon svg[data-lucide],
.quick-action-header i[data-lucide],
.quick-action-header svg[data-lucide],
.step-icon i[data-lucide],
.step-icon svg[data-lucide] {
    width: 20px !important;
    height: 20px !important;
}

/* Card title icons - 18x18 */
.card-title i[data-lucide],
.card-title svg[data-lucide],
h2 i[data-lucide],
h2 svg[data-lucide],
h3 i[data-lucide],
h3 svg[data-lucide] {
    width: 18px !important;
    height: 18px !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
    }
    
    .page-header-mobile {
        margin-bottom: 1rem;
        gap: 0.75rem;
    }
    
    .page-header-logo {
        height: 80px;
    }
    
    .page-header-title {
        font-size: 1.375rem;
    }
    
    .card {
        padding: 0.75rem;
    }
    
    .card-header {
        padding: 0.75rem;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .card-title {
        font-size: 0.9375rem;
    }
    
    .progress-container {
        padding: 0 0.5rem 0.5rem 0.5rem;
    }
    
    .progress-label,
    .progress-value {
        font-size: 0.8125rem;
    }
    
    .steps-list {
        gap: 0.5rem;
        padding: 0 0.5rem 0.5rem 0.5rem;
    }
    
    .step-item {
        font-size: 0.8125rem;
        gap: 0.5rem;
        padding: 0;
    }
    
    .step-icon {
        width: 16px;
        height: 16px;
    }
    
    .step-text {
        font-size: 0.8125rem;
        line-height: 1.4;
    }
    
    /* Стрелка уже скрыта на планшетах */
    
    .activity-list {
        gap: 0.5rem;
        padding: 0 0.5rem 0.5rem 0.5rem;
    }
    
    .activity-item {
        gap: 0.375rem;
    }
    
    .activity-header {
        gap: 0.375rem;
    }
    
    .activity-message {
        font-size: 0.8125rem;
        line-height: 1.4;
    }
    
    .activity-integration {
        font-size: 0.6875rem;
        max-width: 100%;
    }
    
    .activity-time {
        font-size: 0.6875rem;
    }
}

/* Logs Page Styles */
.filter-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-form input,
.filter-form select {
    flex: 1;
    min-width: 200px;
}

.log-entry {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.log-entry.error-log {
    border-color: var(--destructive);
    background: color-mix(in srgb, var(--destructive) 5%, transparent);
}

.error-message {
    padding: 1rem;
    background: color-mix(in srgb, var(--destructive) 10%, transparent);
    border-radius: var(--radius);
    color: var(--destructive);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.log-meta {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.log-method {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.log-method.POST {
    background: color-mix(in srgb, var(--success) 20%, transparent);
    color: var(--success);
}

.log-method.GET {
    background: color-mix(in srgb, var(--primary) 20%, transparent);
    color: var(--primary);
}

.log-method.PUT {
    background: color-mix(in srgb, var(--warning) 20%, transparent);
    color: var(--warning);
}

.log-method.DELETE {
    background: color-mix(in srgb, var(--destructive) 20%, transparent);
    color: var(--destructive);
}

.log-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.75rem;
    font-weight: 600;
}

.log-status.success {
    background: color-mix(in srgb, var(--success) 20%, transparent);
    color: var(--success);
}

.log-status.error {
    background: color-mix(in srgb, var(--destructive) 20%, transparent);
    color: var(--destructive);
}

.log-section {
    margin-top: 0.75rem;
}

.log-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.log-code {
    background: var(--muted);
    padding: 0.75rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* Warning and Info Boxes */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
    color: #0c5460;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Help Page Styles */
.help-section {
    margin-bottom: 2rem;
}

.help-section h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.help-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.help-list {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.help-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Login Page Styles */
body:has(.login-container) {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.login-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--primary) 20%, transparent);
    margin-bottom: 1rem;
}

.login-logo-icon i {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.login-logo h1 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--foreground);
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.login-logo p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* JSON Syntax Highlighting */
.json-highlight {
    background: var(--muted);
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    margin: 0;
}

.json-highlight code {
    background: transparent;
    padding: 0;
    color: var(--foreground);
}

.json-key {
    color: oklch(0.75 0.15 280); /* Purple for keys */
    font-weight: 500;
}

.json-string {
    color: oklch(0.7 0.15 145); /* Green for strings */
}

.json-number {
    color: oklch(0.75 0.15 85); /* Yellow for numbers */
}

.json-boolean {
    color: oklch(0.7 0.2 25); /* Orange for booleans */
    font-weight: 600;
}

.json-null {
    color: var(--muted-foreground);
    font-style: italic;
}

/* Alert Styles */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.alert i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: color-mix(in srgb, var(--success) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
    color: var(--success);
}

.alert-danger {
    background: color-mix(in srgb, var(--destructive) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--destructive) 30%, transparent);
    color: var(--destructive);
}

.alert-warning {
    background: color-mix(in srgb, var(--warning) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
    color: var(--warning);
}

.alert-info {
    background: color-mix(in srgb, var(--primary) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
    color: var(--primary);
}
