/* Nesmo Portal - Customer-facing styles */

/* Table */
.nesmo-portal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.nesmo-portal-table th,
.nesmo-portal-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.nesmo-portal-table th {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nesmo-portal-table tbody tr:hover {
    background: #f9fafb;
}

.nesmo-portal-subtitle {
    color: #6b7280;
    margin-top: -0.5rem;
}

/* Badges */
.nesmo-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nesmo-badge-plan {
    background: #eff6ff;
    color: #2563eb;
}

.nesmo-badge-active {
    background: #ecfdf5;
    color: #059669;
}

.nesmo-badge-expired {
    background: #fef2f2;
    color: #dc2626;
}

.nesmo-badge-suspended {
    background: #fffbeb;
    color: #d97706;
}

.nesmo-badge-revoked {
    background: #f3f4f6;
    color: #6b7280;
}

/* License cards */
.nesmo-license-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
    background: #fff;
}

.nesmo-license-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.nesmo-license-header h3 {
    margin: 0 8px 6px 0;
    display: inline;
}

.nesmo-activations-count {
    font-size: 0.9em;
    color: #6b7280;
    white-space: nowrap;
}

.nesmo-license-key-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.nesmo-license-key {
    flex: 1;
    padding: 10px 14px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 15px;
    letter-spacing: 1px;
    user-select: all;
}

.nesmo-copy-btn {
    padding: 8px 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}

.nesmo-copy-btn:hover {
    background: #1d4ed8;
}

.nesmo-activation-list {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.nesmo-activation-list h4 {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 6px;
}

.nesmo-activation-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nesmo-activation-list li {
    padding: 4px 0;
    font-size: 0.95em;
}

/* Download cards */
.nesmo-download-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
    background: #fff;
}

.nesmo-download-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.nesmo-download-header h3 {
    margin: 0;
}

.nesmo-version-badge {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    color: #374151;
}

.nesmo-download-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    margin: 8px 0;
    transition: background 0.15s;
}

.nesmo-download-btn:hover {
    background: #1d4ed8;
}

.nesmo-download-btn small {
    opacity: 0.8;
    margin-left: 4px;
}

.nesmo-changelog {
    margin-top: 12px;
}

.nesmo-changelog summary {
    cursor: pointer;
    color: #2563eb;
    font-weight: 500;
}

.nesmo-changelog div {
    padding: 10px 0;
    color: #374151;
}

/* Helpers */
.nesmo-text-muted {
    color: #9ca3af;
    font-size: 0.9em;
}

.nesmo-text-update {
    color: #d97706;
    font-size: 0.85em;
}

.nesmo-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 10px;
}
