/* Custom Styles for JobFinder APIs Portal */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --purple-color: #6f42c1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Header */
header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6;
}

/* API Cards */
.api-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.api-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-header {
    font-weight: 600;
}

.bg-purple {
    background-color: var(--purple-color) !important;
}

/* Code blocks */
code {
    font-size: 0.875rem;
    word-break: break-all;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Cards */
.card {
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Links */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%) !important;
}

/* Alert */
.alert-info {
    background-color: #cfe2ff;
    border-color: #b6d4fe;
    color: #084298;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Icon colors */
.text-primary i {
    color: var(--primary-color);
}

.text-success i {
    color: var(--success-color);
}

/* Button hover effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card shadow effect */
.shadow-sm {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075) !important;
}

/* Background gradient for headers */
.bg-gradient {
    background: linear-gradient(135deg, currentColor 0%, color-mix(in srgb, currentColor 80%, black) 100%) !important;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    overflow-y: auto;
    padding-top: 1rem;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
    border-left-color: #0d6efd;
}

.sidebar .nav-link.active {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    border-left-color: #0d6efd;
    font-weight: 600;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.sidebar .nav-link .api-logo {
    height: 32px;
    width: auto;
    max-width: 40px;
    object-fit: contain;
    vertical-align: middle;
}

/* Main content offset for sidebar */
@media (min-width: 768px) {
    .sidebar {
        top: 0;
    }

    main {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .sidebar {
        position: relative;
        padding: 1rem 0;
    }
}
