/* ================================================================
   myJobManager University — Layout & Annotation Styles
   ================================================================ */

/* ---- Variables ---- */
:root {
    --sidebar-bg: #f8f9fa;
    --sidebar-border: #e5e7eb;
    --sidebar-text: #4b5563;
    --sidebar-hover-bg: #e9ecef;
    --sidebar-active: #3b82f6;
    --sidebar-active-bg: #eff6ff;
    --sidebar-heading: #6b7280;
    --content-max-width: 820px;
    --callout-red: #dc3545;
    --callout-blue: #3b82f6;
    --callout-green: #198754;
    --step-colour: #3b82f6;
}

/* ---- Sidebar (in-flow, light theme) ---- */
.university-sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    padding-bottom: 2rem;
}

.sidebar-header {
    padding: 1.25rem 1rem 0.75rem;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-brand {
    color: #1a1e2e;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-brand:hover {
    color: var(--sidebar-active);
}

.sidebar-search {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-search .form-control,
.sidebar-search .input-group-text {
    background: #fff;
    border-color: var(--sidebar-border);
    color: var(--sidebar-text);
    font-size: 0.85rem;
}

.sidebar-search .form-control::placeholder {
    color: #9ca3af;
}

.sidebar-search .form-control:focus {
    border-color: var(--sidebar-active);
    box-shadow: 0 0 0 0.2rem rgba(59,130,246,0.15);
}

.sidebar-section {
    padding: 0.75rem 0 0;
}

.sidebar-section-title {
    padding: 0 1rem;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sidebar-heading);
}

.sidebar-menu {
    margin: 0;
    padding: 0;
}

.sidebar-menu-item a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.sidebar-menu-item a:hover {
    background: var(--sidebar-hover-bg);
    color: #1a1e2e;
}

.sidebar-menu-item.active a {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active);
    border-left-color: var(--sidebar-active);
    font-weight: 500;
}

.sidebar-icon {
    width: 20px;
    text-align: center;
    margin-right: 0.6rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

.sidebar-menu-item.active .sidebar-icon {
    opacity: 1;
}

/* Hide items that don't match search */
.sidebar-menu-item.search-hidden {
    display: none;
}

/* ---- Content Area ---- */
.university-content {
    padding: 2rem 1.5rem 4rem;
}

.university-content > .guide-container {
    max-width: var(--content-max-width);
}

/* ---- Guide Typography ---- */
.guide-container h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1e2e;
}

.guide-subtitle {
    font-size: 1.05rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.guide-container h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    color: #1a1e2e;
}

.guide-container h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.guide-container p {
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1rem;
}

/* ---- Prerequisites / Info Box ---- */
.guide-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--callout-blue);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.guide-info-box.warning {
    background: #fef9c3;
    border-color: #fde68a;
    border-left-color: #f59e0b;
}

.guide-info-box.success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    border-left-color: var(--callout-green);
}

.guide-info-box h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e3a5f;
}

.guide-info-box.warning h5 {
    color: #92400e;
}

.guide-info-box p:last-child,
.guide-info-box ul:last-child {
    margin-bottom: 0;
}

.guide-info-box ul {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.guide-info-box li {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* ---- Step Numbering ---- */
.guide-steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-step {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.guide-step:last-child {
    border-bottom: none;
}

.guide-step::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--step-colour);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.guide-step h3 {
    margin-top: 0;
}

/* ---- Screenshot Container & Annotations ---- */
.screenshot-container {
    position: relative;
    margin: 1.5rem 0;
    line-height: 0;
}

.screenshot-container img {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.screenshot-placeholder {
    width: 100%;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    padding: 2rem;
}

.screenshot-placeholder i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

/* Callout: Numbered marker circle */
.callout-marker {
    position: absolute;
    width: 28px;
    height: 28px;
    background: var(--callout-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
}

.callout-marker.blue {
    background: var(--callout-blue);
}

.callout-marker.green {
    background: var(--callout-green);
}

/* Callout: Highlight box */
.callout-highlight {
    position: absolute;
    border: 3px solid var(--callout-red);
    border-radius: 4px;
    z-index: 1;
    pointer-events: none;
}

.callout-highlight.blue {
    border-color: var(--callout-blue);
}

.callout-highlight.green {
    border-color: var(--callout-green);
}

/* Callout: Description list under screenshots */
.callout-legend {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4b5563;
}

.callout-legend-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.35rem;
}

.callout-legend-number {
    width: 22px;
    height: 22px;
    background: var(--callout-red);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
    margin-right: 0.5rem;
    margin-top: 1px;
}

/* ---- Tip Box (inline) ---- */
.guide-tip {
    background: #f0fdf4;
    border-left: 4px solid var(--callout-green);
    border-radius: 0 6px 6px 0;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #166534;
}

.guide-tip strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* ---- Next Steps Section ---- */
.guide-next-steps {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2.5rem;
}

.guide-next-steps h3 {
    margin-top: 0;
    color: #1a1e2e;
}

.guide-next-steps a {
    color: var(--callout-blue);
    font-weight: 500;
}

/* ---- Time Estimate Badge ---- */
.guide-time-badge {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.guide-time-badge i {
    margin-right: 0.4rem;
    font-size: 0.75rem;
}

/* ---- Landing Page ---- */
.university-hero {
    text-align: center;
    padding: 3rem 0 2.5rem;
}

.university-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1e2e;
}

.university-hero p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0.75rem auto 0;
}

.guide-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.15s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.guide-card-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: var(--callout-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.guide-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1e2e;
}

.guide-card p {
    font-size: 0.875rem;
    color: #6b7280;
    flex: 1;
    margin-bottom: 0.75rem;
}

.guide-card-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
}

.guide-card-meta i {
    margin-right: 0.35rem;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .university-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--sidebar-border);
        margin-bottom: 1rem;
    }

    .university-content {
        padding: 1rem 0.5rem 3rem;
    }
}

/* ---- Print ---- */
@media print {
    .university-sidebar,
    header,
    footer {
        display: none !important;
    }

    .university-content {
        padding: 0;
    }

    .screenshot-container img {
        box-shadow: none;
        border-color: #ccc;
    }
}
