/* IP.Board Professional Style */

:root {
    --ipb-primary: #2563eb;
    --ipb-primary-dark: #1d4ed8;
    --ipb-secondary: #64748b;
    --ipb-success: #059669;
    --ipb-warning: #d97706;
    --ipb-danger: #dc2626;
    --ipb-info: #0284c7;
    
    --ipb-bg-light: #f8fafc;
    --ipb-bg-white: #ffffff;
    --ipb-bg-gray: #f1f5f9;
    
    --ipb-border: #e2e8f0;
    --ipb-border-light: #f1f5f9;
    
    --ipb-text-dark: #0f172a;
    --ipb-text-gray: #475569;
    --ipb-text-light: #64748b;
    
    --ipb-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --ipb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --ipb-radius: 8px;
    --ipb-radius-lg: 12px;
}

/* Dark Mode Variables */
.dark {
    --ipb-primary: #3b82f6;
    --ipb-primary-dark: #2563eb;
    --ipb-secondary: #6b7280;
    --ipb-success: #10b981;
    --ipb-warning: #f59e0b;
    --ipb-danger: #ef4444;
    --ipb-info: #06b6d4;
    
    --ipb-bg-light: #111827;
    --ipb-bg-white: #1f2937;
    --ipb-bg-gray: #374151;
    
    --ipb-border: #4b5563;
    --ipb-border-light: #374151;
    
    --ipb-text-dark: #f9fafb;
    --ipb-text-gray: #d1d5db;
    --ipb-text-light: #9ca3af;
    
    --ipb-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --ipb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Layout Components */
.ipb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ipb-card {
    background: var(--ipb-bg-white);
    border: 1px solid var(--ipb-border);
    border-radius: var(--ipb-radius-lg);
    box-shadow: var(--ipb-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.ipb-card-header {
    background: linear-gradient(135deg, var(--ipb-primary) 0%, var(--ipb-primary-dark) 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ipb-card-body {
    padding: 2rem;
    transition: all 0.3s ease;
}

.ipb-card-footer {
    background: var(--ipb-bg-gray);
    padding: 1rem 2rem;
    border-top: 1px solid var(--ipb-border);
    transition: all 0.3s ease;
}

/* Typography */
.ipb-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ipb-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0 0 0;
}

.ipb-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ipb-text-dark);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ipb-primary);
    display: inline-block;
    transition: all 0.3s ease;
}

/* Buttons */
.ipb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--ipb-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.ipb-btn-primary {
    background: linear-gradient(135deg, var(--ipb-primary) 0%, var(--ipb-primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.ipb-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.ipb-btn-secondary {
    background: var(--ipb-secondary);
    color: white;
}

.ipb-btn-secondary:hover {
    background: #475569;
    transform: translateY(-1px);
}

.ipb-btn-success {
    background: var(--ipb-success);
    color: white;
}

.ipb-btn-success:hover {
    background: #047857;
    transform: translateY(-1px);
}

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

.ipb-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ipb-text-dark);
    margin-bottom: 0.5rem;
}

.ipb-input, .ipb-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ipb-border);
    border-radius: var(--ipb-radius);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: var(--ipb-bg-white);
    color: var(--ipb-text-dark);
}

.ipb-input:focus, .ipb-select:focus {
    outline: none;
    border-color: var(--ipb-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ipb-input-translation {
    border: 2px solid var(--ipb-border);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ipb-input-translation:focus {
    border-color: var(--ipb-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #fafbff;
}

.ipb-input-translation.saving {
    border-color: var(--ipb-warning);
    background: #fffbeb;
}

/* Tables */
.ipb-table-container {
    background: var(--ipb-bg-white);
    border-radius: var(--ipb-radius-lg);
    overflow: hidden;
    box-shadow: var(--ipb-shadow);
    border: 1px solid var(--ipb-border);
}

.ipb-table {
    width: 100%;
    border-collapse: collapse;
}

.ipb-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ipb-text-dark);
    border-bottom: 2px solid var(--ipb-border);
    transition: all 0.3s ease;
}

/* Dark mode table headers */
.dark .ipb-table th {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: var(--ipb-text-dark);
    border-bottom-color: var(--ipb-border);
}

.ipb-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--ipb-border-light);
    vertical-align: middle;
    color: var(--ipb-text-dark);
    transition: all 0.3s ease;
}

