/* Invite Page Styles */
.invite-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1rem 2rem;
}

.invite-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.invite-hero .lead {
    font-size: 1.25rem;
    color: rgb(var(--color-text-secondary));
}

.invite-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .invite-content {
        grid-template-columns: 1fr;
    }
}

.invite-form-wrapper,
.invite-history-wrapper {
    background: rgb(var(--color-surface));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.invite-form-wrapper h2,
.invite-history-wrapper h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.section-description {
    color: rgb(var(--color-text-secondary));
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgb(var(--color-text));
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(var(--color-border), 0.2);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea:focus {
    outline: none;
    border-color: rgb(var(--color-info));
    box-shadow: 0 0 0 3px rgba(var(--color-info), 0.15);
}

.form-help {
    font-size: 0.8125rem;
    color: rgb(var(--color-text-muted));
    margin: 0.5rem 0 0 0;
}

.form-actions {
    margin-top: 1.5rem;
}

.btn-primary {
    background: rgb(var(--color-info));
    color: white;
}

.btn-primary:hover {
    background: rgb(var(--color-info));
}

.btn-primary:disabled {
    background: rgb(var(--color-text-muted));
    cursor: not-allowed;
}

/* Success/Error Messages */
.success-message {
    background: rgba(var(--color-success), 0.1);
    color: rgb(var(--color-success));
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(var(--color-success), 0.3);
}

.error-message {
    background: rgba(var(--color-error), 0.1);
    color: rgb(var(--color-error));
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(var(--color-error), 0.3);
}

/* Stats */
.invite-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(var(--color-border), 0.15);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: rgb(var(--color-text));
}

.stat-label {
    font-size: 0.875rem;
    color: rgb(var(--color-text-secondary));
}

.invite-stats-summary {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.stat-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
}

.stat-badge.stat-accepted {
    background: rgba(var(--color-success), 0.1);
    color: rgb(var(--color-success));
}

.stat-badge.stat-pending {
    background: rgba(var(--color-warning), 0.1);
    color: rgb(var(--color-warning));
}

.stat-badge.stat-expired {
    background: rgb(var(--color-surface-elevated));
    color: rgb(var(--color-text-secondary));
}

/* Invitation Table */
.invitation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.invitation-table th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid rgba(var(--color-border), 0.15);
    font-weight: 600;
    color: rgb(var(--color-text));
}

.invitation-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(var(--color-border), 0.15);
}

.invitation-row:hover {
    background: rgb(var(--color-surface));
}

.inv-email {
    font-weight: 500;
}

.inv-name {
    color: rgb(var(--color-text-secondary));
}

.inv-date {
    color: rgb(var(--color-text-muted));
    font-size: 0.875rem;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-default);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-pending {
    background: rgba(var(--color-warning), 0.1);
    color: rgb(var(--color-warning));
}

.status-badge.status-accepted {
    background: rgba(var(--color-success), 0.1);
    color: rgb(var(--color-success));
}

.status-badge.status-expired {
    background: rgb(var(--color-surface-elevated));
    color: rgb(var(--color-text-secondary));
}

.status-badge.status-revoked {
    background: rgba(var(--color-error), 0.1);
    color: rgb(var(--color-error));
}

/* Action Buttons */
.inv-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-default);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-secondary {
    background: rgb(var(--color-surface-elevated));
    color: rgb(var(--color-text));
}

.btn-secondary:hover {
    background: rgba(var(--color-border), 0.15);
}

.btn-danger {
    background: rgba(var(--color-error), 0.1);
    color: rgb(var(--color-error));
}

.btn-danger:hover {
    background: rgba(var(--color-error), 0.15);
}

.action-done {
    color: rgb(var(--color-success));
    font-weight: 500;
}

.action-na {
    color: rgb(var(--color-text-muted));
}

/* Empty State */
.no-invitations {
    text-align: center;
    padding: 2rem;
    color: rgb(var(--color-text-secondary));
    background: rgb(var(--color-surface));
    border-radius: var(--radius-md);
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: rgb(var(--color-text-secondary));
}
