
/* Enterprise Facebook Data Plugin Styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

.fb-enterprise-container {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 800px;
    margin: 40px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    position: relative;
}

.fb-enterprise-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.fb-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.fb-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2E8B57, #20B2AA);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.3);
}

.fb-shield-icon {
    width: 32px;
    height: 32px;
    color: white;
}

.fb-title h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.025em;
}

.fb-subtitle {
    margin: 5px 0 0 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.fb-security-badges {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fb-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 139, 87, 0.1);
    color: #2E8B57;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(46, 139, 87, 0.2);
}

.fb-badge-icon {
    font-size: 14px;
}

.fb-login-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px 30px;
}

.fb-step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.fb-step-indicator::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: linear-gradient(90deg, #2E8B57, #e2e8f0, #e2e8f0);
    z-index: 1;
}

.fb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 200px;
}

.fb-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.fb-step.active .fb-step-number {
    background: linear-gradient(135deg, #2E8B57, #20B2AA);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.4);
}

.fb-step span {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: #64748b;
}

.fb-step.active span {
    color: #2E8B57;
}

.fb-connect-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.fb-card-icon svg {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.fb-connect-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.fb-description {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.fb-login-btn {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
    min-width: 280px;
}

.fb-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.5);
}

.fb-login-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fb-btn-icon {
    font-size: 18px;
}

.fb-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.fb-btn-text small {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.9;
}

.fb-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.fb-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    animation: pulse 2s infinite;
}

.fb-status.connected .fb-status-dot {
    background: #2E8B57;
}

.fb-status.connected {
    background: rgba(46, 139, 87, 0.1);
    color: #2E8B57;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fb-data-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 30px;
}

.fb-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.fb-user-info img {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.fb-loading {
    text-align: center;
    padding: 60px 20px;
}

.fb-loading-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin: 20px 0 10px 0;
}

.fb-loading-content p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 30px;
}

.fb-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #2E8B57;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fb-progress-bar {
    width: 200px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.fb-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2E8B57, #20B2AA);
    border-radius: 3px;
    width: 0;
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.fb-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.fb-data-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.fb-card-header {
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fb-card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fb-card-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2E8B57, #20B2AA);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-card-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

.fb-data-count {
    background: #2E8B57;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.fb-posts-list, .fb-likes-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
}

.fb-post-item, .fb-like-item {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

.fb-post-item:hover, .fb-like-item:hover {
    background: #f8fafc;
}

.fb-post-item:last-child, .fb-like-item:last-child {
    border-bottom: none;
}

.fb-post-item img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.fb-like-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fb-like-item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fb-summary {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.fb-summary-header {
    padding: 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.fb-summary-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-summary-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.fb-summary-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.fb-summary-content {
    padding: 25px;
    line-height: 1.6;
    color: #374151;
    font-size: 14px;
}

.fb-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.fb-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    min-width: 140px;
}

.fb-refresh-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.fb-refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.fb-generate-summary-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.fb-generate-summary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.fb-logout-btn.secondary {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.fb-logout-btn.secondary:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.fb-error {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #dc2626;
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid #dc2626;
    margin: 20px 0;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
}

.fb-debug {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-family: "Monaco", "Menlo", monospace;
    font-size: 11px;
    max-height: 200px;
    overflow-y: auto;
    color: #64748b;
}

.fb-security-footer {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.fb-security-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
    justify-content: center;
}

.fb-security-icon {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fb-enterprise-container {
        margin: 20px;
        border-radius: 16px;
    }
    
    .fb-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .fb-security-badges {
        padding: 15px 20px;
        justify-content: center;
    }
    
    .fb-login-section, .fb-data-section {
        padding: 30px 20px;
    }
    
    .fb-step-indicator {
        flex-direction: column;
        gap: 20px;
    }
    
    .fb-step-indicator::before {
        display: none;
    }
    
    .fb-data-grid {
        grid-template-columns: 1fr;
    }
    
    .fb-actions {
        flex-direction: column;
    }
    
    .fb-user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .fb-login-btn {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fb-connect-card {
        padding: 25px 20px;
    }
    
    .fb-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .fb-step span {
        font-size: 11px;
    }
}
