/* ================================================================ */
/*  Responsive Dashboard Styles – scales smoothly from 1080p to 4K  */
/*  Created: 2025‑07‑01                                             */
/* ================================================================ */

/* -------------------------------------------------------------- */
/* 1. Global scaling variable                                     */
/* -------------------------------------------------------------- */
:root {
    --scale: 1; /* baseline — Full HD */
}
@media (min-width: 2560px) {
    :root {
        --scale: 1.333;
    } /* WQHD / 2 K */
}
@media (min-width: 3840px) {
    :root {
        --scale: 2;
    } /* 4 K / 5 K */
}

/* -------------------------------------------------------------- */
/* 2. Base reset + fade‑in animation                              */
/* -------------------------------------------------------------- */
html,
body {
    min-width: 1920px;
    min-height: 1080px;
    /* overflow: auto;  uncomment if scrollbars are desired */

    margin: 0;
    font-family: "Poppins", sans-serif;
    animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* -------------------------------------------------------------- */
/* 3. Background layers                                           */
/* -------------------------------------------------------------- */
.dashboard-bg {
    min-height: 100%;
    position: relative;
    background-color: #001150;
}
.dashboard-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("/app-assets/images/ongoing-projects-bg.png") center/cover
        no-repeat;
    z-index: -2;
}

/* -------------------------------------------------------------- */
/* 4. Top‑bar text & logo                                         */
/* -------------------------------------------------------------- */
.dashboard-title {
    font-weight: 600;
    font-size: calc(var(--scale) * 2.25rem);
    letter-spacing: 0.5px;
    color: #fff;
    max-width: 400px;
}
.dashboard-title span {
    color: #14e4ff;
}
.dashboard-logo {
    height: 46px;
}
.dashboard-header {
    color: #fff;
}

/* -------------------------------------------------------------- */
/* 5. Glass cards                                                 */
/* -------------------------------------------------------------- */
.glass-card {
    border-radius: 18px; /* keep true‑pixel for crisp corners */
    border: 1px solid #fff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
}

/* -------------------------------------------------------------- */
/* 6. Fixed‑pixel FULL‑HD layout | now scaled                     */
/* -------------------------------------------------------------- */
.hd-wrapper {
    width: calc(var(--scale) * 1840px); /* 40‑px side gutters */
    height: 100%;
    margin: 0 auto;
    padding: 0 calc(var(--scale) * 40px);
    display: flex;
    flex-direction: column;
}

.hd-main {
    flex: 1 1 auto;
    display: flex;
    gap: calc(var(--scale) * 24px);
    height: calc(100% - calc(var(--scale) * 120px));
}

.hd-projects {
    /* projects table card */
    width: calc(var(--scale) * 1280px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hd-devs {
    /* developers list card */
    width: calc(var(--scale) * 456px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* -------------------------------------------------------------- */
/* 7. Table styling                                               */
/* -------------------------------------------------------------- */
.dashboard-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.dashboard-table thead th {
    background: linear-gradient(118deg, #1f90cf, #191b4d);
    color: #fff;
    border: 0;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}
.dashboard-table td {
    color: #fff;
    vertical-align: middle;
}
.dashboard-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

/* -------------------------------------------------------------- */
/* 8. Disable Bootstrap’s shrinking columns                       */
/* -------------------------------------------------------------- */
@media (min-width: 0) {
    .container,
    .container-fluid,
    .row,
    .col,
    .col-lg-8,
    .col-lg-4 {
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
    }
}

/* -------------------------------------------------------------- */
/* 9. Transparent table background                                */
/* -------------------------------------------------------------- */
.dashboard-table td {
    background-color: transparent;
}

/* -------------------------------------------------------------- */
/* 10. Table‑only decorative background                           */
/* -------------------------------------------------------------- */
.table-bg {
    position: relative;
    background: transparent !important; /* suppress glass‑card bg */
}
.table-bg::before {
    content: "";
    position: absolute;
    inset: -30px -20px -30px -20px;
    z-index: 0;
    background: url("/app-assets/images/ongoing-projects-table-bg.png")
        center/cover no-repeat;
    pointer-events: none;
    border-radius: inherit;
}
/* bump the real table above the pseudo‑element */
.table-bg > * {
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------- */
/* 11. Transparent cells + white separators                       */
/* -------------------------------------------------------------- */
.dashboard-table,
.dashboard-table thead,
.dashboard-table tbody,
.dashboard-table tr,
.dashboard-table td {
    background-color: transparent !important;
}
.dashboard-table tr {
    border-bottom: 1px solid #ffffff;
}

.table-bg .dashboard-table td {
    padding-top: calc(var(--scale) * 18px);
    padding-bottom: calc(var(--scale) * 18px);
    height: calc(var(--scale) * 64px);
}
.table-bg .dashboard-table thead th {
    padding-top: calc(var(--scale) * 16px);
    padding-bottom: calc(var(--scale) * 16px);
}

/* -------------------------------------------------------------- */
/* 12. Avatars                                                    */
/* -------------------------------------------------------------- */
.avatar-xs {
    width: calc(var(--scale) * 32px);
    height: calc(var(--scale) * 32px);
    border-radius: 50%;
    object-fit: cover;
}

/* -------------------------------------------------------------- */
/* 13. Fancy fixed label                                          */
/* -------------------------------------------------------------- */
@media (min-width: 1920px) {
    .content-team-label {
        position: fixed;
        bottom: calc(var(--scale) * 10px);
        left: 50%;
        transform: translateX(-50%);
        color: #fff;
        font-size: calc(var(--scale) * 30px);
        font-weight: 500;
        font-family: "Poppins", sans-serif;
        pointer-events: none;
        z-index: 99;
        text-shadow: 0 0 5px #00f0ff, 0 0 10px #00f0ff;
    }
}
@media (max-width: 1919px) {
    .content-team-label {
        display: none;
    }
}

/* -------------------------------------------------------------- */
/* 14. Utility classes                                            */
/* -------------------------------------------------------------- */
.card-inner {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    z-index: 1; /* content stays above ::before backgrounds */
}

