/* =======================================================
   SECTION 6 : PROJECT DASHBOARD
======================================================= */
.project-dashboard {
    position: relative;
    padding: 110px 5.5%;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 14%, rgba(46, 196, 255, 0.075), transparent 25%),
        radial-gradient(circle at 92% 84%, rgba(46, 213, 115, 0.06), transparent 30%),
        linear-gradient(180deg, #07111d 0%, #091a2a 100%);
}
.project-dashboard::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(95, 203, 249, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95, 203, 249, 0.04) 1px, transparent 1px);
    background-size: 58px 58px;
    pointer-events: none;
}
.project-dashboard .section-header,
.dashboard-grid,
.project-dashboard > .glass-card,
.dashboard-bottom {
    position: relative;
    z-index: 1;
    width: min(1380px, 100%);
    margin-right: auto;
    margin-left: auto;
}
/* ---------- Dashboard header grid ---------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(315px, 0.9fr);
    gap: 24px;
    margin-bottom: 24px;
}
.project-information,
.project-status {
    min-height: 100%;
}
/* ---------- Shared dashboard card header ---------- */
.project-dashboard .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.project-dashboard .card-header h3 {
    margin: 0;
    color: #e7f9ff;
    font-size: 0.96rem;
    font-weight: 600;
}
.project-dashboard .card-header button,
.project-dashboard .glass-card button {
    min-height: 34px;
    padding: 7px 11px;
    color: #a9d1e1;
    border: 1px solid rgba(137, 213, 246, 0.2);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.71rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}
