/*
 * CODEV-17590 — Service Desk Portal Redesign
 * Component styles for resources/views/main/*, lifted from the design handoff
 * (.claude/tasks/CODEV-17590/design_handoff_service_desk/Service Desk Prototype.dc.html).
 * Only loaded by resources/views/main/layouts/*.blade.php — does not affect the
 * legacy themes/default1 frontend.
 */

body.sd-body {
    margin: 0;
    background: #f4f6f9;
}

.sd-nav a {
    color: #212529;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.sd-nav a:hover {
    color: #0d6efd;
}

.sd-hero {
    background: linear-gradient(180deg, #eaf1ff 0%, #f4f6f9 100%);
    padding: 60px 40px 50px;
    text-align: center;
}

.sd-search {
    position: relative;
}

.sd-hero .sd-search {
    max-width: 620px;
    margin: 0 auto;
}

.sd-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.sd-search input {
    padding-left: 48px;
    border-radius: 50rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.sd-tiles-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 36px 24px 60px;
}

.sd-tile-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.sd-tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--bs-card-border-color, var(--bs-border-color));
    border-radius: .5rem;
    background: #fff;
    transition: .15s;
    cursor: pointer;
    height: 100%;
}

.sd-tile:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 14px rgba(13, 110, 253, .12);
    transform: translateY(-2px);
}

.sd-tile-title {
    font-weight: 600;
    color: #212529;
}

.sd-tile-desc {
    color: #6c757d;
    font-size: 13px;
}

.sd-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.sd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--bs-border-color);
    border-radius: 50rem;
    background: #fff;
    font-size: 13px;
    color: #212529;
    cursor: pointer;
    text-decoration: none;
}

.sd-chip:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

.sd-seg {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 50rem;
    padding: 4px;
}

.sd-seg a,
.sd-seg span {
    padding: 6px 16px;
    font-size: 13.5px;
    border-radius: 50rem;
    cursor: pointer;
    color: #6c757d;
    text-decoration: none;
}

.sd-seg a.on,
.sd-seg span.on {
    background: #0d6efd;
    color: #fff;
    font-weight: 500;
}

.sd-tr {
    cursor: pointer;
}

@keyframes sdblink {
    0%, 80%, 100% { opacity: .25; }
    40% { opacity: 1; }
}

.sd-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6c757d;
    display: inline-block;
    animation: sdblink 1.2s infinite;
}

.sd-footer {
    text-align: center;
    padding: 24px;
    color: #6c757d;
    font-size: 13px;
    border-top: 1px solid var(--bs-border-color);
    margin-top: 20px;
}

/*
 * Error pages (resources/views/errors/404.blade.php, 500.blade.php) are
 * shared with the legacy admin/agent themes, so their markup/classes
 * (.error404, .error-title, .entry-title, …) can't be changed here without
 * affecting those too — only restyled, via main.layouts.error.
 */
.sd-error-wrap {
    max-width: 560px;
    margin: 80px auto;
    padding: 0 24px;
    text-align: center;
}

.sd-error-wrap .error-title {
    font-size: 72px;
    font-weight: 700;
    color: #0d2a5c;
    margin-bottom: 8px;
}

.sd-error-wrap .entry-title {
    font-size: 17px;
    color: #6c757d;
    margin-bottom: 20px;
}

.sd-error-wrap .entry-content a {
    color: #0d6efd;
    text-decoration: none;
    font-size: 14px;
}

.sd-error-wrap .entry-content a:hover {
    text-decoration: underline;
}