.ipb-table tr:hover {
    background: rgba(37, 99, 235, 0.02);
}

.dark .ipb-table tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.ipb-table tr:last-child td {
    border-bottom: none;
}

/* Dark mode table content improvements */
.dark .ipb-table td {
    color: var(--ipb-text-dark);
}

.dark .ipb-table small {
    color: var(--ipb-text-light);
}

.dark .ipb-table code {
    background: rgba(59, 130, 246, 0.1);
    color: var(--ipb-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Badges */
.ipb-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    gap: 0.25rem;
}

.ipb-badge-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--ipb-primary);
    transition: all 0.3s ease;
}

.ipb-badge-success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--ipb-success);
    transition: all 0.3s ease;
}

.ipb-badge-warning {
    background: rgba(217, 119, 6, 0.1);
    color: var(--ipb-warning);
    transition: all 0.3s ease;
}

.ipb-badge-secondary {
    background: rgba(100, 116, 139, 0.1);
    color: var(--ipb-secondary);
    transition: all 0.3s ease;
}

/* Dark mode badge adjustments */
.dark .ipb-badge-primary {
    background: rgba(59, 130, 246, 0.15);
}

.dark .ipb-badge-success {
    background: rgba(16, 185, 129, 0.15);
}

.dark .ipb-badge-warning {
    background: rgba(245, 158, 11, 0.15);
}

.dark .ipb-badge-secondary {
    background: rgba(107, 114, 128, 0.15);
}

/* Stats Cards */
.ipb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ipb-stat-card {
    background: var(--ipb-bg-white);
    padding: 1.5rem;
    border-radius: var(--ipb-radius-lg);
    border: 1px solid var(--ipb-border);
    box-shadow: var(--ipb-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ipb-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--ipb-primary) 0%, var(--ipb-primary-dark) 100%);
}

.ipb-stat-card.success::before {
    background: linear-gradient(135deg, var(--ipb-success) 0%, #047857 100%);
}

.ipb-stat-card.warning::before {
    background: linear-gradient(135deg, var(--ipb-warning) 0%, #c2410c 100%);
}

.ipb-stat-card.info::before {
    background: linear-gradient(135deg, var(--ipb-info) 0%, #0369a1 100%);
}

.ipb-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--ipb-primary) 0%, var(--ipb-primary-dark) 100%);
}

.ipb-stat-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.ipb-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ipb-text-dark);
    margin-bottom: 0.25rem;
}

.ipb-stat-label {
    font-size: 0.875rem;
    color: var(--ipb-text-light);
    font-weight: 500;
}

/* Filters */
.ipb-filters {
    background: var(--ipb-bg-gray);
    padding: 1.5rem;
    border-radius: var(--ipb-radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--ipb-border);
}

.ipb-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Toast Notifications */
.ipb-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--ipb-success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--ipb-radius);
    box-shadow: var(--ipb-shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 400px;
    font-weight: 500;
}

.ipb-toast.error {
    background: var(--ipb-danger);
}

.ipb-toast.warning {
    background: var(--ipb-warning);
}

.ipb-toast.info {
    background: var(--ipb-info);
}

/* Professional Enhancements - IP.Board Style */

/* Hover effects for cards */
.ipb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dark .ipb-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.ipb-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.dark .ipb-stat-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Enhanced gradient headers */
.ipb-card-header {
    background: linear-gradient(135deg, var(--ipb-primary) 0%, var(--ipb-primary-dark) 50%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

.ipb-card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: -100%; }
    100% { left: 100%; }
}

/* Professional stat card styling */
.ipb-stat-card {
    border-left: 4px solid transparent;
    border-image: linear-gradient(135deg, var(--ipb-primary), var(--ipb-primary-dark)) 1;
}

