/* LLMO License Portal - Account Styles */

.llmo-license-container {
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Card Styling */
.llmo-license-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.llmo-license-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-color: #d1d5db;
}

/* Header Section */
.llmo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 16px;
}

.llmo-plan-info h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.llmo-plan-meta {
    font-size: 13px;
    color: #6b7280;
}

/* Status Badges */
.llmo-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.llmo-status-active { background: #d1fae5; color: #065f46; }
.llmo-status-paused { background: #fef3c7; color: #92400e; }
.llmo-status-past_due { background: #fee2e2; color: #991b1b; }
.llmo-status-cancelled { background: #f3f4f6; color: #374151; }
.llmo-status-revoked { background: #1f2937; color: #f9fafb; }

/* Key Section */
.llmo-key-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.llmo-key-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.llmo-key-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.llmo-key-code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 16px;
    color: #1f2937;
    background: #fff;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.llmo-copy-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.llmo-copy-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.llmo-alert-info {
    margin-top: 10px;
    font-size: 13px;
    color: #03543f;
    background: #def7ec;
    padding: 8px 12px;
    border-radius: 6px;
}

/* Seats & Actions */
.llmo-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.llmo-usage-stat {
    font-size: 14px;
    color: #374151;
}

.llmo-usage-val {
    font-weight: 700;
    color: #111827;
}

.llmo-actions {
    display: flex;
    gap: 12px;
}

/* Connected Sites */
.llmo-sites-section {
    margin-top: 20px;
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
}

.llmo-sites-toggle {
    cursor: pointer;
    font-weight: 600;
    color: #4b5563;
    font-size: 14px;
    list-style: none; /* Remove default marker */
}
.llmo-sites-toggle::-webkit-details-marker { display: none; }
.llmo-sites-toggle:focus { outline: none; }

.llmo-sites-toggle::after {
    content: '+';
    float: right;
    font-weight: bold;
}
details[open] .llmo-sites-toggle::after {
    content: '-';
}

.llmo-sites-list {
    margin-top: 12px;
    list-style: none;
    padding: 0;
}

.llmo-site-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}

.llmo-site-url {
    font-weight: 500;
    color: #1f2937;
}

.llmo-site-time {
    color: #9ca3af;
    font-size: 12px;
    margin-right: 10px;
}

.llmo-revoke-btn {
    color: #dc2626;
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.llmo-revoke-btn:hover {
    color: #b91c1c;
}

/* Regenerate Form */
.llmo-regen-form {
    display: inline-block;
}
