/* Profile Tab Styles */

.profile-container {
    width: 70%;
    min-width: 800px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-container h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.profile-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Account Information */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.875rem;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* API Key */
.api-key-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-key-display {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.api-key-display code {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #1f2937;
}

.help-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Sessions List */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.session-card.current-session {
    background: #dbeafe;
    border-color: #3b82f6;
}

.session-info {
    flex: 1;
}

.session-device {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.session-device strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.badge-current {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.session-details {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.btn-danger-small {
    padding: 0.5rem 1rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-danger-small:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.loading,
.no-data,
.error {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.error {
    color: var(--error-color);
}

/* Activity Log */
.activity-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.activity-filters select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.btn-secondary-small {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-secondary-small:hover:not(:disabled) {
    background: #e5e7eb;
}

.btn-secondary-small:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.activity-item.activity-failure {
    border-color: #fca5a5;
    background: #fee2e2;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.activity-action {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.activity-details {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.activity-success {
    color: var(--success-color);
}

.activity-error {
    color: var(--error-color);
}

.activity-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

#activity-page-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}
