﻿/* =========================
   CARDS
   ========================= */

.lw-card {
    background: var(--lw-surface);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-lg);
    box-shadow: var(--lw-shadow-sm);
}

.lw-card-header {
    padding: 20px 22px;
    border-bottom: 1px solid var(--lw-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lw-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.lw-card-body {
    padding: 22px;
}

/* =========================
   STAT CARDS
   ========================= */

.lw-stat-card {
    padding: 22px;
    background: var(--lw-surface);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-lg);
    box-shadow: var(--lw-shadow-sm);
}

.lw-stat-label {
    font-size: 13px;
    color: var(--lw-text-secondary);
    margin-bottom: 8px;
}

.lw-stat-value {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -0.8px;
}

.lw-stat-meta {
    margin-top: 8px;
    font-size: 12px;
    color: var(--lw-text-muted);
}

/* =========================
   BUTTONS
   ========================= */

.lw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--lw-transition), transform var(--lw-transition), box-shadow var(--lw-transition);
}

    .lw-btn:hover {
        transform: translateY(-1px);
    }

.lw-btn-primary {
    background: var(--lw-primary);
    color: #fff;
}

    .lw-btn-primary:hover {
        background: var(--lw-primary-hover);
        color: #fff;
    }

.lw-btn-secondary {
    background: var(--lw-surface-soft);
    color: var(--lw-text);
    border: 1px solid var(--lw-border);
}

.lw-btn-danger {
    background: var(--lw-danger);
    color: #fff;
}

/* =========================
   BADGES
   ========================= */

.lw-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.lw-badge-success {
    background: var(--lw-success-soft);
    color: var(--lw-success);
}

.lw-badge-warning {
    background: var(--lw-warning-soft);
    color: var(--lw-warning);
}

.lw-badge-danger {
    background: var(--lw-danger-soft);
    color: var(--lw-danger);
}

.lw-badge-primary {
    background: var(--lw-primary-soft);
    color: var(--lw-primary);
}

/* =========================
   TABLE
   ========================= */

.lw-table-wrapper {
    overflow-x: auto;
}

.lw-table {
    width: 100%;
    border-collapse: collapse;
}

    .lw-table th {
        padding: 13px 16px;
        text-align: left;
        background: var(--lw-surface-soft);
        color: var(--lw-text-secondary);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }

    .lw-table td {
        padding: 15px 16px;
        border-top: 1px solid var(--lw-border);
        color: var(--lw-text);
        font-size: 13px;
        vertical-align: middle;
    }

    .lw-table tbody tr:hover {
        background: #fafafa;
    }

/* =========================
   PAGE HEADER
   ========================= */

.lw-page-header {
    margin-bottom: 26px;
}

    .lw-page-header h1 {
        margin: 0;
        font-size: 25px;
        font-weight: 750;
        letter-spacing: -0.6px;
    }

    .lw-page-header p {
        margin: 7px 0 0;
        color: var(--lw-text-secondary);
        font-size: 14px;
    }

/* =========================
   FORM
   ========================= */

.lw-form-group {
    margin-bottom: 18px;
}

.lw-form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lw-text);
}

.lw-form-control {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--lw-border);
    border-radius: 9px;
    background: #fff;
    color: var(--lw-text);
    outline: none;
    transition: border-color var(--lw-transition), box-shadow var(--lw-transition);
}

    .lw-form-control:focus {
        border-color: var(--lw-primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
    }

/* =========================
   EMPTY STATE
   ========================= */

.lw-empty {
    padding: 50px 20px;
    text-align: center;
    color: var(--lw-text-muted);
}

.lw-empty-title {
    margin-bottom: 6px;
    color: var(--lw-text);
    font-weight: 700;
}

.lw-empty-text {
    font-size: 13px;
}

/* =========================
   PROFILE
   ========================= */

.lw-profile-page {
    max-width: 1200px;
    margin: 0 auto;
}

.lw-profile-hero {
    background: var(--lw-surface);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-lg);
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--lw-shadow-sm);
    margin-bottom: 20px;
}

.lw-profile-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.lw-profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: var(--lw-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 750;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.lw-profile-user h2 {
    margin: 0 0 5px;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.4px;
}

.lw-profile-user p {
    margin: 0 0 9px;
    color: var(--lw-text-secondary);
    font-size: 13px;
}

.lw-profile-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--lw-success);
    font-weight: 600;
}

.lw-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lw-success);
}

.lw-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.lw-profile-stat {
    background: var(--lw-surface);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--lw-shadow-sm);
}

.lw-profile-stat-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--lw-primary-soft);
    color: var(--lw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
}

.lw-profile-stat-label {
    color: var(--lw-text-secondary);
    font-size: 12px;
    margin-bottom: 4px;
}

.lw-profile-stat-value {
    color: var(--lw-text);
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.3px;
}

.lw-profile-stat-text {
    font-size: 15px;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lw-profile-stat-unit {
    margin-top: 2px;
    color: var(--lw-text-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.lw-profile-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
}

.lw-profile-card-description {
    margin-top: 4px;
    color: var(--lw-text-muted);
    font-size: 12px;
}

.lw-profile-info-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--lw-border);
}

    .lw-profile-info-row:first-child {
        padding-top: 0;
    }

    .lw-profile-info-row:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

.lw-profile-info-label {
    color: var(--lw-text-secondary);
    font-size: 13px;
}

.lw-profile-info-value {
    color: var(--lw-text);
    font-size: 13px;
    font-weight: 600;
}

.lw-point-value {
    color: var(--lw-primary);
    font-size: 16px;
}

    .lw-point-value span {
        margin-left: 4px;
        color: var(--lw-text-secondary);
        font-size: 11px;
        font-weight: 500;
    }

.lw-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lw-profile-action-item {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border-radius: 10px;
    transition: background var(--lw-transition), transform var(--lw-transition);
}

    .lw-profile-action-item:hover {
        background: var(--lw-surface-soft);
        transform: translateX(2px);
    }

.lw-profile-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--lw-primary-soft);
    color: var(--lw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.lw-profile-action-item strong {
    display: block;
    color: var(--lw-text);
    font-size: 13px;
    font-weight: 650;
}

.lw-profile-action-item span {
    display: block;
    margin-top: 2px;
    color: var(--lw-text-muted);
    font-size: 11px;
}

.lw-profile-action-arrow {
    color: var(--lw-text-muted);
    font-size: 17px;
}

@media (max-width: 767.98px) {

    .lw-profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .lw-profile-action {
        width: 100%;
    }

        .lw-profile-action .lw-btn {
            width: 100%;
        }

    .lw-profile-stats {
        grid-template-columns: 1fr;
    }

    .lw-profile-grid {
        grid-template-columns: 1fr;
    }

    .lw-profile-info-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}