/**
 * Living2.0 Frontend Dashboard - Compact Table View
 */

.lsu-frontend-dashboard {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.lsu-frontend-dashboard h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #1d2327;
}

.lsu-frontend-dashboard .lsu-intro {
    color: #666;
    margin-bottom: 15px;
    font-size: 13px;
}

/* Notices */
.lsu-notice {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
}
.lsu-notice p { margin: 0; }
.lsu-notice-warning { background: #fcf9e8; border: 1px solid #dba617; color: #6e4e00; }
.lsu-notice-error { background: #fcf0f1; border: 1px solid #d63638; color: #d63638; }
.lsu-notice-info { background: #e7f3ff; border: 1px solid #0073aa; color: #0073aa; }

/* Table */
.lsu-products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.lsu-products-table thead th {
    background: #f5f5f5;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.lsu-products-table tbody tr {
    border-bottom: 1px solid #eee;
}

.lsu-products-table tbody tr:hover {
    background: #fafafa;
}

.lsu-products-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

/* Column widths */
.lsu-col-product { width: 40%; }
.lsu-col-credentials { width: 40%; }
.lsu-col-access { width: 20%; text-align: center; }

/* Product cell */
.lsu-product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lsu-product-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.lsu-product-icon-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.lsu-product-cell strong {
    display: block;
    color: #1d2327;
    font-size: 13px;
}

.lsu-product-sub {
    display: block;
    color: #888;
    font-size: 11px;
}

/* Credentials */
.lsu-col-credentials {
    font-size: 12px;
    color: #444;
}

.lsu-col-credentials div {
    margin-bottom: 2px;
}

.lsu-col-credentials div:last-child {
    margin-bottom: 0;
}

.lsu-label {
    color: #888;
}

.lsu-col-credentials a {
    color: #0073aa;
    text-decoration: none;
    margin-right: 10px;
}

.lsu-col-credentials a:hover {
    text-decoration: underline;
}

.lsu-no-creds {
    color: #ccc;
}

/* Access button */
.lsu-access-btn {
    display: inline-block;
    padding: 6px 16px;
    background: #0073aa;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.lsu-access-btn:hover {
    background: #005a87;
}

/* App buttons (Android/iOS) */
.lsu-app-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.lsu-app-btn {
    display: inline-block;
    padding: 6px 12px;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.lsu-android-btn {
    background: #3ddc84;
}

.lsu-android-btn:hover {
    background: #2bc470;
}

.lsu-ios-btn {
    background: #007aff;
}

.lsu-ios-btn:hover {
    background: #0062cc;
}

/* Mobile app notice in credentials */
.lsu-mobile-notice {
    background: #fff3cd;
    color: #856404;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    margin: 4px 0;
    border: 1px solid #ffc107;
}

/* Modal styles */
.lsu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.lsu-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.lsu-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.lsu-modal-close:hover {
    color: #333;
}

.lsu-modal-content h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #1d2327;
}

.lsu-modal-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.lsu-modal-notice p {
    margin: 0;
    font-size: 13px;
}

.lsu-modal-credentials {
    background: #f5f5f5;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.lsu-modal-credentials h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666;
}

.lsu-modal-credentials div {
    font-size: 13px;
    margin-bottom: 4px;
}

.lsu-modal-credentials div:last-child {
    margin-bottom: 0;
}

.lsu-modal-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lsu-go-btn {
    display: inline-block;
    flex: 1;
    padding: 12px 20px;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.lsu-go-btn:hover {
    opacity: 0.9;
}

/* Button as trigger (same style as link) */
button.lsu-access-btn {
    border: none;
    cursor: pointer;
}

/* Error message in access column */
.lsu-error-msg {
    display: inline-block;
    padding: 6px 10px;
    background: #fcf0f1;
    color: #d63638;
    border: 1px solid #d63638;
    border-radius: 4px;
    font-size: 11px;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .lsu-products-table thead {
        display: none;
    }

    .lsu-products-table tbody tr {
        display: block;
        padding: 12px;
        margin-bottom: 10px;
        border: 1px solid #eee;
        border-radius: 6px;
    }

    .lsu-products-table td {
        display: block;
        padding: 5px 0;
        width: 100% !important;
        text-align: left !important;
    }

    .lsu-col-access {
        margin-top: 10px;
    }

    .lsu-access-btn {
        display: block;
        text-align: center;
    }

    .lsu-app-buttons {
        justify-content: flex-start;
    }

    .lsu-app-btn {
        flex: 1;
        text-align: center;
    }
}
