/* Modern Agent Board UI - Inspired by Linear, Notion, Stripe */

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

/* Typography & Base */
html {
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f8f8;
    color: #222;
    line-height: 1.5;
}

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

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 24px 0;
}

.header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.025em;
}

/* Main Content */
.main-content {
    padding: 48px 0 80px 0;
}

/* Header Brand */
.header-brand {
    display: flex;
    align-items: center;
    gap: 32px;
}

@media (max-width: 768px) {
    .header-brand {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .company-logo {
        height: 100px;
        max-width: 350px;
    }

    .header-text h1 {
        font-size: 1.875rem;
    }

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

    .header {
        padding: 24px 0;
    }
}

.company-logo {
    height: 120px;
    width: auto;
    max-width: 450px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor;
}

.header-text h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.025em;
}

.header-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.page-header p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* Agent Grid */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

/* Agent Cards */
.agent-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.15s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.agent-card:hover {
    border-color: #666;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.agent-card.available {
    border-left: 3px solid #28a745;
}

.agent-card.coming-soon {
    border-left: 3px solid #ffc107;
    background: #fffef7;
}

.agent-card.maintenance {
    border-left: 3px solid #dc3545;
    background: #fff8f8;
}

/* Agent Header */
.agent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.agent-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #f5f5f5;
    flex-shrink: 0;
}

.agent-card.available .agent-icon {
    background: #e8f5e8;
}

.agent-card.coming-soon .agent-icon {
    background: #fff9e6;
}

.agent-info {
    flex: 1;
}

.agent-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.agent-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.available {
    background: #10b981;
}

.status-dot.coming-soon {
    background: #f59e0b;
}

.status-text {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-available {
    color: #155724;
    background: #d4edda;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 400;
}

.status-coming-soon {
    color: #856404;
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 400;
}

/* Agent Description */
.agent-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Action Buttons */
.agent-actions {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    flex: 1;
    min-height: 36px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
}

.btn-disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    border: 1px solid #e5e7eb;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 32px;
    color: #6b7280;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #d1d5db;
    text-align: center;
    padding: 32px 0;
    margin-top: 64px;
}

.footer p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .search-hero {
        padding: 48px 16px;
    }

    .search-hero h2 {
        font-size: 2rem;
    }

    .agents-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .agent-card {
        padding: 20px;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-button {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .agent-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .agent-metrics {
        flex-direction: column;
        gap: 16px;
    }

    .agent-actions {
        flex-direction: column;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .agent-card {
        transition: none;
    }

    .agent-card:hover {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }
}

@media (prefers-contrast: high) {
    .agent-card {
        border-width: 2px;
    }

    .btn {
        border-width: 2px;
    }
}

/* Focus styles for keyboard navigation */
.agent-card:focus,
.btn:focus,
.search-input:focus,
.filter-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading states */
.agent-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}