.project-dashboard .card-header button:hover,
.project-dashboard .glass-card button:hover {
    transform: translateY(-2px);
    color: #ffffff;
    border-color: rgba(46, 196, 255, 0.5);
    background: rgba(46, 196, 255, 0.11);
}
/* ---------- Project form ---------- */
.project-information .form-grid {
    gap: 14px;
}
.project-information .form-group input,
.project-information .form-group select {
    min-height: 42px;
    color: #d7eff9;
    border-radius: 8px;
    background-color: rgba(3, 18, 30, 0.52);
}
.project-information .form-group input::placeholder {
    color: rgba(149, 187, 204, 0.55);
}
/* ---------- Project status cards ---------- */
.project-status h3 {
    margin: 0 0 19px;
    color: #e7f9ff;
    font-size: 0.96rem;
    font-weight: 600;
}
.status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.status-box {
    min-height: 112px;
    padding: 16px;
    border: 1px solid rgba(134, 211, 245, 0.13);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(46, 196, 255, 0.08), rgba(2, 16, 27, 0.28));
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}
.status-box:hover {
    transform: translateY(-3px);
    border-color: rgba(46, 196, 255, 0.34);
}
.status-box h4 {
    margin: 0;
    color: #89aabb;
    font-size: 0.72rem;
    font-weight: 500;
}
.status-box strong {
    display: block;
    margin-top: 14px;
    color: #e8fbff;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
}
.status-box:nth-child(2) {
    background:
        linear-gradient(145deg, rgba(180, 130, 255, 0.1), rgba(2, 16, 27, 0.28));
}
.status-box:nth-child(3) {
    background:
        linear-gradient(145deg, rgba(46, 213, 115, 0.09), rgba(2, 16, 27, 0.28));
}
.status-box:nth-child(4) {
    background:
        linear-gradient(145deg, rgba(255, 177, 66, 0.09), rgba(2, 16, 27, 0.28));
}
/* ---------- Drawing library ---------- */
.project-dashboard > .glass-card {
    margin-top: 0;
}
.drawing-table {
    width: 100%;
    border-collapse: collapse;
}
.drawing-table th,
.drawing-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(135, 211, 245, 0.1);
    font-size: 0.74rem;
    text-align: left;
}
.drawing-table th {
    color: #80a5b7;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}
.drawing-table td {
    color: #b7d4e0;
}
.drawing-table td:first-child {
    color: #e0f6ff;
    font-weight: 600;
}
.drawing-table tbody tr {
    transition: background 0.2s ease;
}
.drawing-table tbody tr:hover {
    background: rgba(46, 196, 255, 0.045);
}
.drawing-table tbody tr:last-child td {
    border-bottom: 0;
}
.drawing-table td:nth-child(4) {
    color: #90edb9;
    font-weight: 500;
}
.drawing-table tr:nth-child(2) td:nth-child(4) {
    color: #ffd183;
}
.drawing-table td:last-child {
    display: flex;
    gap: 7px;
}
.drawing-table td:last-child button {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 0.66rem;
}
/* ---------- Dashboard bottom section ---------- */
.dashboard-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(225px, 0.65fr) minmax(225px, 0.65fr);
    align-items: start;
    gap: 24px;
    margin-top: 24px;
}
.dashboard-bottom .glass-card {
    min-height: 100%;
}
.dashboard-bottom h3 {
    margin: 0 0 18px;
    color: #e9faff;
    font-size: 0.92rem;
    font-weight: 600;
}
/* ---------- Revision history ---------- */
.revision-history ul {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.revision-history li {
    position: relative;
    padding: 10px 10px 10px 18px;
    color: #a8c4d1;
    border-left: 1px solid rgba(46, 196, 255, 0.25);
    background: rgba(46, 196, 255, 0.028);
    font-size: 0.74rem;
    line-height: 1.55;
}
.revision-history li::before {
    position: absolute;
    top: 50%;
    left: -4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(46, 196, 255, 0.48);
    transform: translateY(-50%);
}
/* ---------- Autosave ---------- */
.autosave {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border: 1px solid rgba(46, 213, 115, 0.16);
    border-radius: 9px;
    background: rgba(46, 213, 115, 0.055);
    color: #a6eec1;
    font-size: 0.74rem;
}
.autosave-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(46, 213, 115, 0.7);
    animation: autosavePulse 1.8s ease-in-out infinite;
}
@keyframes autosavePulse {
    50% {
        opacity: 0.45;
        transform: scale(0.72);
    }
}
.dashboard-bottom .glass-card > p {
    margin: 15px 0;
    color: #89a9b9;
    font-size: 0.74rem;
    line-height: 1.5;
}
.dashboard-bottom .glass-card > p strong {
    color: #d9f2fb;
    font-family: "Courier New", monospace;
    font-weight: 600;
}
.dashboard-bottom .glass-card > button {
    width: 100%;
}
/* ---------- Team collaborators ---------- */
.team-list {
    display: grid;
    gap: 12px;
    margin-bottom: 17px;
}
.team-member {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b7d3df;
    font-size: 0.74rem;
}
.avatar {
    display: grid;
    flex: 0 0 33px;
    width: 33px;
    height: 33px;
    color: #06131f;
    border-radius: 50%;
    background: linear-gradient(135deg, #7ce5ff, #2ec4ff);
    font-size: 0.65rem;
    font-weight: 700;
    place-items: center;
}
.team-member:nth-child(2) .avatar {
    background: linear-gradient(135deg, #a2f3c3, #2ed573);
}
.team-member:nth-child(3) .avatar {
    background: linear-gradient(135deg, #ffe09b, #ffb142);
}
/* ---------- Responsive dashboard ---------- */
@media (max-width: 1080px) {
    .project-dashboard {
        padding: 88px 4%;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-bottom .revision-history {
        grid-column: 1 / -1;
    }
}
@media (max-width: 760px) {
    .project-dashboard {
        padding: 72px 22px;
    }
    .dashboard-grid,
    .dashboard-bottom {
        gap: 16px;
    }
    .status-grid {
        gap: 10px;
    }
    .status-box {
        min-height: 96px;
        padding: 13px;
    }
    .status-box strong {
        margin-top: 11px;
        font-size: 1.45rem;
    }
    .project-dashboard > .glass-card {
        overflow-x: auto;
    }
    .drawing-table {
        min-width: 680px;
    }
    .drawing-table th,
    .drawing-table td {
        padding: 12px 10px;
        font-size: 0.69rem;
        white-space: nowrap;
    }
    .dashboard-bottom {
        grid-template-columns: 1fr;
    }
    .dashboard-bottom .revision-history {
        grid-column: auto;
    }
}
@media (max-width: 450px) {
    .project-information .form-grid,
    .status-grid {
        grid-template-columns: 1fr;
    }
    .project-dashboard .card-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
