/* Site-wide styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding-top: 76px;
}

.container-fluid {
    padding: 20px;
}

.timeline .alert {
    border-left: 4px solid #007bff;
    margin-bottom: 10px;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.badge {
    font-size: 0.8em;
}

.navbar-brand {
    font-weight: bold;
}

/* Navbar search bar */
.navbar-search {
    position: relative;
}

.navbar-search .form-control {
    padding-left: 2.25rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 250px;
    transition: all 0.2s ease-in-out;
}

.navbar-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-search .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
    width: 300px;
}

.navbar-search .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

.navbar-search .search-shortcut {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-family: monospace;
    pointer-events: none;
}

/* Agent Management specific styles */
.agent-card {
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
}

.agent-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.agent-status-badge {
    font-size: 0.75em;
}

.toggle-agent-btn {
    transition: all 0.2s ease;
}

.toggle-agent-btn:hover {
    transform: translateY(-1px);
}

/* Bulk actions bar */
.bulk-actions-bar {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding: 15px;
    }
    
    .col-md-6:not(.text-end) .btn-group {
        margin-top: 1rem;
        width: 100%;
    }
    
    .btn-group .btn {
        flex: 1;
    }
    
    .agent-card .card-body .row {
        margin-bottom: 0.5rem;
    }
    
    .agent-card .card-body .row .col-6 {
        margin-bottom: 0.5rem;
    }
}

/* Loading spinner overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Blog post body typography */
.blog-post-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #212529;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-post-content h2 { font-size: 1.75rem; }
.blog-post-content h3 { font-size: 1.4rem; }
.blog-post-content h4 { font-size: 1.15rem; }

.blog-post-content p {
    margin-bottom: 1.25rem;
}

.blog-post-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-post-content blockquote {
    border-left: 4px solid #dee2e6;
    padding-left: 1rem;
    color: #6c757d;
    margin: 1.5rem 0;
    font-style: italic;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
}

.blog-post-content li {
    margin-bottom: 0.4rem;
}

/* Inline code */
.blog-post-content code:not([class*="language-"]) {
    background-color: #f1f3f5;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    color: #c92a2a;
}

/* Fenced code blocks (Prism targets pre > code) */
.blog-post-content pre {
    border-radius: 6px;
    margin: 1.5rem 0;
    overflow-x: auto;
    font-size: 0.9rem;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* Blog mobile adjustments */
@media (max-width: 576px) {
    .blog-post-content {
        font-size: 1rem;
    }

    .blog-index-entry {
        margin-bottom: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}