.ipb-stat-card.success {
    border-image: linear-gradient(135deg, var(--ipb-success), #047857) 1;
}

.ipb-stat-card.warning {
    border-image: linear-gradient(135deg, var(--ipb-warning), #c2410c) 1;
}

.ipb-stat-card.info {
    border-image: linear-gradient(135deg, var(--ipb-info), #0369a1) 1;
}

/* Enhanced table styling */
.ipb-table-container {
    border: 1px solid var(--ipb-border);
    position: relative;
    overflow: hidden;
}

.ipb-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--ipb-primary), var(--ipb-primary-dark), #1e40af);
}

/* Better spacing and typography */
.ipb-section-title {
    position: relative;
    padding-left: 1rem;
}

.ipb-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--ipb-primary), var(--ipb-primary-dark));
    border-radius: 2px;
}

/* Dashboard specific improvements */
.dashboard-welcome {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: var(--ipb-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.dark .dashboard-welcome {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.dashboard-welcome::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Professional list items */
.ipb-list-item {
    background: var(--ipb-bg-white);
    border: 1px solid var(--ipb-border);
    border-radius: var(--ipb-radius);
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.ipb-list-item:hover {
    border-color: var(--ipb-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateX(4px);
}

.dark .ipb-list-item:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.ipb-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, var(--ipb-primary), var(--ipb-primary-dark));
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ipb-list-item:hover::before {
    opacity: 1;
}

/* Quick actions */
.ipb-quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.ipb-quick-action {
    flex: 1;
    min-width: 200px;
    background: var(--ipb-bg-white);
    border: 1px solid var(--ipb-border);
    border-radius: var(--ipb-radius-lg);
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--ipb-text-dark);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ipb-quick-action:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    color: var(--ipb-primary);
}

.dark .ipb-quick-action:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.ipb-quick-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: left 0.5s ease;
}

.ipb-quick-action:hover::before {
    left: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .ipb-container {
        padding: 0 0.5rem;
    }
    
    .ipb-card-body {
        padding: 1rem;
    }
    
    .ipb-card-header {
        padding: 1rem;
    }
    
    .ipb-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ipb-filters-grid {
        grid-template-columns: 1fr;
    }
    
    .ipb-quick-actions {
        flex-direction: column;
    }
    
    .ipb-quick-action {
        min-width: unset;
    }
}

/* Loading States */
.ipb-loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--ipb-border);
    border-radius: 50%;
    border-top-color: var(--ipb-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Comparison Boxes */
.ipb-comparison-old {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #991b1b;
    padding: 0.5rem 0.75rem;
    border-radius: var(--ipb-radius);
    font-size: 0.875rem;
    word-break: break-word;
}

.ipb-comparison-new {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.2);
    color: #047857;
    padding: 0.5rem 0.75rem;
    border-radius: var(--ipb-radius);
    font-size: 0.875rem;
    word-break: break-word;
}

/* User Avatar */
.ipb-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--ipb-primary) 0%, var(--ipb-primary-dark) 100%);
    color: white;
    text-transform: uppercase;
}

/* Toggle Switch */
.ipb-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.ipb-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ipb-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 24px;
}

.ipb-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ipb-toggle input:checked + .ipb-toggle-slider {
    background: linear-gradient(135deg, var(--ipb-primary) 0%, var(--ipb-primary-dark) 100%);
}

.ipb-toggle input:focus + .ipb-toggle-slider {
    box-shadow: 0 0 1px 2px rgba(37, 99, 235, 0.3);
}

.ipb-toggle input:checked + .ipb-toggle-slider:before {
    transform: translateX(20px);
}

.ipb-toggle.warning input:checked + .ipb-toggle-slider {
    background: linear-gradient(135deg, var(--ipb-warning) 0%, #c2410c 100%);
}

/* Jetstream Form Components Styling */
.ipb-form-section {
    background: var(--ipb-bg-white);
    border: 1px solid var(--ipb-border);
    border-radius: var(--ipb-radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--ipb-shadow);
}

.ipb-form-section-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--ipb-border);
    background: linear-gradient(135deg, var(--ipb-bg-light) 0%, var(--ipb-bg-white) 100%);
}

.ipb-form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ipb-text-dark);
    margin-bottom: 0.5rem;
}

