/* style.css - Custom styling for ITS Helpdesk */
:root {
    /* --primary-color: #2b224f;
    --primary-hover: #3d316e;
    --bg-light: #e6e9ec;
    --bs-primary: #2b224f; */
    --primary-color: #372050;
    --primary-hover: #3d316e;
    --bg-light: #ebe9eb;
    --bs-primary: #372050;
    --bs-primary-rgb: 43, 34, 79;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.bg-body-custom {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

/* Utilities */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
    color: white;
}

.divider-full {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Navigation & Header */
.top-bar {
    background-color: var(--primary-color);
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.top-bar a:hover,
.top-bar a:focus {
    opacity: 0.8;
}

.header-shadow {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.brand-logo {
    user-select: none;
}

/* Cards & Layout */
.card-custom {
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

a.card-custom-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.card-custom-link:hover .card-custom {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.placeholder-img {
    background-color: #a3a3a3;
    width: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.placeholder-img.hero {
    background-color: #d1d5db;
    background-image: repeating-linear-gradient(45deg, #cbd5e1 25%, transparent 25%, transparent 75%, #cbd5e1 75%, #cbd5e1), repeating-linear-gradient(45deg, #cbd5e1 25%, #d1d5db 25%, #d1d5db 75%, #cbd5e1 75%, #cbd5e1);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    color: #64748b;
}

.placeholder-img.hero-dark {
    background-color: var(--primary-color);
    color: white;
    background-image: radial-gradient(circle at 50% 50%, #3d316e 0%, var(--primary-color) 100%);
}

/* Breadcrumbs */
.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: #888;
}

/* Troubleshooting Widget / Sidebar Card */
.troubleshooting-card {
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    height: 100%;
}

.troubleshooting-card h2 {
    font-weight: 600;
    line-height: 1.2;
}

/* Accordion Customization */
.accordion-custom .accordion-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    background-color: transparent;
}

.accordion-custom .accordion-item:last-child {
    border-bottom: none;
}

.accordion-custom .accordion-button {
    background-color: white;
    color: #333;
    font-weight: 600;
    box-shadow: none !important;
    padding: 1.25rem;
}

.accordion-custom .accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-custom .accordion-button::after {
    filter: invert(15%) sepia(21%) saturate(222%) hue-rotate(186deg) brightness(97%) contrast(89%);
    /* Dark chevron */
}

.accordion-custom .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
    /* White chevron */
}

.accordion-custom .accordion-body {
    background-color: #f8f9fa;
    color: #555;
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* List Views */
.list-card {
    background-color: white;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.list-card:hover {
    border-color: #dee2e6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.list-card small {
    color: #6c757d;
    font-weight: 400;
}

/* Instruction Steps */
.step-card {
    background-color: white;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    /*min-width: 40px;*/
    flex: 0 0 4rem;
}

/* Components/Form Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: white;
}

.btn-not-clickable {
    pointer-events: none;
    /* blocks clicks */
    cursor: default;
    /* optional: avoid "not-allowed" */
}

/* Alerts */
.alert-custom-warning {
    background-color: #fff3cd;
    border-color: #ffe69c;
    color: #664d03;
}

.alert-custom-success {
    background-color: #d1e7dd;
    border-color: #a3cfbb;
    color: #0f5132;
}

/* Footer */
.footer-custom {
    background-color: var(--primary-color);
    margin-top: auto;
}

.footer-link:hover {
    color: white !important;
    text-decoration: underline !important;
}

/* Announcements */
.ann-item {
    position: relative;
}

/* the clickable overlay */
.ann-link {
    position: absolute;
    inset: 0;
    /* top/right/bottom/left: 0 */
    z-index: 1;
    /* keep it invisible but clickable */
    background: transparent;
}

/* make sure text sits above overlay only if you want selection/cursor on text;
   usually z-index:0 is fine */
.ann-item>h4,
.ann-item>p {
    position: relative;
    z-index: 0;
}