/* ============================================================
   Dashboard — Project Cards
   ============================================================ */

.project-card {
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.project-card .card-body p {
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

.project-card .card-body p strong {
    color: var(--color-secondary);
    font-weight: 500;
}

/* Device cards in library */
.device-card {
    transition: transform var(--transition);
}

.device-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.device-preview {
    opacity: 0.7;
}

/* Cable cards */
.cable-card {
    transition: transform var(--transition);
}

.cable-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Ports list in modal */
.ports-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.port-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
}

.port-side {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.side-left { background: #dbeafe; color: #1e40af; }
.side-right { background: #dcfce7; color: #166534; }
.side-top { background: #fef3c7; color: #92400e; }
.side-bottom { background: #f3e8ff; color: #6b21a8; }

/* Plug row in cable editor */
.plug-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

.plug-row select {
    padding: 2px 6px;
    font-size: 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

/* Areas */
.area-card {
    margin-bottom: 16px;
}

.area-card .card-header {
    flex-wrap: wrap;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
}

.equipment-item:last-child {
    border-bottom: none;
}

.equipment-item > div:last-child {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
