/*
 * components.css - Genbrugelige UI-komponenter.
 * Indeholder kort (meter-card, summary-card, detail-card, info-card)
 * som bruges på tværs af flere sider (Dashboard, Meters, Index).
 */

/* ===== MÅLER-KORT ===== */
.meter-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.meter-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meter-card.clickable:hover {
    background-color: #252525;
}

.meter-card .meter-name {
    font-size: 16px;
    font-weight: bold;
}

.meter-card .meter-id {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.meter-card .meter-icon {
    font-size: 28px;
}

.meter-card .meter-stats {
    margin-top: 6px;
    font-size: 13px;
    display: flex;
    gap: 12px;
}

.meter-card-link {
    text-decoration: none;
    color: inherit;
}

/* ===== SUMMARY-KORT (Index) ===== */
.summary-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.summary-card {
    flex: 1;
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.summary-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
}

.summary-value {
    font-size: 20px;
    font-weight: bold;
}

/* ===== DETAIL-KORT (Meters + Documents) ===== */
.detail-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.info-table th {
    text-align: left;
    padding: 8px;
    color: #888;
    font-size: 12px;
    border-bottom: 1px solid #222;
    width: 40%;
}

.info-table td {
    padding: 8px;
    font-size: 13px;
    border-bottom: 1px solid #222;
}

/* ===== INFO-KORT (Dashboard) ===== */
.info-section {
    margin-top: 16px;
}

.info-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-detail {
    font-size: 12px;
    color: #888;
}

/* ===== CTA-KNAPPER (Index) ===== */
.cta-section {
    text-align: center;
    margin-top: 20px;
}

.cta-btn {
    display: inline-block;
    background-color: #2980b9;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    background-color: #3498db;
}

.cta-btn.secondary {
    background-color: #333;
    margin-left: 8px;
}

.cta-btn.secondary:hover {
    background-color: #444;
}

.nav-links {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}
