﻿/* wwwroot/css/lifeadmin/lifeadmin.css */

/* ══════════════════════════════════════════════════════════
   LIFE ADMIN - Complete Stylesheet
══════════════════════════════════════════════════════════ */

.la-container {
    padding: 15px;
}

/* ══ PAGE HEADER ══ */
.la-page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

    .la-page-header h3 {
        font-weight: 800;
        font-size: 1.6rem;
        margin: 0;
        color: white !important;
    }

    .la-page-header .la-sub-text {
        opacity: 0.75;
        font-size: 1.54rem;
        margin-top: 5px;
        color: white;
    }

.la-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ══ STATS CARDS ══ */
.la-stat-card {
    border-radius: 16px;
    padding: 22px 20px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: default;
    height: 100%;
    min-height: 110px;
}

    .la-stat-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    }

    .la-stat-card .la-stat-icon {
        font-size: 2.5rem;
        opacity: 0.3;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .la-stat-card .la-stat-value {
        font-size: 2.4rem;
        font-weight: 900;
        line-height: 1;
        color: white !important;
    }

    .la-stat-card .la-stat-title {
        font-size: 1.62rem;
        opacity: 0.9;
        margin-top: 6px;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
        color: white !important;
    }

/* ══ GRADIENTS ══ */
.la-bg-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.la-bg-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.la-bg-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.la-bg-cyan {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.la-bg-red {
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
}

.la-bg-purple {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.la-bg-teal {
    background: linear-gradient(135deg, #0ba360 0%, #3cba92 100%);
}

.la-bg-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
}

/* ══ SEARCH BOX ══ */
.la-search-box {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.la-search-input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 15px;
}

    .la-search-input:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
        outline: none;
    }

/* ══ CARDS ══ */
.la-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

/* ══ TABLE ══ */
.la-table {
    margin-bottom: 0;
}

    .la-table thead th {
        background: #1a1a2e !important;
        color: white !important;
        border: none;
        padding: 14px 12px;
        font-size: 1.35rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    .la-table tbody td {
        vertical-align: middle;
        padding: 12px;
        font-size: 1.95rem;
    }

    .la-table tbody tr:hover {
        background-color: #f8f4ff;
    }

/* ══ AVATAR ══ */
.la-avatar {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    color: white;
    background: #667eea;
}

.la-avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.la-avatar-md {
    width: 42px;
    height: 42px;
    font-size: 16px;
}

.la-avatar-lg {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.la-avatar-xl {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.la-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* ══ BADGE ══ */
.la-badge {
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 1.33rem !important;
    font-weight: 600 !important;
    display: inline-block;
}

/* ══ ACTION BUTTONS ══ */
.la-action-group {
    display: flex;
    gap: 4px;
    align-items: center;
}

.la-btn-action {
    border-radius: 6px;
    font-size: 1.8rem;
    padding: 5px 10px;
    transition: all 0.2s ease;
}

    .la-btn-action:hover {
        transform: scale(1.05);
    }

/* ══ EMPTY STATE ══ */
.la-empty {
    text-align: center;
    padding: 60px 20px;
}

.la-empty-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

/* ══ ALERTS ══ */
.la-alert {
    border-radius: 10px;
    border-left: 5px solid;
}

.la-alert-success {
    border-left-color: #28a745;
}

.la-alert-danger {
    border-left-color: #dc3545;
}

/* ══ DESKTOP / MOBILE TOGGLE ══ */
.la-desktop-table,
.la-desktop-only {
    display: block;
}

.la-mobile-cards,
.la-mobile-only {
    display: none;
}

/* ══ MOBILE MEMBER CARD ══ */
.la-member-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #667eea;
    transition: transform 0.2s ease;
}

    .la-member-card:hover {
        transform: translateX(5px);
    }

.la-mc-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
}

.la-mc-info {
    font-size: 1.45rem;
    color: #666;
    line-height: 1.8;
}

    .la-mc-info .la-icon {
        width: 20px;
        display: inline-block;
    }

.la-mc-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.la-mc-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

    .la-mc-actions .btn {
        flex: 1;
        font-size: 1.45rem;
    }

/* ══ MINI CARD (Dashboard) ══ */
.la-mini-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .la-mini-card.la-mini-green {
        border-left-color: #11998e;
    }

    .la-mini-card .la-mini-name {
        font-weight: 700;
        font-size: 1.85rem;
        color: #1a1a2e;
    }

    .la-mini-card .la-mini-info {
        font-size: 1.62rem;
        color: #666;
        margin-top: 4px;
    }

    .la-mini-card .la-mini-badges {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        margin-top: 8px;
    }

/* ══ QUICK ACTIONS (Dashboard) ══ */
.la-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.la-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    background: white;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    text-align: center;
}

    .la-quick-btn:hover {
        border-color: #667eea;
        background: #f8f4ff;
        transform: translateY(-3px);
        color: #667eea;
    }

    .la-quick-btn .la-qa-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .la-quick-btn .la-qa-text {
        font-size: 1.25rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

/* ══ INFO ROWS (Details Page) ══ */
.la-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease;
}

    .la-info-row:last-child {
        border-bottom: none;
    }

    .la-info-row:hover {
        background: #f8f4ff;
    }

.la-info-label {
    color: #888;
    font-size: 1.52rem;
    font-weight: 600;
    min-width: 140px;
    flex-shrink: 0;
}

.la-info-value {
    color: #333;
    font-size: 1.54rem;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

/* ══ CARD HEADERS (Details) ══ */
.la-card-header {
    padding: 14px 20px;
    font-weight: 700;
    font-size: 1.85rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.la-header-blue {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.la-header-green {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}

.la-header-orange {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.la-header-dark {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
}

.la-header-teal {
    background: linear-gradient(135deg, #0ba360, #3cba92);
    color: white;
}

.la-header-cyan {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

/* ══ PROFILE HEADER (Details) ══ */
.la-profile-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
}

.la-profile-content {
    padding: 30px;
    position: relative;
    z-index: 1;
}

.la-profile-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    color: white;
}

.la-profile-id {
    opacity: 0.7;
    font-size: 1.45rem;
    margin-top: 4px;
}

.la-profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.la-profile-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 1.22rem;
    font-weight: 700;
}

.la-profile-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* ══ CERTIFICATE STATUS BOX ══ */
.la-cert-status {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}

    .la-cert-status .la-cert-icon {
        font-size: 3rem;
        margin-bottom: 10px;
    }

    .la-cert-status .la-cert-text {
        font-size: 1rem;
        font-weight: 700;
    }

.la-cert-active {
    background: #d4edda;
    border: 2px solid #28a745;
}

.la-cert-inactive {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

/* ══ STATUS DOT ══ */
.la-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

    .la-status-dot.active {
        background: #28a745;
        box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
    }

    .la-status-dot.inactive {
        background: #dc3545;
        box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
    }

/* ══ PROGRESS BAR ══ */
.la-progress {
    height: 12px;
    border-radius: 8px;
    background: #e9ecef;
    overflow: hidden;
    margin-top: 8px;
}

    .la-progress .la-bar {
        height: 100%;
        border-radius: 8px;
        transition: width 1s ease;
    }

/* ══ TRANSACTION CARDS ══ */
.la-txn-card {
    background: white;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

    .la-txn-card.la-txn-success {
        border-left-color: #28a745;
    }

    .la-txn-card.la-txn-failed {
        border-left-color: #dc3545;
    }

    .la-txn-card.la-txn-pending {
        border-left-color: #ffc107;
    }

/* ══ BACK BUTTON ══ */
.la-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.54rem;
    margin-bottom: 15px;
    transition: color 0.2s ease;
}

    .la-back-btn:hover {
        color: #667eea;
    }

/* ══ ACTION STACK ══ */
.la-action-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .la-action-stack .btn {
        border-radius: 8px;
        font-weight: 600;
        font-size: 1.45rem;
        padding: 8px 16px;
    }

/* ═══════════════════════════════════════════════════
   MOBILE RESPONSIVE (below 768px)
═══════════════════════════════════════════════════ */

@media (max-width: 767.98px) {

    .la-container {
        padding: 8px;
    }

    /* Page Header */
    .la-page-header {
        padding: 20px;
        border-radius: 12px;
        text-align: center;
    }

        .la-page-header h3 {
            font-size: 1.95rem;
        }

    .la-header-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        margin-top: 12px;
    }

        .la-header-actions .btn,
        .la-header-actions form {
            width: 100%;
        }

            .la-header-actions form .btn {
                width: 100%;
            }

    /* Stats Grid */
    .stats-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

        .stats-row > div {
            width: 100% !important;
            max-width: 100% !important;
            flex: none !important;
            padding: 0 !important;
        }

    .la-stat-card {
        padding: 15px;
        min-height: 90px;
        border-radius: 12px;
    }

        .la-stat-card .la-stat-value {
            font-size: 1.5rem;
        }

        .la-stat-card .la-stat-title {
            font-size: 1.22rem;
            letter-spacing: 0.3px;
        }

        .la-stat-card .la-stat-icon {
            font-size: 1.6rem;
            right: 10px;
        }

    /* Toggle Desktop / Mobile */
    .la-desktop-table,
    .la-desktop-only {
        display: none !important;
    }

    .la-mobile-cards,
    .la-mobile-only {
        display: block !important;
    }

    /* Search */
    .la-search-box {
        padding: 10px 12px;
    }

        .la-search-box .d-flex {
            flex-direction: column;
            gap: 8px;
        }

    .la-search-input {
        width: 100% !important;
    }

    /* Badge */
    .la-badge {
        font-size: 1.2rem !important;
        padding: 4px 8px !important;
    }

    /* Quick Actions */
    .la-quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .la-quick-btn {
        padding: 14px 8px;
    }

    /* Info Rows */
    .la-info-row {
        flex-direction: column;
        gap: 4px;
        padding: 10px 15px;
    }

    .la-info-label {
        min-width: unset;
        font-size: 1.25rem;
    }

    .la-info-value {
        text-align: left;
        font-size: 1.45rem;
    }

    /* Profile */
    .la-profile-content {
        padding: 20px;
        text-align: center;
    }

    .la-profile-name {
        font-size: 1.2rem;
    }

    .la-profile-badges {
        justify-content: center;
    }

    .la-profile-actions {
        justify-content: center;
        flex-direction: column;
    }

        .la-profile-actions .btn {
            width: 100%;
        }

    /* Cards */
    .la-card {
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .la-card-header {
        padding: 12px 15px;
        font-size: 1.45rem;
    }

    /* Actions */
    .la-action-stack {
        flex-direction: column;
    }

        .la-action-stack .btn {
            width: 100%;
        }

    /* Back Button */
    .la-back-btn {
        font-size: 1.45rem;
    }
}

/* ═══════════════════════════════════════════════════
   SMALL MOBILE (below 400px)
═══════════════════════════════════════════════════ */

@media (max-width: 399.98px) {

    .la-page-header h3 {
        font-size: 1rem;
    }

    .la-stat-card .la-stat-value {
        font-size: 1.2rem;
    }

    .la-stat-card .la-stat-title {
        font-size: 1.12rem;
    }

    .la-member-card {
        padding: 14px;
    }

    .la-mc-name {
        font-size: 1.85rem;
    }

    .la-mc-actions {
        flex-direction: column;
    }

    .la-avatar-xl {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }

    .la-profile-name {
        font-size: 1rem;
    }
}

/* wwwroot/css/lifeadmin/lifeadmin.css - Add these if missing */

/* ══ PROFILE HEADER (Details Page) ══ */
.la-profile-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
}

.la-profile-content {
    padding: 30px;
    position: relative;
    z-index: 1;
}

.la-profile-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    color: white !important;
}

.la-profile-id {
    opacity: 0.7;
    font-size: 1.54rem;
    margin-top: 4px;
    color: white;
}

.la-profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.la-profile-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 1.25rem;
    font-weight: 700;
}

.la-profile-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* ══ INFO ROWS ══ */
.la-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease;
}

    .la-info-row:last-child {
        border-bottom: none;
    }

    .la-info-row:hover {
        background: #f8f4ff;
    }

.la-info-label {
    color: #888;
    font-size: 1.45rem;
    font-weight: 600;
    min-width: 140px;
    flex-shrink: 0;
}

.la-info-value {
    color: #333;
    font-size: 1.54rem;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

/* ══ CARD HEADERS ══ */
.la-card-header {
    padding: 14px 20px;
    font-weight: 700;
    font-size: 1.85rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.la-header-blue {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
}

.la-header-green {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white !important;
}

.la-header-orange {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white !important;
}

.la-header-dark {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white !important;
}

.la-header-teal {
    background: linear-gradient(135deg, #0ba360, #3cba92);
    color: white !important;
}

.la-header-cyan {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white !important;
}

/* ══ AVATAR EXTRA LARGE ══ */
.la-avatar-xl {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

    .la-avatar-xl img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }

/* ══ CERTIFICATE STATUS ══ */
.la-cert-status {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}

    .la-cert-status .la-cert-icon {
        font-size: 3rem;
        margin-bottom: 10px;
    }

    .la-cert-status .la-cert-text {
        font-size: 1rem;
        font-weight: 700;
    }

.la-cert-active {
    background: #d4edda;
    border: 2px solid #28a745;
}

.la-cert-inactive {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

/* ══ STATUS DOT ══ */
.la-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

    .la-status-dot.active {
        background: #28a745;
        box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
    }

    .la-status-dot.inactive {
        background: #dc3545;
        box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
    }

/* ══ ACTION STACK ══ */
.la-action-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .la-action-stack .btn {
        border-radius: 8px;
        font-weight: 600;
        font-size: 1.54rem;
        padding: 8px 16px;
    }

/* ══ TRANSACTION CARDS ══ */
.la-txn-card {
    background: white;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

    .la-txn-card.la-txn-success {
        border-left-color: #28a745;
    }

    .la-txn-card.la-txn-failed {
        border-left-color: #dc3545;
    }

    .la-txn-card.la-txn-pending {
        border-left-color: #ffc107;
    }

/* ══ BACK BUTTON ══ */
.la-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.54rem;
    margin-bottom: 15px;
    transition: color 0.2s ease;
}

    .la-back-btn:hover {
        color: #667eea;
        text-decoration: none;
    }

/* ══ MOBILE RESPONSIVE ══ */
@media (max-width: 767.98px) {
    .la-profile-content {
        padding: 20px;
        text-align: center;
    }

    .la-profile-top {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .la-profile-name {
        font-size: 1.2rem;
    }

    .la-profile-badges {
        justify-content: center;
    }

    .la-profile-actions {
        justify-content: center;
        flex-direction: column;
    }

        .la-profile-actions .btn {
            width: 100%;
        }

    .la-info-row {
        flex-direction: column;
        gap: 4px;
        padding: 10px 15px;
    }

    .la-info-label {
        min-width: unset;
        font-size: 1.25rem;
    }

    .la-info-value {
        text-align: left;
        font-size: 1.45rem;
    }

    .la-action-stack {
        flex-direction: column;
    }

        .la-action-stack .btn {
            width: 100%;
        }

    .la-avatar-xl {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 399.98px) {
    .la-profile-name {
        font-size: 1rem;
    }

    .la-avatar-xl {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }

    .la-profile-badge {
        font-size: 1.22rem;
        padding: 4px 10px;
    }
}