.ipb-form-section-description {
    font-size: 0.875rem;
    color: var(--ipb-text-light);
    line-height: 1.5;
}

.ipb-form-section-body {
    padding: 1.5rem;
}

/* Enhanced Form Elements for Jetstream */
.ipb-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ipb-border);
    border-radius: var(--ipb-radius);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: var(--ipb-bg-white);
    color: var(--ipb-text-dark);
}

.ipb-form-input:focus {
    outline: none;
    border-color: var(--ipb-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: rgba(37, 99, 235, 0.02);
}

.ipb-form-input:disabled {
    background: var(--ipb-bg-gray);
    color: var(--ipb-text-light);
    cursor: not-allowed;
}

.ipb-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ipb-border);
    border-radius: var(--ipb-radius);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: var(--ipb-bg-white);
    color: var(--ipb-text-dark);
    min-height: 100px;
    resize: vertical;
}

.ipb-form-textarea:focus {
    outline: none;
    border-color: var(--ipb-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: rgba(37, 99, 235, 0.02);
}

.ipb-form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ipb-border);
    border-radius: var(--ipb-radius);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: var(--ipb-bg-white);
    color: var(--ipb-text-dark);
    cursor: pointer;
}

.ipb-form-select:focus {
    outline: none;
    border-color: var(--ipb-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Action Buttons Section */
.ipb-form-actions {
    padding: 1.5rem;
    border-top: 1px solid var(--ipb-border);
    background: var(--ipb-bg-light);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Danger Zone Styling */
.ipb-danger-zone {
    border: 2px solid #fecaca;
    background: #fef2f2;
}

.dark .ipb-danger-zone {
    border-color: #7f1d1d;
    background: #1c0b0b;
}

.ipb-danger-zone .ipb-form-section-header {
    background: linear-gradient(135deg, #fecaca 0%, #fee2e2 100%);
    border-bottom-color: #fca5a5;
}

.dark .ipb-danger-zone .ipb-form-section-header {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    border-bottom-color: #991b1b;
}

.ipb-danger-zone .ipb-form-section-title {
    color: #dc2626;
}

.dark .ipb-danger-zone .ipb-form-section-title {
    color: #f87171;
}

.ipb-danger-zone .ipb-form-section-description {
    color: #b91c1c;
}

.dark .ipb-danger-zone .ipb-form-section-description {
    color: #fca5a5;
}

/* Error Messages */
.ipb-error {
    color: var(--ipb-danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ipb-error svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Success Messages */
.ipb-success {
    color: var(--ipb-success);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ipb-success svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Two-Factor Auth Specific */
.ipb-2fa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.ipb-2fa-code {
    padding: 0.75rem;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1rem;
    background: var(--ipb-bg-gray);
    border: 1px solid var(--ipb-border);
    border-radius: var(--ipb-radius);
    color: var(--ipb-text-dark);
}

/* Team Member List */
.ipb-member-list {
    border: 1px solid var(--ipb-border);
    border-radius: var(--ipb-radius);
    overflow: hidden;
}

.ipb-member-item {
    display: flex;
    align-items: center;
    justify-content: between;
    padding: 1rem;
    border-bottom: 1px solid var(--ipb-border-light);
    transition: all 0.2s ease;
}

.ipb-member-item:hover {
    background: rgba(37, 99, 235, 0.02);
}

.dark .ipb-member-item:hover {
    background: rgba(59, 130, 246, 0.05);
}

.ipb-member-item:last-child {
    border-bottom: none;
}

.ipb-member-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.ipb-member-name {
    font-weight: 500;
    color: var(--ipb-text-dark);
    font-size: 0.875rem;
}

.ipb-member-email {
    font-size: 0.75rem;
    color: var(--ipb-text-light);
}

.ipb-member-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive adjustments for Jetstream forms */
@media (max-width: 768px) {
    .ipb-form-actions {
        flex-direction: column;
    }
    
    .ipb-form-actions button,
    .ipb-form-actions a {
        width: 100%;
        justify-content: center;
    }
    
    .ipb-member-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .ipb-member-actions {
        width: 100%;
        justify-content: flex-end;
    }
}