@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --dc-bg: #f2f7f6;
    --dc-surface: #ffffff;
    --dc-ink: #132824;
    --dc-muted: #47615b;
    --dc-accent: #00143A;
    --dc-accent-2: #14532d;
    --dc-line: #d2dfdb;
    --dc-soft: #e9f2ef;
    --white: #ffffff;
}

body.dc-portal-route {
    background:
        radial-gradient(circle at 0 0, #132824 0%, transparent 40%),
        radial-gradient(circle at 100% 0, #132824 0%, transparent 42%),
        var(--dc-bg);
}

.dc-portal {
    max-width: 1140px;
    margin: 24px auto;
    padding: 0 16px 36px;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--dc-ink);
}

.dc-login-box {
    max-width: 440px;
    margin: 64px auto;
    border: 1px solid var(--dc-line);
    border-radius: 18px;
    padding: 24px;
    background: var(--dc-surface);
    box-shadow: 0 14px 40px rgba(19, 40, 36, 0.08);
}

.dc-login-logo-wrap {
    text-align: center;
    margin-bottom: 14px;
}

.dc-login-logo {
    display: inline-block;
    max-width: 220px;
    width: 100%;
    height: auto;
}

.dc-login-box h2 {
    margin: 0 0 8px;
    font-size: 1.8rem;
    letter-spacing: 0.04em;
    text-align: center;
}

.dc-login-box>p {
    text-align: center;
}

.dc-login-box p {
    color: var(--dc-muted);
}

.dc-login-box input {
    width: 100%;
    padding: 11px;
    margin-top: 6px;
    border: 1px solid #cfd9d6;
    border-radius: 10px;
}

.dc-login-box button,
.dc-btn {
    display: inline-block;
    /* background: linear-gradient(135deg, var(--dc-accent), var(--dc-accent-2)); */
    background: var(--dc-accent) !important;
    color: #fff !important;
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.dc-btn-soft {
    background: #e4f1ed;
    color: #0f5f4f;
    margin-left: 8px;
}

.dc-member-header {
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 16px;
    border: 1px solid var(--dc-accent);
    border-radius: 12px;
    /* background: linear-gradient(120deg, #f6fffc 0%, #ecfaf5 100%); */
}

.dc-member-header img {
    width: 50%;
}

.dc-logout {
    color: var(--dc-accent);
    text-decoration: none;
    font-weight: 700;
}

.dc-hero {
    background: var(--white);
    border-radius: 16px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    -ms-border-radius: 16px;
    -o-border-radius: 16px;
    padding: 26px;
    border: 1px solid var(--dc-accent);
    margin-bottom: 20px;
}

.dc-hero h1 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 2rem;
}

.dc-hero p {
    color: var(--dc-muted);
    max-width: 70ch;
}

.dc-banners {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.dc-banner {
    display: block;
    text-decoration: none;
    color: var(--dc-ink);
    border: 1px solid var(--dc-accent);
    border-radius: 12px;
    padding: 16px;
    background: #ffffff;
    position: relative;
    transition: transform 180ms ease, box-shadow 180ms ease;
    -webkit-transition: transform 180ms ease, box-shadow 180ms ease;
    -moz-transition: transform 180ms ease, box-shadow 180ms ease;
    -ms-transition: transform 180ms ease, box-shadow 180ms ease;
    -o-transition: transform 180ms ease, box-shadow 180ms ease;
}

.dc-banner .dc-banner-img {
    object-fit: cover;
    height: 521px;
}

.dc-banner .dc-banner-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    position: absolute;
    left: 40px;
    bottom: 40px;
}

/* .dc-banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(16, 70, 58, 0.11);
} */

.dc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.dc-tab {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #cfd7d5;
    text-decoration: none;
    color: #1f2d29;
    background: #fff;
    font-weight: 700;
}

.dc-tab.active {
    background: var(--dc-accent);
    color: #fff;
    border-color: var(--dc-accent);
}

.dc-project-form {
    border: 1px solid var(--dc-accent);
    border-radius: 14px;
    padding: 18px;
    background: #fff;
}

.dc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.dc-project-form input[type="text"],
.dc-project-form input[type="number"],
.dc-project-form textarea,
.dc-multi {
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #cfd9d6;
    border-radius: 10px;
}

.dc-product-picker {
    position: relative;
    margin-bottom: 10px;
}

.dc-product-search {
    width: 100%;
    padding: 10px;
    border: 1px solid #cfd9d6;
    border-radius: 10px;
    margin-bottom: 8px;
}

.dc-product-suggestions {
    display: grid;
    gap: 6px;
    margin-bottom: 8px;
}

.dc-product-suggestion {
    text-align: left;
    padding: 8px 10px;
    border: 1px solid #cde0da;
    border-radius: 8px;
    background: #f5fbf9;
    cursor: pointer;
}

.dc-product-suggestion:hover {
    background: #eaf7f3;
}

.dc-product-suggestion.is-active {
    background: #dff2ec;
    border-color: #9bcfbe;
}

.dc-product-selected-count {
    margin: 0 0 8px;
    color: var(--dc-muted);
    font-size: 0.9rem;
}

#dc-product-select {
    height: auto;
}

.dc-product-actions {
    margin: 8px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dc-product-actions-help {
    color: var(--dc-muted);
    font-size: 0.9rem;
}

.dc-map-wrap {
    margin: 10px 0 16px;
    border: 1px dashed #bfd4cd;
    border-radius: 12px;
    padding: 12px;
    background: var(--dc-accent);
}

.dc-map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.dc-map-wrap p {
    color: #ffffff;
}

.dc-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #d9dfdd;
    border-radius: 12px;
    overflow: hidden;
}

.dc-table th,
.dc-table td {
    border-bottom: 1px solid #ececec;
    padding: 10px;
    text-align: left;
}

.dc-table th {
    background: var(--dc-accent);
    color: var(--white);
}

.dc-comp-card {
    border: 1px solid #d5dfdb;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: #fff;
}

.dc-project-details {
    border: 1px solid #d9e2df;
    border-radius: 14px;
    padding: 18px;
    background: #fff;
}

.dc-upload-list {
    margin: 10px 0;
}

.dc-upload-list ul {
    margin: 6px 0 0 18px;
}

.dc-image-gallery-wrap {
    margin: 12px 0;
}

.dc-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.dc-gallery-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #cfe0db;
    background: #f8fcfb;
}

.dc-gallery-item img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
}

body.dc-lightbox-open {
    overflow: hidden;
}

.dc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(9, 20, 18, 0.88);
    padding: 24px;
}

.dc-lightbox.is-open {
    display: flex;
}

.dc-lightbox-image {
    max-width: min(1100px, 92vw);
    max-height: 84vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.dc-lightbox-close,
.dc-lightbox-nav {
    position: absolute;
    border: 0;
    color: #fff;
    background: rgba(8, 19, 17, 0.55);
    border-radius: 999px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.dc-lightbox-close {
    top: -200px;
    right: -560px;
}

.dc-lightbox-prev {
    left: 20px;
}

.dc-lightbox-next {
    right: 20px;
}

.dc-alert {
    border: 1px solid #d7d7d7;
    border-left: 4px solid var(--dc-accent);
    background: #f8f8f8;
    padding: 10px 12px;
    border-radius: 6px;
}

.dc-alert-error {
    border-left-color: #a62525;
}

@media (max-width: 800px) {

    .dc-grid,
    .dc-banners {
        grid-template-columns: 1fr;
    }

    .dc-map {
        height: 240px;
    }
}