/* Custom styles for AlayaCare Resi API Documentation */

/* Body and general styling */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    font-size: 0.95rem; /* smaller base font */
}

/* Navigation styling */
.navbar-brand {
    font-weight: 600;
    font-size: 1.05rem; /* smaller brand */
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

/* Override Bootstrap primary background */
.bg-primary {
    background-color: #101A5C !important;
}

/* Main content container */
.container {
    max-width: 1200px;
    padding-left: 10px;
    padding-right: 10px;
}

/* Section styling */
.section {
    margin-bottom: 1.2rem; /* less space between sections */
}

.section-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.15rem; /* smaller heading */
}

/* Card styling */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    margin-bottom: 0.7rem;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 0.85rem;
}

/* Alert styling */
.alert {
    border-radius: 6px;
    border: none;
    padding: 0.7rem 1rem;
    margin-bottom: 0.7rem;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-primary {
    background-color: #cce7ff;
    color: #004085;
}

/* List group styling */
.list-group-item {
    border: none;
    padding: 0.5rem 0.7rem;
    background-color: transparent;
    transition: background-color 0.2s ease;
    font-size: 0.95em;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item i {
    width: 20px;
}

/* Configuration images */
.config-image {
    margin: 1rem 0;
    text-align: center;
}

.config-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.config-image img:hover {
    transform: scale(1.02);
}

/* Code styling */
code {
    background-color: #f8f9fa;
    color: #e83e8c;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.80em;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

pre {
    font-size: 0.80em;
    padding: 0.7em 0.7em;
    border-radius: var(--border-radius);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.7em;
}

/* Badge styling */
.badge {
    font-size: 0.7em;
    padding: 0.25rem 0.5rem;
}

/* Button styling */
.btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
    padding: 0.25rem 0.7rem;
    font-size: 0.95em;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer styling */
footer {
    border-top: 1px solid #e9ecef;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 0.6rem;
    }
    
    .section-title {
        font-size: 1.05rem;
    }
    
    .config-image img {
        max-width: 90%;
    }
}

/* Animation for list group items */
.list-group-item-action {
    transition: all 0.2s ease;
}

.list-group-item-action:hover {
    transform: translateX(5px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Focus states for accessibility */
.btn:focus,
.list-group-item-action:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Print styles */
@media print {
    .navbar,
    footer {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Highlight doc-nav navigation items on hover */
.doc-nav .nav-item .nav-link {
    transition: background 0.2s, color 0.2s;
    border-radius: 4px;
}
.doc-nav .nav-item .nav-link:hover, .doc-nav .nav-item .nav-link:focus {
    background: #e9ecef;
    color: #101A5C;
    text-decoration: none;
}

/* Table visible link style */
.table-link {
    color: #0d6efd;
    text-decoration: underline;
}