/**
 * @license
 * Copyright (c) 2026 Elson Lleshi
 * All Rights Reserved.
 * SPDX-License-Identifier: UNLICENSED
 */

.profile-actions-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 18px;
}

.profile-actions-top .secondary-button {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Card layout for each section. */
.profile-card {
    background: #1a1d25;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 18px;
    overflow: hidden;
}

.profile-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.profile-card-header h2 {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-card-header h2 i {
    color: #f97316;
    font-size: 1.1rem;
}

/* Row list inside each card. */
.profile-rows {
    margin: 0;
    padding: 0;
}

.profile-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-row:last-child {
    border-bottom: 0;
}

.profile-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    flex: 0 0 auto;
}

.profile-value {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    margin: 0;
}

.profile-unit {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 4px;
}

.profile-empty {
    margin: 0;
    padding: 18px 20px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-style: italic;
}

.profile-health-text {
    margin: 0;
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.85);
    white-space: pre-wrap;
    line-height: 1.5;
}

/* Status badge. */
.profile-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-badge-ok {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.profile-badge-err {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.profile-badge-muted {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Tighten the layout on small screens: stack label above value. */
@media (max-width: 480px) {
    .profile-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .profile-value {
        text-align: left;
    }
}
